@sourcegraph/amp 0.0.1748275295-gce792e → 0.0.1748289687-ga51d20

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
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import "./color-BttSAGAC.js";
3
- import "./main-Cgjnb2Sl.js";
3
+ import "./main-D1urVzTl.js";
4
4
  import "node:crypto";
5
5
  import "node:fs/promises";
6
6
  import "node:path";
@@ -4820,7 +4820,7 @@ async function tL(r, t, e) {
4820
4820
  const { loadProfileEnvironmentVariables: i } = await import("./load-profile-CUdAVcp3.js"), o = e.loadProfile === "never" || !e.workingDirectory ? process.env : await rt(
4821
4821
  i(e.workingDirectory, e.loadProfile)
4822
4822
  );
4823
- n = await import("./stdio-Gbup2U7-.js").then(
4823
+ n = await import("./stdio-Q5YKtqfD.js").then(
4824
4824
  ({ StdioClientTransport: s }) => new s({
4825
4825
  ...r,
4826
4826
  stderr: "pipe",
@@ -5071,7 +5071,7 @@ const lL = aL({
5071
5071
  cacheKey: (r) => r.toString()
5072
5072
  });
5073
5073
  async function uL(r, t) {
5074
- const e = [t?.testing ? "./" : r.toString()];
5074
+ const e = [t?.testing ? "./" : r.fsPath];
5075
5075
  let n = 0, i = 0, s = 3e3 / 0.45;
5076
5076
  const u = await Fk(r.fsPath, null, {
5077
5077
  // Intentionally, no `limit` because it results in non-idempotent
@@ -23100,7 +23100,7 @@ IMPORTANT: The result of this tool (if any) should be displayed directly to the
23100
23100
  },
23101
23101
  source: "builtin"
23102
23102
  },
23103
- fn: import("./node-2rKMwr8X.js").then(({ runRoutine: r }) => r)
23103
+ fn: import("./node-CM5l7QAE.js").then(({ runRoutine: r }) => r)
23104
23104
  };
23105
23105
  let o_ = !1;
23106
23106
  async function sC(r, t = !1) {
@@ -34871,7 +34871,7 @@ function yi(r, t, e, n) {
34871
34871
  t.lines.length > 1 && r.write(`\x1B[${t.lines.length - 1}F`);
34872
34872
  const i = n.split(`
34873
34873
  `);
34874
- t.lines = i, t.cursorLine = 0, t.cursorColumn = 0, dr(r, t, e, 0);
34874
+ t.lines = i, t.cursorLine = 0, t.cursorColumn = i.length > 0 && i[0]?.trimEnd().length || 0, dr(r, t, e, 0);
34875
34875
  }
34876
34876
  function Zw(r, t, e, n) {
34877
34877
  if (e.deletedText.length > 0) {
@@ -35319,7 +35319,7 @@ async function XC(r, t) {
35319
35319
  Np({
35320
35320
  logLevel: r.logLevel || process.env.AMP_LOG_LEVEL,
35321
35321
  logFile: r.logFile || process.env.AMP_LOG_FILE
35322
- }), Ok("0.0.1748275295-gce792e");
35322
+ }), Ok("0.0.1748289687-ga51d20");
35323
35323
  const e = r.settingsFile ?? process.env.AMP_SETTINGS_FILE, n = fC(), i = mV({ settingsFile: e }), o = process.env.AMP_API_KEY;
35324
35324
  o && await n.set("apiKey", o, li);
35325
35325
  const s = uP({
@@ -35408,7 +35408,7 @@ Login failed: ${u instanceof Error ? u.message : String(u)}
35408
35408
  `), !1;
35409
35409
  }
35410
35410
  }
35411
- const mr = new lV().name("amp").description("AI-powered coding assistant").version("0.0.1748275295-gce792e").option("--thread-id [THREAD_ID]", "ID of the thread to continue running", void 0);
35411
+ const mr = new lV().name("amp").description("AI-powered coding assistant").version("0.0.1748289687-ga51d20").option("--thread-id [THREAD_ID]", "ID of the thread to continue running", void 0);
35412
35412
  mr.configureHelp({
35413
35413
  formatHelp: (r, t) => {
35414
35414
  const n = typeof process < "u" && process.stdout?.isTTY && process.stderr?.isTTY ? Ql : Xl, i = r.parent !== null, o = (u, l) => {
@@ -36192,7 +36192,7 @@ function _n() {
36192
36192
  }
36193
36193
  async function UG(r, t) {
36194
36194
  try {
36195
- const e = await CG("0.0.1748275295-gce792e");
36195
+ const e = await CG("0.0.1748289687-ga51d20");
36196
36196
  e.hasUpdate && e.latestVersion && (t ? (r.next({ type: "update-start-updating" }), setTimeout(async () => {
36197
36197
  try {
36198
36198
  await xG(), r.next({
@@ -36207,7 +36207,7 @@ async function UG(r, t) {
36207
36207
  version: e.latestVersion
36208
36208
  });
36209
36209
  }
36210
- }, 100)) : se.info(`New version available: 0.0.1748275295-gce792e → ${e.latestVersion}`));
36210
+ }, 100)) : se.info(`New version available: 0.0.1748289687-ga51d20 → ${e.latestVersion}`));
36211
36211
  } catch (e) {
36212
36212
  se.debug("Update check failed", e);
36213
36213
  }
@@ -36230,4 +36230,4 @@ export {
36230
36230
  ce as s,
36231
36231
  Ft as u
36232
36232
  };
36233
- //# sourceMappingURL=main-Cgjnb2Sl.js.map
36233
+ //# sourceMappingURL=main-D1urVzTl.js.map