@sourcegraph/amp 0.0.1748503864-g313565 → 0.0.1748520101-g059492

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-Bs5UNAQf.js";
3
- import "./main-BKgoxjc3.js";
3
+ import "./main-BKRO0pxS.js";
4
4
  import "node:crypto";
5
5
  import "node:fs/promises";
6
6
  import "node:path";
@@ -7755,7 +7755,7 @@ async function l2(i, e, t) {
7755
7755
  const { loadProfileEnvironmentVariables: r } = await import("./load-profile-Gn3gm8Ha.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-Bv-vo7_D.js").then(
7758
+ n = await import("./stdio-i14yvYZJ.js").then(
7759
7759
  ({ StdioClientTransport: s }) => new s({
7760
7760
  ...i,
7761
7761
  stderr: "pipe",
@@ -8103,7 +8103,7 @@ the \`${um}\` with the url.
8103
8103
  requiresNetwork: !0
8104
8104
  }
8105
8105
  },
8106
- fn: import("./node-BN7st9Hr.js").then(({ nodeWebSearchTool: i }) => i)
8106
+ fn: import("./node-EqiKQ9nc.js").then(({ nodeWebSearchTool: i }) => i)
8107
8107
  };
8108
8108
  function y2(i) {
8109
8109
  const { interval: e, fn: t, cacheKey: n } = i, r = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Map();
@@ -26787,7 +26787,7 @@ class Jo {
26787
26787
  ae.debug("cancel: aborting inference operation and tools"), this.cancelInference(), this.cancelUnstartedTools(), this.cancelInProgressTools(), await this.handle({ type: "cancelled" }, void 0);
26788
26788
  }
26789
26789
  cancelInference() {
26790
- this.ops.inference && (this.ops.inference.abort(mM.USER_CANCELLED), this.ops.inference = null), this.inferenceState.next("cancelled");
26790
+ this.ops.inference && (this.ops.inference.abort(new Error(mM.USER_CANCELLED)), this.ops.inference = null), this.inferenceState.next("cancelled");
26791
26791
  }
26792
26792
  async retry() {
26793
26793
  ae.debug("retry: retrying inference operation"), this.ephemeralError.getValue() !== void 0 && this.ephemeralError.next(void 0), this.ops.inference && (this.ops.inference.abort(), this.ops.inference = null), this.inferenceState.next("idle"), await this.runInferenceAndUpdateThread();
@@ -26939,7 +26939,7 @@ IMPORTANT: The result of this tool (if any) should be displayed directly to the
26939
26939
  },
26940
26940
  source: "builtin"
26941
26941
  },
26942
- fn: import("./node-r_CFo2hp.js").then(({ runRoutine: i }) => i)
26942
+ fn: import("./node-XTxbMNXK.js").then(({ runRoutine: i }) => i)
26943
26943
  };
26944
26944
  let Fw = !1;
26945
26945
  async function JC(i, e = !1) {
@@ -39332,7 +39332,7 @@ async function Au(i, e) {
39332
39332
  Ag({
39333
39333
  logLevel: e.logLevel || process.env.AMP_LOG_LEVEL,
39334
39334
  logFile: e.logFile || process.env.AMP_LOG_FILE
39335
- }), GM("0.0.1748503864-g313565");
39335
+ }), GM("0.0.1748520101-g059492");
39336
39336
  const t = e.settingsFile ?? process.env.AMP_SETTINGS_FILE;
39337
39337
  ae.info("Using settings file", { settingsFile: t });
39338
39338
  const n = Cu(), r = XC({ settingsFile: t }), o = process.env.AMP_API_KEY;
@@ -39429,7 +39429,7 @@ Login failed: ${r instanceof Error ? r.message : String(r)}
39429
39429
  }
39430
39430
  }
39431
39431
  function ZG(i) {
39432
- const e = new E4().name("amp").description("AI-powered coding assistant").version("0.0.1748503864-g313565").option("--thread-id [THREAD_ID]", "ID of the thread to continue running", void 0);
39432
+ const e = new E4().name("amp").description("AI-powered coding assistant").version("0.0.1748520101-g059492").option("--thread-id [THREAD_ID]", "ID of the thread to continue running", void 0);
39433
39433
  e.addHelpText(
39434
39434
  "after",
39435
39435
  (() => {
@@ -40623,7 +40623,7 @@ function Tr() {
40623
40623
  }
40624
40624
  async function rW(i, e) {
40625
40625
  try {
40626
- const t = await BG("0.0.1748503864-g313565");
40626
+ const t = await BG("0.0.1748520101-g059492");
40627
40627
  t.hasUpdate && t.latestVersion ? e ? (i.next({ type: "update-start-updating" }), setTimeout(async () => {
40628
40628
  try {
40629
40629
  await WG(t.latestVersion), i.next({
@@ -40638,7 +40638,7 @@ async function rW(i, e) {
40638
40638
  version: t.latestVersion
40639
40639
  });
40640
40640
  }
40641
- }, 100)) : ae.info(`New version available: 0.0.1748503864-g313565 → ${t.latestVersion}`) : ae.info("No update available");
40641
+ }, 100)) : ae.info(`New version available: 0.0.1748520101-g059492 → ${t.latestVersion}`) : ae.info("No update available");
40642
40642
  } catch (t) {
40643
40643
  ae.debug("Update check failed", t);
40644
40644
  }
@@ -40693,4 +40693,4 @@ export {
40693
40693
  ve as s,
40694
40694
  lr as u
40695
40695
  };
40696
- //# sourceMappingURL=main-BKgoxjc3.js.map
40696
+ //# sourceMappingURL=main-BKRO0pxS.js.map