@sourcegraph/amp 0.0.1750982552-g89edb8 → 0.0.1750997190-g855252

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 +17 -11
  2. package/package.json +1 -1
package/dist/amp.js CHANGED
@@ -20169,18 +20169,19 @@ function gke(t) {
20169
20169
  })
20170
20170
  );
20171
20171
  }
20172
- async function p6({ settings: { url: t }, secrets: e }, r) {
20173
- const n = await e.getToken("apiKey", t);
20174
- if (!n)
20172
+ async function p6({ settings: { url: t, "vertexai.enabled": e }, secrets: r }, n) {
20173
+ const i = await r.getToken("apiKey", t);
20174
+ if (!i)
20175
20175
  throw new Error("API key not found. You must provide an API key in settings.");
20176
20176
  return new cm({
20177
- apiKey: n,
20177
+ apiKey: i,
20178
20178
  // uses the Amp API key
20179
20179
  baseURL: new URL("/api/provider/anthropic", t).toString(),
20180
20180
  defaultHeaders: {
20181
20181
  ...iQ(),
20182
- ...r?.threadID ? { [rQ]: r.threadID } : {},
20183
- "anthropic-beta": "fine-grained-tool-streaming-2025-05-14"
20182
+ ...n?.threadID ? { [rQ]: n.threadID } : {},
20183
+ "anthropic-beta": "fine-grained-tool-streaming-2025-05-14",
20184
+ ...e ? { "x-use-vertex": "true" } : {}
20184
20185
  }
20185
20186
  });
20186
20187
  }
@@ -112242,6 +112243,11 @@ const wFe = {
112242
112243
  visible: !1,
112243
112244
  description: "Whether to use Gemini 2.5 pro as the primary model"
112244
112245
  },
112246
+ "vertexai.enabled": {
112247
+ value: !1,
112248
+ visible: !1,
112249
+ description: "Whether to use Vertex AI for Anthropic Claude inference"
112250
+ },
112245
112251
  "experimental.run_javascript.enabled": {
112246
112252
  value: !1,
112247
112253
  visible: !1,
@@ -120224,7 +120230,7 @@ async function USr({
120224
120230
  }
120225
120231
  async function $Sr(t) {
120226
120232
  try {
120227
- const e = await LSr("0.0.1750982552-g89edb8");
120233
+ const e = await LSr("0.0.1750997190-g855252");
120228
120234
  e.hasUpdate && e.latestVersion ? (t.next({ type: "update-start-updating" }), setTimeout(async () => {
120229
120235
  try {
120230
120236
  await BSr(e.latestVersion), t.next({
@@ -122803,7 +122809,7 @@ async function lg(t, e) {
122803
122809
  fI({
122804
122810
  logLevel: e.logLevel || process.env.AMP_LOG_LEVEL,
122805
122811
  logFile: e.logFile || process.env.AMP_LOG_FILE
122806
- }), wht("0.0.1750982552-g89edb8");
122812
+ }), wht("0.0.1750997190-g855252");
122807
122813
  const r = e.settingsFile ?? process.env.AMP_SETTINGS_FILE;
122808
122814
  Fe.info("Using settings file", { settingsFile: r });
122809
122815
  const n = E4(), i = W7e({ settingsFile: r }), a = process.env.AMP_API_KEY;
@@ -122918,11 +122924,11 @@ function _Tr(t) {
122918
122924
  const o = s.originalError ?? s;
122919
122925
  nh(t, o);
122920
122926
  }), e.option("-V, --version", "output the version number", () => {
122921
- const o = "(released 2025-06-27T00:13:08.065Z)";
122927
+ const o = "(released 2025-06-27T04:14:41.280Z)";
122922
122928
  t.isTTY ? xi.write(
122923
- `0.0.1750982552-g89edb8 ${t.printer.print(o, { foreground: "gray" })}
122929
+ `0.0.1750997190-g855252 ${t.printer.print(o, { foreground: "gray" })}
122924
122930
  `
122925
- ) : xi.write(`0.0.1750982552-g89edb8 ${o}
122931
+ ) : xi.write(`0.0.1750997190-g855252 ${o}
122926
122932
  `), process.exit(0);
122927
122933
  }), e.addHelpText(
122928
122934
  "after",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sourcegraph/amp",
3
- "version": "0.0.1750982552-g89edb8",
3
+ "version": "0.0.1750997190-g855252",
4
4
  "description": "CLI for Amp, an agentic coding tool in research preview from Sourcegraph.",
5
5
  "homepage": "https://ampcode.com/",
6
6
  "author": {