@sourcegraph/amp 0.0.1748764880-g91d5a9 → 0.0.1748793680-gb5cb75

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 "./console-BEoM5C3l.js";
3
- import "./main-Cc0C-g24.js";
3
+ import "./main-DQYKrEMt.js";
4
4
  import "node:crypto";
5
5
  import "node:fs/promises";
6
6
  import "node:path";
@@ -7749,7 +7749,7 @@ async function h2(i, e, t) {
7749
7749
  const { loadProfileEnvironmentVariables: r } = await import("./load-profile-DRELVkLs.js"), o = t.loadProfile === "never" || !t.workingDirectory ? process.env : await pt(
7750
7750
  r(t.workingDirectory, t.loadProfile)
7751
7751
  );
7752
- n = await import("./stdio-ClZnFzj4.js").then(
7752
+ n = await import("./stdio-D-NQCSHu.js").then(
7753
7753
  ({ StdioClientTransport: s }) => new s({
7754
7754
  ...i,
7755
7755
  stderr: "pipe",
@@ -8574,7 +8574,7 @@ the \`${dm}\` with the url.
8574
8574
  requiresNetwork: !0
8575
8575
  }
8576
8576
  },
8577
- fn: import("./node-D7dUujgo.js").then(({ nodeWebSearchTool: i }) => i)
8577
+ fn: import("./node-BhYs8yvR.js").then(({ nodeWebSearchTool: i }) => i)
8578
8578
  }, k2 = `Execute a routine from your routines.amp.yaml file.
8579
8579
 
8580
8580
  This tool allows you to run predefined routines that automate common tasks. You can optionally provide a userInput argument that describes what input should be passed to the routine.
@@ -8604,7 +8604,7 @@ IMPORTANT: The result of this tool (if any) should be displayed directly to the
8604
8604
  },
8605
8605
  source: "builtin"
8606
8606
  },
8607
- fn: import("./node-CEdAvWvc.js").then(({ runRoutine: i }) => i)
8607
+ fn: import("./node-DeRmGqmZ.js").then(({ runRoutine: i }) => i)
8608
8608
  };
8609
8609
  let f_ = !1;
8610
8610
  async function MT(i, e = !1) {
@@ -40203,7 +40203,7 @@ function Tr() {
40203
40203
  }
40204
40204
  async function sW(i, e) {
40205
40205
  try {
40206
- const t = await ZG("0.0.1748764880-g91d5a9");
40206
+ const t = await ZG("0.0.1748793680-gb5cb75");
40207
40207
  t.hasUpdate && t.latestVersion ? e ? (i.next({ type: "update-start-updating" }), setTimeout(async () => {
40208
40208
  try {
40209
40209
  await tW(t.latestVersion), i.next({
@@ -40218,7 +40218,7 @@ async function sW(i, e) {
40218
40218
  version: t.latestVersion
40219
40219
  });
40220
40220
  }
40221
- }, 100)) : ie.info(`New version available: 0.0.1748764880-g91d5a9 → ${t.latestVersion}`) : ie.info("No update available");
40221
+ }, 100)) : ie.info(`New version available: 0.0.1748793680-gb5cb75 → ${t.latestVersion}`) : ie.info("No update available");
40222
40222
  } catch (t) {
40223
40223
  ie.debug("Update check failed", t);
40224
40224
  }
@@ -40316,7 +40316,7 @@ async function Iu(i, e) {
40316
40316
  cg({
40317
40317
  logLevel: e.logLevel || process.env.AMP_LOG_LEVEL,
40318
40318
  logFile: e.logFile || process.env.AMP_LOG_FILE
40319
- }), jM("0.0.1748764880-g91d5a9");
40319
+ }), jM("0.0.1748793680-gb5cb75");
40320
40320
  const t = e.settingsFile ?? process.env.AMP_SETTINGS_FILE;
40321
40321
  ie.info("Using settings file", { settingsFile: t });
40322
40322
  const n = wu(), r = $T({ settingsFile: t }), o = process.env.AMP_API_KEY;
@@ -40416,7 +40416,7 @@ function dW(i) {
40416
40416
  const e = new U2().name("amp").description("AI-powered coding assistant").option("--thread-id [THREAD_ID]", "ID of the thread to continue running", void 0);
40417
40417
  e.option("-V, --version", "output the version number", () => {
40418
40418
  if (i.isTTY) {
40419
- const r = "0.0.1748764880-g91d5a9".match(/^(\d+\.\d+)\.(\d+)-(.+)$/);
40419
+ const r = "0.0.1748793680-gb5cb75".match(/^(\d+\.\d+)\.(\d+)-(.+)$/);
40420
40420
  if (r) {
40421
40421
  const [, , o] = r;
40422
40422
  try {
@@ -40427,21 +40427,21 @@ function dW(i) {
40427
40427
  day: "numeric"
40428
40428
  });
40429
40429
  tt.write(
40430
- `0.0.1748764880-g91d5a9 ${i.printer.print(`(released ${a})`, { foreground: "gray" })}
40430
+ `0.0.1748793680-gb5cb75 ${i.printer.print(`(released ${a})`, { foreground: "gray" })}
40431
40431
  `
40432
40432
  );
40433
40433
  } else
40434
- tt.write(`0.0.1748764880-g91d5a9
40434
+ tt.write(`0.0.1748793680-gb5cb75
40435
40435
  `);
40436
40436
  } catch {
40437
- tt.write(`0.0.1748764880-g91d5a9
40437
+ tt.write(`0.0.1748793680-gb5cb75
40438
40438
  `);
40439
40439
  }
40440
40440
  } else
40441
- tt.write(`0.0.1748764880-g91d5a9
40441
+ tt.write(`0.0.1748793680-gb5cb75
40442
40442
  `);
40443
40443
  } else
40444
- tt.write(`0.0.1748764880-g91d5a9
40444
+ tt.write(`0.0.1748793680-gb5cb75
40445
40445
  `);
40446
40446
  process.exit(0);
40447
40447
  }), e.addHelpText(
@@ -40839,4 +40839,4 @@ export {
40839
40839
  ge as s,
40840
40840
  lr as u
40841
40841
  };
40842
- //# sourceMappingURL=main-Cc0C-g24.js.map
40842
+ //# sourceMappingURL=main-DQYKrEMt.js.map