@sourcegraph/amp 0.0.1748426527-g057e02 → 0.0.1748433686-g2e7c5c
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 +1 -1
- package/dist/{main-DDGwGm6L.js → main-cp81A1je.js} +49 -40
- package/dist/{main-DDGwGm6L.js.map → main-cp81A1je.js.map} +1 -1
- package/dist/{node-h3Rv9R3v.js → node-9ls77cDn.js} +2 -2
- package/dist/{node-h3Rv9R3v.js.map → node-9ls77cDn.js.map} +1 -1
- package/dist/{node--2i4ls_e.js → node-BlKhyOsp.js} +2 -2
- package/dist/{node--2i4ls_e.js.map → node-BlKhyOsp.js.map} +1 -1
- package/dist/{stdio-BuwcA4il.js → stdio-BUwVOdui.js} +2 -2
- package/dist/{stdio-BuwcA4il.js.map → stdio-BUwVOdui.js.map} +1 -1
- package/package.json +1 -1
package/dist/amp.js
CHANGED
@@ -7755,7 +7755,7 @@ async function a2(i, e, t) {
|
|
7755
7755
|
const { loadProfileEnvironmentVariables: r } = await import("./load-profile-OVWYid8R.js"), o = t.loadProfile === "never" || !t.workingDirectory ? process.env : await pt(
|
7756
7756
|
r(t.workingDirectory, t.loadProfile)
|
7757
7757
|
);
|
7758
|
-
n = await import("./stdio-
|
7758
|
+
n = await import("./stdio-BUwVOdui.js").then(
|
7759
7759
|
({ StdioClientTransport: s }) => new s({
|
7760
7760
|
...i,
|
7761
7761
|
stderr: "pipe",
|
@@ -8103,7 +8103,7 @@ the \`${am}\` with the url.
|
|
8103
8103
|
requiresNetwork: !0
|
8104
8104
|
}
|
8105
8105
|
},
|
8106
|
-
fn: import("./node-
|
8106
|
+
fn: import("./node-9ls77cDn.js").then(({ nodeWebSearchTool: i }) => i)
|
8107
8107
|
};
|
8108
8108
|
function v2(i) {
|
8109
8109
|
const { interval: e, fn: t, cacheKey: n } = i, r = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Map();
|
@@ -26708,7 +26708,7 @@ class Jo {
|
|
26708
26708
|
async getInferenceParameters(e, t) {
|
26709
26709
|
const r = (await pt(this.deps.toolService.tools, t)).map(({ spec: c, enabled: d }) => d ? c : null).filter((c) => c !== null);
|
26710
26710
|
t?.throwIfAborted();
|
26711
|
-
const s = (await pt(Ar, t))?.settings?.["todos.enabled"] ?? !
|
26711
|
+
const s = (await pt(Ar, t))?.settings?.["todos.enabled"] ?? !0, l = await uM(
|
26712
26712
|
this.deps.systemPromptService,
|
26713
26713
|
await this.deps.getThreadEnvironment(),
|
26714
26714
|
s
|
@@ -26722,7 +26722,7 @@ class Jo {
|
|
26722
26722
|
async runGeminiInference(e, t) {
|
26723
26723
|
const r = (await pt(this.deps.toolService.tools, t)).filter(({ enabled: d }) => d).map(({ spec: d }) => d);
|
26724
26724
|
t?.throwIfAborted();
|
26725
|
-
const s = (await pt(Ar, t))?.settings?.["todos.enabled"] ?? !
|
26725
|
+
const s = (await pt(Ar, t))?.settings?.["todos.enabled"] ?? !0, l = await cM(
|
26726
26726
|
this.deps.systemPromptService,
|
26727
26727
|
await this.deps.getThreadEnvironment(),
|
26728
26728
|
s
|
@@ -26918,7 +26918,7 @@ IMPORTANT: The result of this tool (if any) should be displayed directly to the
|
|
26918
26918
|
},
|
26919
26919
|
source: "builtin"
|
26920
26920
|
},
|
26921
|
-
fn: import("./node
|
26921
|
+
fn: import("./node-BlKhyOsp.js").then(({ runRoutine: i }) => i)
|
26922
26922
|
};
|
26923
26923
|
let Nw = !1;
|
26924
26924
|
async function WC(i, e = !1) {
|
@@ -37766,7 +37766,7 @@ const x1 = {
|
|
37766
37766
|
description: "Enable system sound notifications when agent completes tasks"
|
37767
37767
|
},
|
37768
37768
|
"todos.enabled": {
|
37769
|
-
value: !
|
37769
|
+
value: !0,
|
37770
37770
|
visible: !1,
|
37771
37771
|
description: "Enable TODO tracking and management features"
|
37772
37772
|
},
|
@@ -39054,7 +39054,15 @@ async function UG(i) {
|
|
39054
39054
|
if (clearTimeout(t), !n.ok)
|
39055
39055
|
return { hasUpdate: !1 };
|
39056
39056
|
const o = (await n.json()).version;
|
39057
|
-
|
39057
|
+
if (o === void 0)
|
39058
|
+
return { hasUpdate: !1 };
|
39059
|
+
const s = BG(i, o), l = s < 0;
|
39060
|
+
return le.info("Version comparison", {
|
39061
|
+
currentVersion: i,
|
39062
|
+
latestVersion: o,
|
39063
|
+
compareResult: s,
|
39064
|
+
hasUpdate: l
|
39065
|
+
}), { hasUpdate: l, latestVersion: o };
|
39058
39066
|
} catch {
|
39059
39067
|
return { hasUpdate: !1 };
|
39060
39068
|
}
|
@@ -39154,47 +39162,48 @@ async function hu(i) {
|
|
39154
39162
|
}
|
39155
39163
|
});
|
39156
39164
|
}
|
39157
|
-
function HG(i) {
|
39165
|
+
function HG(i, e) {
|
39166
|
+
const t = e ? `@sourcegraph/amp@${e}` : "@sourcegraph/amp";
|
39158
39167
|
switch (i) {
|
39159
39168
|
case "pnpm":
|
39160
|
-
return ["pnpm", ["add", "-g",
|
39169
|
+
return ["pnpm", ["add", "-g", t]];
|
39161
39170
|
case "yarn":
|
39162
|
-
return ["yarn", ["global", "add",
|
39171
|
+
return ["yarn", ["global", "add", t]];
|
39163
39172
|
case "bun":
|
39164
|
-
return ["bun", ["add", "-g",
|
39173
|
+
return ["bun", ["add", "-g", t]];
|
39165
39174
|
case "npm":
|
39166
39175
|
default:
|
39167
|
-
return ["npm", ["install", "-g",
|
39176
|
+
return ["npm", ["install", "-g", t]];
|
39168
39177
|
}
|
39169
39178
|
}
|
39170
|
-
async function GG() {
|
39171
|
-
let
|
39172
|
-
|
39173
|
-
const [
|
39174
|
-
return new Promise((
|
39175
|
-
const
|
39176
|
-
le.debug("Running update command", { packageManager:
|
39177
|
-
const
|
39179
|
+
async function GG(i) {
|
39180
|
+
let e = await VG();
|
39181
|
+
e || (e = await F1()), e || (e = "npm", le.debug("Falling back to npm for update")), le.debug("Using package manager for update", { packageManager: e, targetVersion: i });
|
39182
|
+
const [t, n] = HG(e, i);
|
39183
|
+
return new Promise((r, o) => {
|
39184
|
+
const s = process.env.HOME || process.env.USERPROFILE || "/", l = process.env.SHELL || "/bin/sh", u = `${t} ${n.join(" ")}`, c = `env -i ${l} -l -c 'cd ${s} && ${u}'`;
|
39185
|
+
le.debug("Running update command", { packageManager: e, command: t, args: n, fullCommand: c });
|
39186
|
+
const d = ec("/bin/sh", ["-c", c], {
|
39178
39187
|
stdio: "pipe",
|
39179
39188
|
cwd: process.env.HOME
|
39180
39189
|
});
|
39181
|
-
let
|
39182
|
-
|
39183
|
-
|
39184
|
-
}),
|
39185
|
-
|
39186
|
-
}),
|
39187
|
-
if (
|
39188
|
-
|
39190
|
+
let p = "", g = "";
|
39191
|
+
d.stdout?.on("data", (v) => {
|
39192
|
+
p += v.toString();
|
39193
|
+
}), d.stderr?.on("data", (v) => {
|
39194
|
+
g += v.toString();
|
39195
|
+
}), d.on("close", (v) => {
|
39196
|
+
if (v === 0)
|
39197
|
+
r();
|
39189
39198
|
else {
|
39190
|
-
const
|
39191
|
-
|
39192
|
-
new Error(`${
|
39193
|
-
${
|
39199
|
+
const w = g || p || "No output";
|
39200
|
+
o(
|
39201
|
+
new Error(`${t} ${n.join(" ")} failed with code ${v}:
|
39202
|
+
${w}`)
|
39194
39203
|
);
|
39195
39204
|
}
|
39196
|
-
}),
|
39197
|
-
|
39205
|
+
}), d.on("error", (v) => {
|
39206
|
+
o(new Error(`Failed to spawn ${t}: ${v.message}`));
|
39198
39207
|
});
|
39199
39208
|
});
|
39200
39209
|
}
|
@@ -39273,7 +39282,7 @@ async function Cu(i, e) {
|
|
39273
39282
|
Ag({
|
39274
39283
|
logLevel: e.logLevel || process.env.AMP_LOG_LEVEL,
|
39275
39284
|
logFile: e.logFile || process.env.AMP_LOG_FILE
|
39276
|
-
}), UM("0.0.
|
39285
|
+
}), UM("0.0.1748433686-g2e7c5c");
|
39277
39286
|
const t = e.settingsFile ?? process.env.AMP_SETTINGS_FILE;
|
39278
39287
|
le.info("Using settings file", { settingsFile: t });
|
39279
39288
|
const n = Rm(), r = R4({ settingsFile: t }), o = process.env.AMP_API_KEY;
|
@@ -39370,7 +39379,7 @@ Login failed: ${r instanceof Error ? r.message : String(r)}
|
|
39370
39379
|
}
|
39371
39380
|
}
|
39372
39381
|
function JG(i) {
|
39373
|
-
const e = new S4().name("amp").description("AI-powered coding assistant").version("0.0.
|
39382
|
+
const e = new S4().name("amp").description("AI-powered coding assistant").version("0.0.1748433686-g2e7c5c").option("--thread-id [THREAD_ID]", "ID of the thread to continue running", void 0);
|
39374
39383
|
e.addHelpText(
|
39375
39384
|
"after",
|
39376
39385
|
(() => {
|
@@ -40505,10 +40514,10 @@ function Fr() {
|
|
40505
40514
|
}
|
40506
40515
|
async function XG(i, e) {
|
40507
40516
|
try {
|
40508
|
-
const t = await UG("0.0.
|
40517
|
+
const t = await UG("0.0.1748433686-g2e7c5c");
|
40509
40518
|
t.hasUpdate && t.latestVersion ? e ? (i.next({ type: "update-start-updating" }), setTimeout(async () => {
|
40510
40519
|
try {
|
40511
|
-
await GG(), i.next({
|
40520
|
+
await GG(t.latestVersion), i.next({
|
40512
40521
|
type: "update-result",
|
40513
40522
|
success: !0,
|
40514
40523
|
version: t.latestVersion
|
@@ -40520,7 +40529,7 @@ async function XG(i, e) {
|
|
40520
40529
|
version: t.latestVersion
|
40521
40530
|
});
|
40522
40531
|
}
|
40523
|
-
}, 100)) : le.info(`New version available: 0.0.
|
40532
|
+
}, 100)) : le.info(`New version available: 0.0.1748433686-g2e7c5c → ${t.latestVersion}`) : le.info("No update available");
|
40524
40533
|
} catch (t) {
|
40525
40534
|
le.debug("Update check failed", t);
|
40526
40535
|
}
|
@@ -40575,4 +40584,4 @@ export {
|
|
40575
40584
|
ve as s,
|
40576
40585
|
lr as u
|
40577
40586
|
};
|
40578
|
-
//# sourceMappingURL=main-
|
40587
|
+
//# sourceMappingURL=main-cp81A1je.js.map
|