@sourcegraph/amp 0.0.1750464102-ge766e0 → 0.0.1750492886-gebfb47

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.
Files changed (2) hide show
  1. package/dist/amp.js +31 -31
  2. package/package.json +1 -1
package/dist/amp.js CHANGED
@@ -16111,30 +16111,7 @@ function gAe() {
16111
16111
  return new Promise((t) => setTimeout(t, 0));
16112
16112
  }
16113
16113
  hAe();
16114
- function E_t(t) {
16115
- return (e) => new rr((r) => {
16116
- let n = [], i = null;
16117
- const a = () => {
16118
- i && (clearTimeout(i), i = null), n.length > 0 && (r.next(n), n = []);
16119
- };
16120
- return e.subscribe({
16121
- next: (s) => {
16122
- if (!(s instanceof Array)) {
16123
- a(), r.next(s);
16124
- return;
16125
- }
16126
- n.push(...s), i = setTimeout(a, t);
16127
- },
16128
- error: (s) => {
16129
- a(), r.error(s);
16130
- },
16131
- complete: () => {
16132
- a(), r.complete();
16133
- }
16134
- });
16135
- });
16136
- }
16137
- class S_t {
16114
+ class E_t {
16138
16115
  constructor(e) {
16139
16116
  this.storage = e;
16140
16117
  }
@@ -16224,7 +16201,7 @@ class S_t {
16224
16201
  // then patches against that thread for subsequent events
16225
16202
  kn(([r, n], i) => i === 0 ? r : n),
16226
16203
  // Batch patches together for 100ms to avoid excessive updates
16227
- E_t(100)
16204
+ S_t(100)
16228
16205
  );
16229
16206
  }
16230
16207
  /**
@@ -16311,6 +16288,29 @@ function hue(t) {
16311
16288
  messages: []
16312
16289
  };
16313
16290
  }
16291
+ function S_t(t) {
16292
+ return (e) => new rr((r) => {
16293
+ let n = [], i = null;
16294
+ const a = () => {
16295
+ i && (clearTimeout(i), i = null), n.length > 0 && (r.next(n), n = []);
16296
+ };
16297
+ return e.subscribe({
16298
+ next: (s) => {
16299
+ if (!(s instanceof Array)) {
16300
+ a(), r.next(s);
16301
+ return;
16302
+ }
16303
+ n.push(...s), i = setTimeout(a, t);
16304
+ },
16305
+ error: (s) => {
16306
+ a(), r.error(s);
16307
+ },
16308
+ complete: () => {
16309
+ a(), r.complete();
16310
+ }
16311
+ });
16312
+ });
16313
+ }
16314
16314
  const mQ = "x-amp-thread-id", T_t = "X-Amp-Client-Application", w_t = "X-Amp-Client-Type", C_t = "X-Amp-Client-Version", x_t = {
16315
16315
  "VS Code": {
16316
16316
  type: "vscode-derived",
@@ -119817,7 +119817,7 @@ async function dSr({
119817
119817
  }
119818
119818
  async function hSr(t) {
119819
119819
  try {
119820
- const e = await sSr("0.0.1750464102-ge766e0");
119820
+ const e = await sSr("0.0.1750492886-gebfb47");
119821
119821
  e.hasUpdate && e.latestVersion ? (t.next({ type: "update-start-updating" }), setTimeout(async () => {
119822
119822
  try {
119823
119823
  await uSr(e.latestVersion), t.next({
@@ -122384,7 +122384,7 @@ async function og(t, e) {
122384
122384
  uI({
122385
122385
  logLevel: e.logLevel || process.env.AMP_LOG_LEVEL,
122386
122386
  logFile: e.logFile || process.env.AMP_LOG_FILE
122387
- }), A_t("0.0.1750464102-ge766e0");
122387
+ }), A_t("0.0.1750492886-gebfb47");
122388
122388
  const r = e.settingsFile ?? process.env.AMP_SETTINGS_FILE;
122389
122389
  Be.info("Using settings file", { settingsFile: r });
122390
122390
  const n = m4(), i = w7e({ settingsFile: r }), a = process.env.AMP_API_KEY;
@@ -122418,7 +122418,7 @@ async function og(t, e) {
122418
122418
  } };
122419
122419
  await n.get("apiKey", t.ampURL) || (xi.write(`No API key found. Starting login flow...
122420
122420
  `), await $Sr(t, n) || process.exit(1));
122421
- const m = Dpt(), _ = new S_t(m), v = new v_t(m), y = new Iyt(_), b = new l1r({
122421
+ const m = Dpt(), _ = new E_t(m), v = new v_t(m), y = new Iyt(_), b = new l1r({
122422
122422
  configService: s,
122423
122423
  threadService: _,
122424
122424
  toolService: l,
@@ -122497,11 +122497,11 @@ function qSr(t) {
122497
122497
  const o = s.originalError ?? s;
122498
122498
  Jd(t, o);
122499
122499
  }), e.option("-V, --version", "output the version number", () => {
122500
- const o = "(released 2025-06-21T00:10:04.210Z)";
122500
+ const o = "(released 2025-06-21T08:10:18.750Z)";
122501
122501
  t.isTTY ? xi.write(
122502
- `0.0.1750464102-ge766e0 ${t.printer.print(o, { foreground: "gray" })}
122502
+ `0.0.1750492886-gebfb47 ${t.printer.print(o, { foreground: "gray" })}
122503
122503
  `
122504
- ) : xi.write(`0.0.1750464102-ge766e0 ${o}
122504
+ ) : xi.write(`0.0.1750492886-gebfb47 ${o}
122505
122505
  `), process.exit(0);
122506
122506
  }), e.addHelpText(
122507
122507
  "after",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sourcegraph/amp",
3
- "version": "0.0.1750464102-ge766e0",
3
+ "version": "0.0.1750492886-gebfb47",
4
4
  "description": "CLI for Amp, an agentic coding tool in research preview from Sourcegraph.",
5
5
  "homepage": "https://ampcode.com/",
6
6
  "author": {