@sourcegraph/amp 0.0.1748793680-gb5cb75 → 0.0.1748802804-g235c50

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 (41) hide show
  1. package/dist/amp.js +2 -2
  2. package/dist/{console-BEoM5C3l.js → console-k3nh7b4U.js} +4477 -4461
  3. package/dist/console-k3nh7b4U.js.map +1 -0
  4. package/dist/{create_file.node-BFS-uX0h.js → create_file.node-Dxp9NAiW.js} +2 -2
  5. package/dist/{create_file.node-BFS-uX0h.js.map → create_file.node-Dxp9NAiW.js.map} +1 -1
  6. package/dist/{edit_file.node-D0utnpOc.js → edit_file.node-BlCpGVR-.js} +3 -3
  7. package/dist/{edit_file.node-D0utnpOc.js.map → edit_file.node-BlCpGVR-.js.map} +1 -1
  8. package/dist/{executable-Bm7iL2Wr.js → executable-DTI1_xm7.js} +2 -2
  9. package/dist/{executable-Bm7iL2Wr.js.map → executable-DTI1_xm7.js.map} +1 -1
  10. package/dist/{files-8V4d25dw.js → files-DdjDm_B8.js} +2 -2
  11. package/dist/{files-8V4d25dw.js.map → files-DdjDm_B8.js.map} +1 -1
  12. package/dist/{glob.node-CxhUfk73.js → glob.node-BnKeKl9M.js} +3 -3
  13. package/dist/{glob.node-CxhUfk73.js.map → glob.node-BnKeKl9M.js.map} +1 -1
  14. package/dist/{list_directory.node-BvKQRegC.js → list_directory.node-DDhJZGvT.js} +2 -2
  15. package/dist/{list_directory.node-BvKQRegC.js.map → list_directory.node-DDhJZGvT.js.map} +1 -1
  16. package/dist/{load-profile-DRELVkLs.js → load-profile-CWDhvBXX.js} +2 -2
  17. package/dist/{load-profile-DRELVkLs.js.map → load-profile-CWDhvBXX.js.map} +1 -1
  18. package/dist/{main-DQYKrEMt.js → main-B_IRSDfV.js} +235 -234
  19. package/dist/main-B_IRSDfV.js.map +1 -0
  20. package/dist/{node-BuGshbyJ.js → node-3m0J6gBv.js} +3 -3
  21. package/dist/{node-BuGshbyJ.js.map → node-3m0J6gBv.js.map} +1 -1
  22. package/dist/{node-DHEAQDoa.js → node-BZlRkYQw.js} +2 -2
  23. package/dist/{node-DHEAQDoa.js.map → node-BZlRkYQw.js.map} +1 -1
  24. package/dist/{node-BhYs8yvR.js → node-CeX3AGot.js} +3 -3
  25. package/dist/{node-BhYs8yvR.js.map → node-CeX3AGot.js.map} +1 -1
  26. package/dist/{node-DeRmGqmZ.js → node-DXblyBSN.js} +3 -3
  27. package/dist/{node-DeRmGqmZ.js.map → node-DXblyBSN.js.map} +1 -1
  28. package/dist/{node-CcCnjzdp.js → node-DuhaU87r.js} +3 -3
  29. package/dist/{node-CcCnjzdp.js.map → node-DuhaU87r.js.map} +1 -1
  30. package/dist/{node-xakp4FYv.js → node-w5kFgl6-.js} +2 -2
  31. package/dist/{node-xakp4FYv.js.map → node-w5kFgl6-.js.map} +1 -1
  32. package/dist/{read_file.node-Bh95y2qD.js → read_file.node-CsATnmUF.js} +2 -2
  33. package/dist/{read_file.node-Bh95y2qD.js.map → read_file.node-CsATnmUF.js.map} +1 -1
  34. package/dist/{stdio-D-NQCSHu.js → stdio-CEtFG9QM.js} +3 -3
  35. package/dist/{stdio-D-NQCSHu.js.map → stdio-CEtFG9QM.js.map} +1 -1
  36. package/dist/storybook.js +1 -1
  37. package/dist/{undo_edit.node-BZBcJgmC.js → undo_edit.node-CHrrMPkn.js} +2 -2
  38. package/dist/{undo_edit.node-BZBcJgmC.js.map → undo_edit.node-CHrrMPkn.js.map} +1 -1
  39. package/package.json +1 -1
  40. package/dist/console-BEoM5C3l.js.map +0 -1
  41. package/dist/main-DQYKrEMt.js.map +0 -1
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { B as _i, O as Qt, s as fn, c as UE, a as Jn, b as nc, f as pt, d as ta, p as es, m as Et, e as ha, g as un, h as pa, i as KO, j as qE, k as ic, M as Qn, l as JO, n as ie, N as vu, o as Um, r as Fr, q as qm, t as YO, u as jO, v as Bm, w as ZO, x as QO, y as Jy, z as Ru, A as XO, C as eM, D as tM, E as rM, F as nM, G as iM, H as oM, I as sM, J as aM, K as lM, L as uM, P as cM, Q as fM, R as dM, S as hM, T as pM, U as ku, V as BE, W as mM, X as gM, Y as Sn, Z as vM, _ as yM, $ as vW, a0 as ra, a1 as _M, a2 as wM, a3 as bM, a4 as Zi, a5 as VE, a6 as SM, a7 as wi, a8 as HE, a9 as GE, aa as EM, ab as TM, ac as Yp, ad as CM, ae as AM, af as PM, ag as xM, ah as IM, ai as id, aj as RM, ak as WE, al as Yy, am as kM, an as OM, ao as MM, ap as LM, aq as NM, ar as DM, as as FM, at as $M, au as UM, av as qM, aw as BM, ax as jy, ay as VM, az as HM, aA as GM, aB as zE, aC as jp, aD as Tt, aE as WM, aF as zM, aG as KM, aH as Zy, aI as Qy, aJ as Xy, aK as JM, aL as YM, aM as KE, aN as JE, aO as jM } from "./console-BEoM5C3l.js";
2
+ import { B as _i, O as Qt, s as fn, c as UE, a as Jn, b as nc, f as pt, d as ta, p as es, m as Et, e as ha, g as un, h as pa, i as KO, j as qE, k as ic, M as Qn, l as JO, n as ie, N as vu, o as Um, r as Fr, q as qm, t as YO, u as jO, v as Bm, w as ZO, x as QO, y as Jy, z as Ru, A as XO, C as eM, D as tM, E as rM, F as nM, G as iM, H as oM, I as sM, J as aM, K as lM, L as uM, P as cM, Q as fM, R as dM, S as hM, T as pM, U as ku, V as BE, W as mM, X as gM, Y as Sn, Z as vM, _ as yM, $ as vW, a0 as ra, a1 as _M, a2 as wM, a3 as bM, a4 as Zi, a5 as VE, a6 as SM, a7 as wi, a8 as HE, a9 as GE, aa as EM, ab as TM, ac as Yp, ad as CM, ae as AM, af as PM, ag as xM, ah as IM, ai as id, aj as RM, ak as WE, al as Yy, am as kM, an as OM, ao as MM, ap as LM, aq as NM, ar as DM, as as FM, at as $M, au as UM, av as qM, aw as BM, ax as jy, ay as VM, az as HM, aA as GM, aB as zE, aC as jp, aD as Tt, aE as WM, aF as zM, aG as KM, aH as Zy, aI as Qy, aJ as Xy, aK as JM, aL as YM, aM as KE, aN as JE, aO as jM } from "./console-k3nh7b4U.js";
3
3
  import * as ZM from "node:fs/promises";
4
4
  import Yo, { readdir as QM, stat as YE, readFile as bi, mkdir as Ou, writeFile as na, unlink as XM, open as eL, readlink as tL } from "node:fs/promises";
5
5
  import * as rL from "node:path";
@@ -17,7 +17,7 @@ import fL from "node:zlib";
17
17
  import dL from "node:string_decoder";
18
18
  import hL, { createServer as QE } from "node:http";
19
19
  import pL from "node:https";
20
- import { r as mL } from "./executable-Bm7iL2Wr.js";
20
+ import { r as mL } from "./executable-DTI1_xm7.js";
21
21
  function gL() {
22
22
  const i = /* @__PURE__ */ new Set(), e = new _i(i);
23
23
  return {
@@ -107,7 +107,8 @@ function XE({
107
107
  ),
108
108
  Et((s) => ({
109
109
  ...s,
110
- url: s.url || n
110
+ url: s.url || n,
111
+ "todos.enabled": s["todos.enabled"] ?? !0
111
112
  })),
112
113
  nc(),
113
114
  ha()
@@ -7746,10 +7747,10 @@ async function h2(i, e, t) {
7746
7747
  if ("url" in i)
7747
7748
  n = new f2(new URL(i.url));
7748
7749
  else {
7749
- const { loadProfileEnvironmentVariables: r } = await import("./load-profile-DRELVkLs.js"), o = t.loadProfile === "never" || !t.workingDirectory ? process.env : await pt(
7750
+ const { loadProfileEnvironmentVariables: r } = await import("./load-profile-CWDhvBXX.js"), o = t.loadProfile === "never" || !t.workingDirectory ? process.env : await pt(
7750
7751
  r(t.workingDirectory, t.loadProfile)
7751
7752
  );
7752
- n = await import("./stdio-D-NQCSHu.js").then(
7753
+ n = await import("./stdio-CEtFG9QM.js").then(
7753
7754
  ({ StdioClientTransport: s }) => new s({
7754
7755
  ...i,
7755
7756
  stderr: "pipe",
@@ -8526,7 +8527,7 @@ This tool converts web content to markdown format for better readability.`,
8526
8527
  requiresNetwork: !0
8527
8528
  }
8528
8529
  },
8529
- fn: import("./node-xakp4FYv.js").then(({ nodeReadWebPageTool: i }) => i)
8530
+ fn: import("./node-w5kFgl6-.js").then(({ nodeReadWebPageTool: i }) => i)
8530
8531
  }, x2 = "web_search", I2 = `Search the web for information.
8531
8532
 
8532
8533
  Returns search result titles, associated URLs, and a small summary of the
@@ -8574,7 +8575,7 @@ the \`${dm}\` with the url.
8574
8575
  requiresNetwork: !0
8575
8576
  }
8576
8577
  },
8577
- fn: import("./node-BhYs8yvR.js").then(({ nodeWebSearchTool: i }) => i)
8578
+ fn: import("./node-CeX3AGot.js").then(({ nodeWebSearchTool: i }) => i)
8578
8579
  }, k2 = `Execute a routine from your routines.amp.yaml file.
8579
8580
 
8580
8581
  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 +8605,7 @@ IMPORTANT: The result of this tool (if any) should be displayed directly to the
8604
8605
  },
8605
8606
  source: "builtin"
8606
8607
  },
8607
- fn: import("./node-DeRmGqmZ.js").then(({ runRoutine: i }) => i)
8608
+ fn: import("./node-DXblyBSN.js").then(({ runRoutine: i }) => i)
8608
8609
  };
8609
8610
  let f_ = !1;
8610
8611
  async function MT(i, e = !1) {
@@ -22485,10 +22486,10 @@ function X5(i, e) {
22485
22486
  const t = {}, n = m(e, ["authConfig"]);
22486
22487
  return n != null && y(t, ["authConfig"], Q5(i, n)), t;
22487
22488
  }
22488
- function e9() {
22489
+ function eB() {
22489
22490
  return {};
22490
22491
  }
22491
- function t9(i, e) {
22492
+ function tB(i, e) {
22492
22493
  const t = {}, n = m(e, [
22493
22494
  "functionDeclarations"
22494
22495
  ]);
@@ -22507,13 +22508,13 @@ function t9(i, e) {
22507
22508
  throw new Error("enterpriseWebSearch parameter is not supported in Gemini API.");
22508
22509
  if (m(e, ["googleMaps"]) !== void 0)
22509
22510
  throw new Error("googleMaps parameter is not supported in Gemini API.");
22510
- m(e, ["urlContext"]) != null && y(t, ["urlContext"], e9());
22511
+ m(e, ["urlContext"]) != null && y(t, ["urlContext"], eB());
22511
22512
  const a = m(e, [
22512
22513
  "codeExecution"
22513
22514
  ]);
22514
22515
  return a != null && y(t, ["codeExecution"], a), t;
22515
22516
  }
22516
- function r9(i, e) {
22517
+ function rB(i, e) {
22517
22518
  const t = {}, n = m(e, [
22518
22519
  "functionDeclarations"
22519
22520
  ]);
@@ -22539,13 +22540,13 @@ function r9(i, e) {
22539
22540
  ]);
22540
22541
  return c != null && y(t, ["codeExecution"], c), t;
22541
22542
  }
22542
- function n9(i, e) {
22543
+ function nB(i, e) {
22543
22544
  const t = {}, n = m(e, ["handle"]);
22544
22545
  if (n != null && y(t, ["handle"], n), m(e, ["transparent"]) !== void 0)
22545
22546
  throw new Error("transparent parameter is not supported in Gemini API.");
22546
22547
  return t;
22547
22548
  }
22548
- function i9(i, e) {
22549
+ function iB(i, e) {
22549
22550
  const t = {}, n = m(e, ["handle"]);
22550
22551
  n != null && y(t, ["handle"], n);
22551
22552
  const r = m(e, ["transparent"]);
@@ -22557,7 +22558,7 @@ function WS() {
22557
22558
  function zS() {
22558
22559
  return {};
22559
22560
  }
22560
- function o9(i, e) {
22561
+ function oB(i, e) {
22561
22562
  const t = {}, n = m(e, ["disabled"]);
22562
22563
  n != null && y(t, ["disabled"], n);
22563
22564
  const r = m(e, [
@@ -22577,7 +22578,7 @@ function o9(i, e) {
22577
22578
  ]);
22578
22579
  return a != null && y(t, ["silenceDurationMs"], a), t;
22579
22580
  }
22580
- function s9(i, e) {
22581
+ function sB(i, e) {
22581
22582
  const t = {}, n = m(e, ["disabled"]);
22582
22583
  n != null && y(t, ["disabled"], n);
22583
22584
  const r = m(e, [
@@ -22597,11 +22598,11 @@ function s9(i, e) {
22597
22598
  ]);
22598
22599
  return a != null && y(t, ["silenceDurationMs"], a), t;
22599
22600
  }
22600
- function a9(i, e) {
22601
+ function aB(i, e) {
22601
22602
  const t = {}, n = m(e, [
22602
22603
  "automaticActivityDetection"
22603
22604
  ]);
22604
- n != null && y(t, ["automaticActivityDetection"], o9(i, n));
22605
+ n != null && y(t, ["automaticActivityDetection"], oB(i, n));
22605
22606
  const r = m(e, [
22606
22607
  "activityHandling"
22607
22608
  ]);
@@ -22609,11 +22610,11 @@ function a9(i, e) {
22609
22610
  const o = m(e, ["turnCoverage"]);
22610
22611
  return o != null && y(t, ["turnCoverage"], o), t;
22611
22612
  }
22612
- function l9(i, e) {
22613
+ function lB(i, e) {
22613
22614
  const t = {}, n = m(e, [
22614
22615
  "automaticActivityDetection"
22615
22616
  ]);
22616
- n != null && y(t, ["automaticActivityDetection"], s9(i, n));
22617
+ n != null && y(t, ["automaticActivityDetection"], sB(i, n));
22617
22618
  const r = m(e, [
22618
22619
  "activityHandling"
22619
22620
  ]);
@@ -22621,15 +22622,15 @@ function l9(i, e) {
22621
22622
  const o = m(e, ["turnCoverage"]);
22622
22623
  return o != null && y(t, ["turnCoverage"], o), t;
22623
22624
  }
22624
- function u9(i, e) {
22625
+ function uB(i, e) {
22625
22626
  const t = {}, n = m(e, ["targetTokens"]);
22626
22627
  return n != null && y(t, ["targetTokens"], n), t;
22627
22628
  }
22628
- function c9(i, e) {
22629
+ function cB(i, e) {
22629
22630
  const t = {}, n = m(e, ["targetTokens"]);
22630
22631
  return n != null && y(t, ["targetTokens"], n), t;
22631
22632
  }
22632
- function f9(i, e) {
22633
+ function fB(i, e) {
22633
22634
  const t = {}, n = m(e, [
22634
22635
  "triggerTokens"
22635
22636
  ]);
@@ -22637,9 +22638,9 @@ function f9(i, e) {
22637
22638
  const r = m(e, [
22638
22639
  "slidingWindow"
22639
22640
  ]);
22640
- return r != null && y(t, ["slidingWindow"], u9(i, r)), t;
22641
+ return r != null && y(t, ["slidingWindow"], uB(i, r)), t;
22641
22642
  }
22642
- function d9(i, e) {
22643
+ function dB(i, e) {
22643
22644
  const t = {}, n = m(e, [
22644
22645
  "triggerTokens"
22645
22646
  ]);
@@ -22647,21 +22648,21 @@ function d9(i, e) {
22647
22648
  const r = m(e, [
22648
22649
  "slidingWindow"
22649
22650
  ]);
22650
- return r != null && y(t, ["slidingWindow"], c9(i, r)), t;
22651
+ return r != null && y(t, ["slidingWindow"], cB(i, r)), t;
22651
22652
  }
22652
- function h9(i, e) {
22653
+ function hB(i, e) {
22653
22654
  const t = {}, n = m(e, [
22654
22655
  "proactiveAudio"
22655
22656
  ]);
22656
22657
  return n != null && y(t, ["proactiveAudio"], n), t;
22657
22658
  }
22658
- function p9(i, e) {
22659
+ function pB(i, e) {
22659
22660
  const t = {}, n = m(e, [
22660
22661
  "proactiveAudio"
22661
22662
  ]);
22662
22663
  return n != null && y(t, ["proactiveAudio"], n), t;
22663
22664
  }
22664
- function m9(i, e, t) {
22665
+ function mB(i, e, t) {
22665
22666
  const n = {}, r = m(e, [
22666
22667
  "generationConfig"
22667
22668
  ]);
@@ -22699,12 +22700,12 @@ function m9(i, e, t) {
22699
22700
  const w = m(e, ["tools"]);
22700
22701
  if (t !== void 0 && w != null) {
22701
22702
  let M = bc(i, w);
22702
- Array.isArray(M) && (M = M.map(($) => t9(i, wc(i, $)))), y(t, ["setup", "tools"], M);
22703
+ Array.isArray(M) && (M = M.map(($) => tB(i, wc(i, $)))), y(t, ["setup", "tools"], M);
22703
22704
  }
22704
22705
  const b = m(e, [
22705
22706
  "sessionResumption"
22706
22707
  ]);
22707
- t !== void 0 && b != null && y(t, ["setup", "sessionResumption"], n9(i, b));
22708
+ t !== void 0 && b != null && y(t, ["setup", "sessionResumption"], nB(i, b));
22708
22709
  const p = m(e, [
22709
22710
  "inputAudioTranscription"
22710
22711
  ]);
@@ -22716,15 +22717,15 @@ function m9(i, e, t) {
22716
22717
  const T = m(e, [
22717
22718
  "realtimeInputConfig"
22718
22719
  ]);
22719
- t !== void 0 && T != null && y(t, ["setup", "realtimeInputConfig"], a9(i, T));
22720
+ t !== void 0 && T != null && y(t, ["setup", "realtimeInputConfig"], aB(i, T));
22720
22721
  const C = m(e, [
22721
22722
  "contextWindowCompression"
22722
22723
  ]);
22723
- t !== void 0 && C != null && y(t, ["setup", "contextWindowCompression"], f9(i, C));
22724
+ t !== void 0 && C != null && y(t, ["setup", "contextWindowCompression"], fB(i, C));
22724
22725
  const A = m(e, ["proactivity"]);
22725
- return t !== void 0 && A != null && y(t, ["setup", "proactivity"], h9(i, A)), n;
22726
+ return t !== void 0 && A != null && y(t, ["setup", "proactivity"], hB(i, A)), n;
22726
22727
  }
22727
- function g9(i, e, t) {
22728
+ function gB(i, e, t) {
22728
22729
  const n = {}, r = m(e, [
22729
22730
  "generationConfig"
22730
22731
  ]);
@@ -22762,12 +22763,12 @@ function g9(i, e, t) {
22762
22763
  const w = m(e, ["tools"]);
22763
22764
  if (t !== void 0 && w != null) {
22764
22765
  let M = bc(i, w);
22765
- Array.isArray(M) && (M = M.map(($) => r9(i, wc(i, $)))), y(t, ["setup", "tools"], M);
22766
+ Array.isArray(M) && (M = M.map(($) => rB(i, wc(i, $)))), y(t, ["setup", "tools"], M);
22766
22767
  }
22767
22768
  const b = m(e, [
22768
22769
  "sessionResumption"
22769
22770
  ]);
22770
- t !== void 0 && b != null && y(t, ["setup", "sessionResumption"], i9(i, b));
22771
+ t !== void 0 && b != null && y(t, ["setup", "sessionResumption"], iB(i, b));
22771
22772
  const p = m(e, [
22772
22773
  "inputAudioTranscription"
22773
22774
  ]);
@@ -22779,39 +22780,39 @@ function g9(i, e, t) {
22779
22780
  const T = m(e, [
22780
22781
  "realtimeInputConfig"
22781
22782
  ]);
22782
- t !== void 0 && T != null && y(t, ["setup", "realtimeInputConfig"], l9(i, T));
22783
+ t !== void 0 && T != null && y(t, ["setup", "realtimeInputConfig"], lB(i, T));
22783
22784
  const C = m(e, [
22784
22785
  "contextWindowCompression"
22785
22786
  ]);
22786
- t !== void 0 && C != null && y(t, ["setup", "contextWindowCompression"], d9(i, C));
22787
+ t !== void 0 && C != null && y(t, ["setup", "contextWindowCompression"], dB(i, C));
22787
22788
  const A = m(e, ["proactivity"]);
22788
- return t !== void 0 && A != null && y(t, ["setup", "proactivity"], p9(i, A)), n;
22789
+ return t !== void 0 && A != null && y(t, ["setup", "proactivity"], pB(i, A)), n;
22789
22790
  }
22790
- function v9(i, e) {
22791
+ function vB(i, e) {
22791
22792
  const t = {}, n = m(e, ["model"]);
22792
22793
  n != null && y(t, ["setup", "model"], Ot(i, n));
22793
22794
  const r = m(e, ["config"]);
22794
- return r != null && y(t, ["config"], m9(i, r, t)), t;
22795
+ return r != null && y(t, ["config"], mB(i, r, t)), t;
22795
22796
  }
22796
- function y9(i, e) {
22797
+ function yB(i, e) {
22797
22798
  const t = {}, n = m(e, ["model"]);
22798
22799
  n != null && y(t, ["setup", "model"], Ot(i, n));
22799
22800
  const r = m(e, ["config"]);
22800
- return r != null && y(t, ["config"], g9(i, r, t)), t;
22801
+ return r != null && y(t, ["config"], gB(i, r, t)), t;
22801
22802
  }
22802
- function _9() {
22803
+ function _B() {
22803
22804
  return {};
22804
22805
  }
22805
- function w9() {
22806
+ function wB() {
22806
22807
  return {};
22807
22808
  }
22808
- function b9() {
22809
+ function bB() {
22809
22810
  return {};
22810
22811
  }
22811
- function S9() {
22812
+ function SB() {
22812
22813
  return {};
22813
22814
  }
22814
- function E9(i, e) {
22815
+ function EB(i, e) {
22815
22816
  const t = {}, n = m(e, ["media"]);
22816
22817
  n != null && y(t, ["mediaChunks"], CC(i, n));
22817
22818
  const r = m(e, ["audio"]);
@@ -22825,9 +22826,9 @@ function E9(i, e) {
22825
22826
  const a = m(e, ["text"]);
22826
22827
  return a != null && y(t, ["text"], a), m(e, [
22827
22828
  "activityStart"
22828
- ]) != null && y(t, ["activityStart"], _9()), m(e, ["activityEnd"]) != null && y(t, ["activityEnd"], b9()), t;
22829
+ ]) != null && y(t, ["activityStart"], _B()), m(e, ["activityEnd"]) != null && y(t, ["activityEnd"], bB()), t;
22829
22830
  }
22830
- function T9(i, e) {
22831
+ function TB(i, e) {
22831
22832
  const t = {}, n = m(e, ["media"]);
22832
22833
  if (n != null && y(t, ["mediaChunks"], CC(i, n)), m(e, ["audio"]) !== void 0)
22833
22834
  throw new Error("audio parameter is not supported in Vertex AI.");
@@ -22840,7 +22841,7 @@ function T9(i, e) {
22840
22841
  throw new Error("text parameter is not supported in Vertex AI.");
22841
22842
  return m(e, [
22842
22843
  "activityStart"
22843
- ]) != null && y(t, ["activityStart"], w9()), m(e, ["activityEnd"]) != null && y(t, ["activityEnd"], S9()), t;
22844
+ ]) != null && y(t, ["activityStart"], wB()), m(e, ["activityEnd"]) != null && y(t, ["activityEnd"], SB()), t;
22844
22845
  }
22845
22846
  function DC(i, e) {
22846
22847
  const t = {}, n = m(e, ["text"]);
@@ -22848,7 +22849,7 @@ function DC(i, e) {
22848
22849
  const r = m(e, ["weight"]);
22849
22850
  return r != null && y(t, ["weight"], r), t;
22850
22851
  }
22851
- function C9(i, e) {
22852
+ function CB(i, e) {
22852
22853
  const t = {}, n = m(e, [
22853
22854
  "weightedPrompts"
22854
22855
  ]);
@@ -22888,7 +22889,7 @@ function FC(i, e) {
22888
22889
  ]);
22889
22890
  return _ != null && y(t, ["musicGenerationMode"], _), t;
22890
22891
  }
22891
- function A9(i, e) {
22892
+ function AB(i, e) {
22892
22893
  const t = {}, n = m(e, [
22893
22894
  "musicGenerationConfig"
22894
22895
  ]);
@@ -22924,13 +22925,13 @@ function Em(i, e) {
22924
22925
  ]);
22925
22926
  return s != null && y(t, ["playbackControl"], s), t;
22926
22927
  }
22927
- function P9() {
22928
+ function PB() {
22928
22929
  return {};
22929
22930
  }
22930
- function x9() {
22931
+ function xB() {
22931
22932
  return {};
22932
22933
  }
22933
- function I9(i, e) {
22934
+ function IB(i, e) {
22934
22935
  const t = {}, n = m(e, ["fps"]);
22935
22936
  n != null && y(t, ["fps"], n);
22936
22937
  const r = m(e, ["endOffset"]);
@@ -22938,7 +22939,7 @@ function I9(i, e) {
22938
22939
  const o = m(e, ["startOffset"]);
22939
22940
  return o != null && y(t, ["startOffset"], o), t;
22940
22941
  }
22941
- function R9(i, e) {
22942
+ function RB(i, e) {
22942
22943
  const t = {}, n = m(e, ["fps"]);
22943
22944
  n != null && y(t, ["fps"], n);
22944
22945
  const r = m(e, ["endOffset"]);
@@ -22946,13 +22947,13 @@ function R9(i, e) {
22946
22947
  const o = m(e, ["startOffset"]);
22947
22948
  return o != null && y(t, ["startOffset"], o), t;
22948
22949
  }
22949
- function k9(i, e) {
22950
+ function kB(i, e) {
22950
22951
  const t = {}, n = m(e, ["data"]);
22951
22952
  n != null && y(t, ["data"], n);
22952
22953
  const r = m(e, ["mimeType"]);
22953
22954
  return r != null && y(t, ["mimeType"], r), t;
22954
22955
  }
22955
- function O9(i, e) {
22956
+ function OB(i, e) {
22956
22957
  const t = {}, n = m(e, ["displayName"]);
22957
22958
  n != null && y(t, ["displayName"], n);
22958
22959
  const r = m(e, ["data"]);
@@ -22960,15 +22961,15 @@ function O9(i, e) {
22960
22961
  const o = m(e, ["mimeType"]);
22961
22962
  return o != null && y(t, ["mimeType"], o), t;
22962
22963
  }
22963
- function M9(i, e) {
22964
+ function MB(i, e) {
22964
22965
  const t = {}, n = m(e, [
22965
22966
  "videoMetadata"
22966
22967
  ]);
22967
- n != null && y(t, ["videoMetadata"], I9(i, n));
22968
+ n != null && y(t, ["videoMetadata"], IB(i, n));
22968
22969
  const r = m(e, ["thought"]);
22969
22970
  r != null && y(t, ["thought"], r);
22970
22971
  const o = m(e, ["inlineData"]);
22971
- o != null && y(t, ["inlineData"], k9(i, o));
22972
+ o != null && y(t, ["inlineData"], kB(i, o));
22972
22973
  const s = m(e, [
22973
22974
  "codeExecutionResult"
22974
22975
  ]);
@@ -22988,15 +22989,15 @@ function M9(i, e) {
22988
22989
  const h = m(e, ["text"]);
22989
22990
  return h != null && y(t, ["text"], h), t;
22990
22991
  }
22991
- function L9(i, e) {
22992
+ function LB(i, e) {
22992
22993
  const t = {}, n = m(e, [
22993
22994
  "videoMetadata"
22994
22995
  ]);
22995
- n != null && y(t, ["videoMetadata"], R9(i, n));
22996
+ n != null && y(t, ["videoMetadata"], RB(i, n));
22996
22997
  const r = m(e, ["thought"]);
22997
22998
  r != null && y(t, ["thought"], r);
22998
22999
  const o = m(e, ["inlineData"]);
22999
- o != null && y(t, ["inlineData"], O9(i, o));
23000
+ o != null && y(t, ["inlineData"], OB(i, o));
23000
23001
  const s = m(e, [
23001
23002
  "codeExecutionResult"
23002
23003
  ]);
@@ -23016,20 +23017,20 @@ function L9(i, e) {
23016
23017
  const h = m(e, ["text"]);
23017
23018
  return h != null && y(t, ["text"], h), t;
23018
23019
  }
23019
- function N9(i, e) {
23020
+ function NB(i, e) {
23020
23021
  const t = {}, n = m(e, ["parts"]);
23021
23022
  if (n != null) {
23022
23023
  let o = n;
23023
- Array.isArray(o) && (o = o.map((s) => M9(i, s))), y(t, ["parts"], o);
23024
+ Array.isArray(o) && (o = o.map((s) => MB(i, s))), y(t, ["parts"], o);
23024
23025
  }
23025
23026
  const r = m(e, ["role"]);
23026
23027
  return r != null && y(t, ["role"], r), t;
23027
23028
  }
23028
- function D9(i, e) {
23029
+ function DB(i, e) {
23029
23030
  const t = {}, n = m(e, ["parts"]);
23030
23031
  if (n != null) {
23031
23032
  let o = n;
23032
- Array.isArray(o) && (o = o.map((s) => L9(i, s))), y(t, ["parts"], o);
23033
+ Array.isArray(o) && (o = o.map((s) => LB(i, s))), y(t, ["parts"], o);
23033
23034
  }
23034
23035
  const r = m(e, ["role"]);
23035
23036
  return r != null && y(t, ["role"], r), t;
@@ -23046,7 +23047,7 @@ function JS(i, e) {
23046
23047
  const r = m(e, ["finished"]);
23047
23048
  return r != null && y(t, ["finished"], r), t;
23048
23049
  }
23049
- function F9(i, e) {
23050
+ function FB(i, e) {
23050
23051
  const t = {}, n = m(e, ["retrievedUrl"]);
23051
23052
  n != null && y(t, ["retrievedUrl"], n);
23052
23053
  const r = m(e, [
@@ -23054,17 +23055,17 @@ function F9(i, e) {
23054
23055
  ]);
23055
23056
  return r != null && y(t, ["urlRetrievalStatus"], r), t;
23056
23057
  }
23057
- function $9(i, e) {
23058
+ function $B(i, e) {
23058
23059
  const t = {}, n = m(e, ["urlMetadata"]);
23059
23060
  if (n != null) {
23060
23061
  let r = n;
23061
- Array.isArray(r) && (r = r.map((o) => F9(i, o))), y(t, ["urlMetadata"], r);
23062
+ Array.isArray(r) && (r = r.map((o) => FB(i, o))), y(t, ["urlMetadata"], r);
23062
23063
  }
23063
23064
  return t;
23064
23065
  }
23065
- function U9(i, e) {
23066
+ function UB(i, e) {
23066
23067
  const t = {}, n = m(e, ["modelTurn"]);
23067
- n != null && y(t, ["modelTurn"], N9(i, n));
23068
+ n != null && y(t, ["modelTurn"], NB(i, n));
23068
23069
  const r = m(e, ["turnComplete"]);
23069
23070
  r != null && y(t, ["turnComplete"], r);
23070
23071
  const o = m(e, ["interrupted"]);
@@ -23088,11 +23089,11 @@ function U9(i, e) {
23088
23089
  const d = m(e, [
23089
23090
  "urlContextMetadata"
23090
23091
  ]);
23091
- return d != null && y(t, ["urlContextMetadata"], $9(i, d)), t;
23092
+ return d != null && y(t, ["urlContextMetadata"], $B(i, d)), t;
23092
23093
  }
23093
- function q9(i, e) {
23094
+ function qB(i, e) {
23094
23095
  const t = {}, n = m(e, ["modelTurn"]);
23095
- n != null && y(t, ["modelTurn"], D9(i, n));
23096
+ n != null && y(t, ["modelTurn"], DB(i, n));
23096
23097
  const r = m(e, ["turnComplete"]);
23097
23098
  r != null && y(t, ["turnComplete"], r);
23098
23099
  const o = m(e, ["interrupted"]);
@@ -23114,7 +23115,7 @@ function q9(i, e) {
23114
23115
  ]);
23115
23116
  return c != null && y(t, ["outputTranscription"], JS(i, c)), t;
23116
23117
  }
23117
- function B9(i, e) {
23118
+ function BB(i, e) {
23118
23119
  const t = {}, n = m(e, ["id"]);
23119
23120
  n != null && y(t, ["id"], n);
23120
23121
  const r = m(e, ["args"]);
@@ -23122,37 +23123,37 @@ function B9(i, e) {
23122
23123
  const o = m(e, ["name"]);
23123
23124
  return o != null && y(t, ["name"], o), t;
23124
23125
  }
23125
- function V9(i, e) {
23126
+ function VB(i, e) {
23126
23127
  const t = {}, n = m(e, ["args"]);
23127
23128
  n != null && y(t, ["args"], n);
23128
23129
  const r = m(e, ["name"]);
23129
23130
  return r != null && y(t, ["name"], r), t;
23130
23131
  }
23131
- function H9(i, e) {
23132
+ function HB(i, e) {
23132
23133
  const t = {}, n = m(e, [
23133
23134
  "functionCalls"
23134
23135
  ]);
23135
23136
  if (n != null) {
23136
23137
  let r = n;
23137
- Array.isArray(r) && (r = r.map((o) => B9(i, o))), y(t, ["functionCalls"], r);
23138
+ Array.isArray(r) && (r = r.map((o) => BB(i, o))), y(t, ["functionCalls"], r);
23138
23139
  }
23139
23140
  return t;
23140
23141
  }
23141
- function G9(i, e) {
23142
+ function GB(i, e) {
23142
23143
  const t = {}, n = m(e, [
23143
23144
  "functionCalls"
23144
23145
  ]);
23145
23146
  if (n != null) {
23146
23147
  let r = n;
23147
- Array.isArray(r) && (r = r.map((o) => V9(i, o))), y(t, ["functionCalls"], r);
23148
+ Array.isArray(r) && (r = r.map((o) => VB(i, o))), y(t, ["functionCalls"], r);
23148
23149
  }
23149
23150
  return t;
23150
23151
  }
23151
- function W9(i, e) {
23152
+ function WB(i, e) {
23152
23153
  const t = {}, n = m(e, ["ids"]);
23153
23154
  return n != null && y(t, ["ids"], n), t;
23154
23155
  }
23155
- function z9(i, e) {
23156
+ function zB(i, e) {
23156
23157
  const t = {}, n = m(e, ["ids"]);
23157
23158
  return n != null && y(t, ["ids"], n), t;
23158
23159
  }
@@ -23168,7 +23169,7 @@ function nu(i, e) {
23168
23169
  const r = m(e, ["tokenCount"]);
23169
23170
  return r != null && y(t, ["tokenCount"], r), t;
23170
23171
  }
23171
- function K9(i, e) {
23172
+ function KB(i, e) {
23172
23173
  const t = {}, n = m(e, [
23173
23174
  "promptTokenCount"
23174
23175
  ]);
@@ -23223,7 +23224,7 @@ function K9(i, e) {
23223
23224
  }
23224
23225
  return t;
23225
23226
  }
23226
- function J9(i, e) {
23227
+ function JB(i, e) {
23227
23228
  const t = {}, n = m(e, [
23228
23229
  "promptTokenCount"
23229
23230
  ]);
@@ -23279,15 +23280,15 @@ function J9(i, e) {
23279
23280
  const v = m(e, ["trafficType"]);
23280
23281
  return v != null && y(t, ["trafficType"], v), t;
23281
23282
  }
23282
- function Y9(i, e) {
23283
+ function YB(i, e) {
23283
23284
  const t = {}, n = m(e, ["timeLeft"]);
23284
23285
  return n != null && y(t, ["timeLeft"], n), t;
23285
23286
  }
23286
- function j9(i, e) {
23287
+ function jB(i, e) {
23287
23288
  const t = {}, n = m(e, ["timeLeft"]);
23288
23289
  return n != null && y(t, ["timeLeft"], n), t;
23289
23290
  }
23290
- function Z9(i, e) {
23291
+ function ZB(i, e) {
23291
23292
  const t = {}, n = m(e, ["newHandle"]);
23292
23293
  n != null && y(t, ["newHandle"], n);
23293
23294
  const r = m(e, ["resumable"]);
@@ -23297,7 +23298,7 @@ function Z9(i, e) {
23297
23298
  ]);
23298
23299
  return o != null && y(t, ["lastConsumedClientMessageIndex"], o), t;
23299
23300
  }
23300
- function Q9(i, e) {
23301
+ function QB(i, e) {
23301
23302
  const t = {}, n = m(e, ["newHandle"]);
23302
23303
  n != null && y(t, ["newHandle"], n);
23303
23304
  const r = m(e, ["resumable"]);
@@ -23307,78 +23308,78 @@ function Q9(i, e) {
23307
23308
  ]);
23308
23309
  return o != null && y(t, ["lastConsumedClientMessageIndex"], o), t;
23309
23310
  }
23310
- function X9(i, e) {
23311
+ function XB(i, e) {
23311
23312
  const t = {};
23312
23313
  m(e, [
23313
23314
  "setupComplete"
23314
- ]) != null && y(t, ["setupComplete"], P9());
23315
+ ]) != null && y(t, ["setupComplete"], PB());
23315
23316
  const r = m(e, [
23316
23317
  "serverContent"
23317
23318
  ]);
23318
- r != null && y(t, ["serverContent"], U9(i, r));
23319
+ r != null && y(t, ["serverContent"], UB(i, r));
23319
23320
  const o = m(e, ["toolCall"]);
23320
- o != null && y(t, ["toolCall"], H9(i, o));
23321
+ o != null && y(t, ["toolCall"], HB(i, o));
23321
23322
  const s = m(e, [
23322
23323
  "toolCallCancellation"
23323
23324
  ]);
23324
- s != null && y(t, ["toolCallCancellation"], W9(i, s));
23325
+ s != null && y(t, ["toolCallCancellation"], WB(i, s));
23325
23326
  const a = m(e, [
23326
23327
  "usageMetadata"
23327
23328
  ]);
23328
- a != null && y(t, ["usageMetadata"], K9(i, a));
23329
+ a != null && y(t, ["usageMetadata"], KB(i, a));
23329
23330
  const u = m(e, ["goAway"]);
23330
- u != null && y(t, ["goAway"], Y9(i, u));
23331
+ u != null && y(t, ["goAway"], YB(i, u));
23331
23332
  const c = m(e, [
23332
23333
  "sessionResumptionUpdate"
23333
23334
  ]);
23334
- return c != null && y(t, ["sessionResumptionUpdate"], Z9(i, c)), t;
23335
+ return c != null && y(t, ["sessionResumptionUpdate"], ZB(i, c)), t;
23335
23336
  }
23336
- function eB(i, e) {
23337
+ function e9(i, e) {
23337
23338
  const t = {};
23338
23339
  m(e, [
23339
23340
  "setupComplete"
23340
- ]) != null && y(t, ["setupComplete"], x9());
23341
+ ]) != null && y(t, ["setupComplete"], xB());
23341
23342
  const r = m(e, [
23342
23343
  "serverContent"
23343
23344
  ]);
23344
- r != null && y(t, ["serverContent"], q9(i, r));
23345
+ r != null && y(t, ["serverContent"], qB(i, r));
23345
23346
  const o = m(e, ["toolCall"]);
23346
- o != null && y(t, ["toolCall"], G9(i, o));
23347
+ o != null && y(t, ["toolCall"], GB(i, o));
23347
23348
  const s = m(e, [
23348
23349
  "toolCallCancellation"
23349
23350
  ]);
23350
- s != null && y(t, ["toolCallCancellation"], z9(i, s));
23351
+ s != null && y(t, ["toolCallCancellation"], zB(i, s));
23351
23352
  const a = m(e, [
23352
23353
  "usageMetadata"
23353
23354
  ]);
23354
- a != null && y(t, ["usageMetadata"], J9(i, a));
23355
+ a != null && y(t, ["usageMetadata"], JB(i, a));
23355
23356
  const u = m(e, ["goAway"]);
23356
- u != null && y(t, ["goAway"], j9(i, u));
23357
+ u != null && y(t, ["goAway"], jB(i, u));
23357
23358
  const c = m(e, [
23358
23359
  "sessionResumptionUpdate"
23359
23360
  ]);
23360
- return c != null && y(t, ["sessionResumptionUpdate"], Q9(i, c)), t;
23361
+ return c != null && y(t, ["sessionResumptionUpdate"], QB(i, c)), t;
23361
23362
  }
23362
- function tB() {
23363
+ function t9() {
23363
23364
  return {};
23364
23365
  }
23365
- function rB(i, e) {
23366
+ function r9(i, e) {
23366
23367
  const t = {}, n = m(e, ["text"]);
23367
23368
  n != null && y(t, ["text"], n);
23368
23369
  const r = m(e, ["weight"]);
23369
23370
  return r != null && y(t, ["weight"], r), t;
23370
23371
  }
23371
- function nB(i, e) {
23372
+ function n9(i, e) {
23372
23373
  const t = {}, n = m(e, [
23373
23374
  "weightedPrompts"
23374
23375
  ]);
23375
23376
  if (n != null) {
23376
23377
  let r = n;
23377
- Array.isArray(r) && (r = r.map((o) => rB(i, o))), y(t, ["weightedPrompts"], r);
23378
+ Array.isArray(r) && (r = r.map((o) => r9(i, o))), y(t, ["weightedPrompts"], r);
23378
23379
  }
23379
23380
  return t;
23380
23381
  }
23381
- function iB(i, e) {
23382
+ function i9(i, e) {
23382
23383
  const t = {}, n = m(e, ["temperature"]);
23383
23384
  n != null && y(t, ["temperature"], n);
23384
23385
  const r = m(e, ["topK"]);
@@ -23408,17 +23409,17 @@ function iB(i, e) {
23408
23409
  ]);
23409
23410
  return _ != null && y(t, ["musicGenerationMode"], _), t;
23410
23411
  }
23411
- function oB(i, e) {
23412
+ function o9(i, e) {
23412
23413
  const t = {}, n = m(e, [
23413
23414
  "clientContent"
23414
23415
  ]);
23415
- n != null && y(t, ["clientContent"], nB(i, n));
23416
+ n != null && y(t, ["clientContent"], n9(i, n));
23416
23417
  const r = m(e, [
23417
23418
  "musicGenerationConfig"
23418
23419
  ]);
23419
- return r != null && y(t, ["musicGenerationConfig"], iB(i, r)), t;
23420
+ return r != null && y(t, ["musicGenerationConfig"], i9(i, r)), t;
23420
23421
  }
23421
- function sB(i, e) {
23422
+ function s9(i, e) {
23422
23423
  const t = {}, n = m(e, ["data"]);
23423
23424
  n != null && y(t, ["data"], n);
23424
23425
  const r = m(e, ["mimeType"]);
@@ -23426,17 +23427,17 @@ function sB(i, e) {
23426
23427
  const o = m(e, [
23427
23428
  "sourceMetadata"
23428
23429
  ]);
23429
- return o != null && y(t, ["sourceMetadata"], oB(i, o)), t;
23430
+ return o != null && y(t, ["sourceMetadata"], o9(i, o)), t;
23430
23431
  }
23431
- function aB(i, e) {
23432
+ function a9(i, e) {
23432
23433
  const t = {}, n = m(e, ["audioChunks"]);
23433
23434
  if (n != null) {
23434
23435
  let r = n;
23435
- Array.isArray(r) && (r = r.map((o) => sB(i, o))), y(t, ["audioChunks"], r);
23436
+ Array.isArray(r) && (r = r.map((o) => s9(i, o))), y(t, ["audioChunks"], r);
23436
23437
  }
23437
23438
  return t;
23438
23439
  }
23439
- function lB(i, e) {
23440
+ function l9(i, e) {
23440
23441
  const t = {}, n = m(e, ["text"]);
23441
23442
  n != null && y(t, ["text"], n);
23442
23443
  const r = m(e, [
@@ -23444,26 +23445,26 @@ function lB(i, e) {
23444
23445
  ]);
23445
23446
  return r != null && y(t, ["filteredReason"], r), t;
23446
23447
  }
23447
- function uB(i, e) {
23448
+ function u9(i, e) {
23448
23449
  const t = {};
23449
23450
  m(e, [
23450
23451
  "setupComplete"
23451
- ]) != null && y(t, ["setupComplete"], tB());
23452
+ ]) != null && y(t, ["setupComplete"], t9());
23452
23453
  const r = m(e, [
23453
23454
  "serverContent"
23454
23455
  ]);
23455
- r != null && y(t, ["serverContent"], aB(i, r));
23456
+ r != null && y(t, ["serverContent"], a9(i, r));
23456
23457
  const o = m(e, [
23457
23458
  "filteredPrompt"
23458
23459
  ]);
23459
- return o != null && y(t, ["filteredPrompt"], lB(i, o)), t;
23460
+ return o != null && y(t, ["filteredPrompt"], l9(i, o)), t;
23460
23461
  }
23461
23462
  /**
23462
23463
  * @license
23463
23464
  * Copyright 2025 Google LLC
23464
23465
  * SPDX-License-Identifier: Apache-2.0
23465
23466
  */
23466
- function cB(i, e) {
23467
+ function c9(i, e) {
23467
23468
  const t = {}, n = m(e, ["fps"]);
23468
23469
  n != null && y(t, ["fps"], n);
23469
23470
  const r = m(e, ["endOffset"]);
@@ -23471,7 +23472,7 @@ function cB(i, e) {
23471
23472
  const o = m(e, ["startOffset"]);
23472
23473
  return o != null && y(t, ["startOffset"], o), t;
23473
23474
  }
23474
- function fB(i, e) {
23475
+ function f9(i, e) {
23475
23476
  const t = {};
23476
23477
  if (m(e, ["displayName"]) !== void 0)
23477
23478
  throw new Error("displayName parameter is not supported in Gemini API.");
@@ -23480,15 +23481,15 @@ function fB(i, e) {
23480
23481
  const r = m(e, ["mimeType"]);
23481
23482
  return r != null && y(t, ["mimeType"], r), t;
23482
23483
  }
23483
- function dB(i, e) {
23484
+ function d9(i, e) {
23484
23485
  const t = {}, n = m(e, [
23485
23486
  "videoMetadata"
23486
23487
  ]);
23487
- n != null && y(t, ["videoMetadata"], cB(i, n));
23488
+ n != null && y(t, ["videoMetadata"], c9(i, n));
23488
23489
  const r = m(e, ["thought"]);
23489
23490
  r != null && y(t, ["thought"], r);
23490
23491
  const o = m(e, ["inlineData"]);
23491
- o != null && y(t, ["inlineData"], fB(i, o));
23492
+ o != null && y(t, ["inlineData"], f9(i, o));
23492
23493
  const s = m(e, [
23493
23494
  "codeExecutionResult"
23494
23495
  ]);
@@ -23512,12 +23513,12 @@ function Ec(i, e) {
23512
23513
  const t = {}, n = m(e, ["parts"]);
23513
23514
  if (n != null) {
23514
23515
  let o = n;
23515
- Array.isArray(o) && (o = o.map((s) => dB(i, s))), y(t, ["parts"], o);
23516
+ Array.isArray(o) && (o = o.map((s) => d9(i, s))), y(t, ["parts"], o);
23516
23517
  }
23517
23518
  const r = m(e, ["role"]);
23518
23519
  return r != null && y(t, ["role"], r), t;
23519
23520
  }
23520
- function hB(i, e) {
23521
+ function h9(i, e) {
23521
23522
  const t = {};
23522
23523
  if (m(e, ["method"]) !== void 0)
23523
23524
  throw new Error("method parameter is not supported in Gemini API.");
@@ -23526,7 +23527,7 @@ function hB(i, e) {
23526
23527
  const r = m(e, ["threshold"]);
23527
23528
  return r != null && y(t, ["threshold"], r), t;
23528
23529
  }
23529
- function pB(i, e) {
23530
+ function p9(i, e) {
23530
23531
  const t = {}, n = m(e, ["behavior"]);
23531
23532
  n != null && y(t, ["behavior"], n);
23532
23533
  const r = m(e, ["description"]);
@@ -23538,19 +23539,19 @@ function pB(i, e) {
23538
23539
  const a = m(e, ["response"]);
23539
23540
  return a != null && y(t, ["response"], a), t;
23540
23541
  }
23541
- function mB(i, e) {
23542
+ function m9(i, e) {
23542
23543
  const t = {}, n = m(e, ["startTime"]);
23543
23544
  n != null && y(t, ["startTime"], n);
23544
23545
  const r = m(e, ["endTime"]);
23545
23546
  return r != null && y(t, ["endTime"], r), t;
23546
23547
  }
23547
- function gB(i, e) {
23548
+ function g9(i, e) {
23548
23549
  const t = {}, n = m(e, [
23549
23550
  "timeRangeFilter"
23550
23551
  ]);
23551
- return n != null && y(t, ["timeRangeFilter"], mB(i, n)), t;
23552
+ return n != null && y(t, ["timeRangeFilter"], m9(i, n)), t;
23552
23553
  }
23553
- function vB(i, e) {
23554
+ function v9(i, e) {
23554
23555
  const t = {}, n = m(e, ["mode"]);
23555
23556
  n != null && y(t, ["mode"], n);
23556
23557
  const r = m(e, [
@@ -23558,41 +23559,41 @@ function vB(i, e) {
23558
23559
  ]);
23559
23560
  return r != null && y(t, ["dynamicThreshold"], r), t;
23560
23561
  }
23561
- function yB(i, e) {
23562
+ function y9(i, e) {
23562
23563
  const t = {}, n = m(e, [
23563
23564
  "dynamicRetrievalConfig"
23564
23565
  ]);
23565
- return n != null && y(t, ["dynamicRetrievalConfig"], vB(i, n)), t;
23566
+ return n != null && y(t, ["dynamicRetrievalConfig"], v9(i, n)), t;
23566
23567
  }
23567
- function _B() {
23568
+ function _9() {
23568
23569
  return {};
23569
23570
  }
23570
- function wB(i, e) {
23571
+ function w9(i, e) {
23571
23572
  const t = {}, n = m(e, [
23572
23573
  "functionDeclarations"
23573
23574
  ]);
23574
23575
  if (n != null) {
23575
23576
  let u = n;
23576
- Array.isArray(u) && (u = u.map((c) => pB(i, c))), y(t, ["functionDeclarations"], u);
23577
+ Array.isArray(u) && (u = u.map((c) => p9(i, c))), y(t, ["functionDeclarations"], u);
23577
23578
  }
23578
23579
  if (m(e, ["retrieval"]) !== void 0)
23579
23580
  throw new Error("retrieval parameter is not supported in Gemini API.");
23580
23581
  const r = m(e, ["googleSearch"]);
23581
- r != null && y(t, ["googleSearch"], gB(i, r));
23582
+ r != null && y(t, ["googleSearch"], g9(i, r));
23582
23583
  const o = m(e, [
23583
23584
  "googleSearchRetrieval"
23584
23585
  ]);
23585
- if (o != null && y(t, ["googleSearchRetrieval"], yB(i, o)), m(e, ["enterpriseWebSearch"]) !== void 0)
23586
+ if (o != null && y(t, ["googleSearchRetrieval"], y9(i, o)), m(e, ["enterpriseWebSearch"]) !== void 0)
23586
23587
  throw new Error("enterpriseWebSearch parameter is not supported in Gemini API.");
23587
23588
  if (m(e, ["googleMaps"]) !== void 0)
23588
23589
  throw new Error("googleMaps parameter is not supported in Gemini API.");
23589
- m(e, ["urlContext"]) != null && y(t, ["urlContext"], _B());
23590
+ m(e, ["urlContext"]) != null && y(t, ["urlContext"], _9());
23590
23591
  const a = m(e, [
23591
23592
  "codeExecution"
23592
23593
  ]);
23593
23594
  return a != null && y(t, ["codeExecution"], a), t;
23594
23595
  }
23595
- function bB(i, e) {
23596
+ function b9(i, e) {
23596
23597
  const t = {}, n = m(e, ["mode"]);
23597
23598
  n != null && y(t, ["mode"], n);
23598
23599
  const r = m(e, [
@@ -23600,27 +23601,27 @@ function bB(i, e) {
23600
23601
  ]);
23601
23602
  return r != null && y(t, ["allowedFunctionNames"], r), t;
23602
23603
  }
23603
- function SB(i, e) {
23604
+ function S9(i, e) {
23604
23605
  const t = {}, n = m(e, ["latitude"]);
23605
23606
  n != null && y(t, ["latitude"], n);
23606
23607
  const r = m(e, ["longitude"]);
23607
23608
  return r != null && y(t, ["longitude"], r), t;
23608
23609
  }
23609
- function EB(i, e) {
23610
+ function E9(i, e) {
23610
23611
  const t = {}, n = m(e, ["latLng"]);
23611
- return n != null && y(t, ["latLng"], SB(i, n)), t;
23612
+ return n != null && y(t, ["latLng"], S9(i, n)), t;
23612
23613
  }
23613
- function TB(i, e) {
23614
+ function T9(i, e) {
23614
23615
  const t = {}, n = m(e, [
23615
23616
  "functionCallingConfig"
23616
23617
  ]);
23617
- n != null && y(t, ["functionCallingConfig"], bB(i, n));
23618
+ n != null && y(t, ["functionCallingConfig"], b9(i, n));
23618
23619
  const r = m(e, [
23619
23620
  "retrievalConfig"
23620
23621
  ]);
23621
- return r != null && y(t, ["retrievalConfig"], EB(i, r)), t;
23622
+ return r != null && y(t, ["retrievalConfig"], E9(i, r)), t;
23622
23623
  }
23623
- function CB(i, e) {
23624
+ function C9(i, e) {
23624
23625
  const t = {}, n = m(e, ["voiceName"]);
23625
23626
  return n != null && y(t, ["voiceName"], n), t;
23626
23627
  }
@@ -23628,35 +23629,35 @@ function qC(i, e) {
23628
23629
  const t = {}, n = m(e, [
23629
23630
  "prebuiltVoiceConfig"
23630
23631
  ]);
23631
- return n != null && y(t, ["prebuiltVoiceConfig"], CB(i, n)), t;
23632
+ return n != null && y(t, ["prebuiltVoiceConfig"], C9(i, n)), t;
23632
23633
  }
23633
- function AB(i, e) {
23634
+ function A9(i, e) {
23634
23635
  const t = {}, n = m(e, ["speaker"]);
23635
23636
  n != null && y(t, ["speaker"], n);
23636
23637
  const r = m(e, ["voiceConfig"]);
23637
23638
  return r != null && y(t, ["voiceConfig"], qC(i, r)), t;
23638
23639
  }
23639
- function PB(i, e) {
23640
+ function P9(i, e) {
23640
23641
  const t = {}, n = m(e, [
23641
23642
  "speakerVoiceConfigs"
23642
23643
  ]);
23643
23644
  if (n != null) {
23644
23645
  let r = n;
23645
- Array.isArray(r) && (r = r.map((o) => AB(i, o))), y(t, ["speakerVoiceConfigs"], r);
23646
+ Array.isArray(r) && (r = r.map((o) => A9(i, o))), y(t, ["speakerVoiceConfigs"], r);
23646
23647
  }
23647
23648
  return t;
23648
23649
  }
23649
- function xB(i, e) {
23650
+ function x9(i, e) {
23650
23651
  const t = {}, n = m(e, ["voiceConfig"]);
23651
23652
  n != null && y(t, ["voiceConfig"], qC(i, n));
23652
23653
  const r = m(e, [
23653
23654
  "multiSpeakerVoiceConfig"
23654
23655
  ]);
23655
- r != null && y(t, ["multiSpeakerVoiceConfig"], PB(i, r));
23656
+ r != null && y(t, ["multiSpeakerVoiceConfig"], P9(i, r));
23656
23657
  const o = m(e, ["languageCode"]);
23657
23658
  return o != null && y(t, ["languageCode"], o), t;
23658
23659
  }
23659
- function IB(i, e) {
23660
+ function I9(i, e) {
23660
23661
  const t = {}, n = m(e, [
23661
23662
  "includeThoughts"
23662
23663
  ]);
@@ -23666,7 +23667,7 @@ function IB(i, e) {
23666
23667
  ]);
23667
23668
  return r != null && y(t, ["thinkingBudget"], r), t;
23668
23669
  }
23669
- function RB(i, e, t) {
23670
+ function R9(i, e, t) {
23670
23671
  const n = {}, r = m(e, [
23671
23672
  "systemInstruction"
23672
23673
  ]);
@@ -23721,15 +23722,15 @@ function RB(i, e, t) {
23721
23722
  ]);
23722
23723
  if (t !== void 0 && S != null) {
23723
23724
  let O = S;
23724
- Array.isArray(O) && (O = O.map((N) => hB(i, N))), y(t, ["safetySettings"], O);
23725
+ Array.isArray(O) && (O = O.map((N) => h9(i, N))), y(t, ["safetySettings"], O);
23725
23726
  }
23726
23727
  const T = m(e, ["tools"]);
23727
23728
  if (t !== void 0 && T != null) {
23728
23729
  let O = bc(i, T);
23729
- Array.isArray(O) && (O = O.map((N) => wB(i, wc(i, N)))), y(t, ["tools"], O);
23730
+ Array.isArray(O) && (O = O.map((N) => w9(i, wc(i, N)))), y(t, ["tools"], O);
23730
23731
  }
23731
23732
  const C = m(e, ["toolConfig"]);
23732
- if (t !== void 0 && C != null && y(t, ["toolConfig"], TB(i, C)), m(e, ["labels"]) !== void 0)
23733
+ if (t !== void 0 && C != null && y(t, ["toolConfig"], T9(i, C)), m(e, ["labels"]) !== void 0)
23733
23734
  throw new Error("labels parameter is not supported in Gemini API.");
23734
23735
  const A = m(e, [
23735
23736
  "cachedContent"
@@ -23744,12 +23745,12 @@ function RB(i, e, t) {
23744
23745
  ]);
23745
23746
  $ != null && y(n, ["mediaResolution"], $);
23746
23747
  const x = m(e, ["speechConfig"]);
23747
- if (x != null && y(n, ["speechConfig"], xB(i, xC(i, x))), m(e, ["audioTimestamp"]) !== void 0)
23748
+ if (x != null && y(n, ["speechConfig"], x9(i, xC(i, x))), m(e, ["audioTimestamp"]) !== void 0)
23748
23749
  throw new Error("audioTimestamp parameter is not supported in Gemini API.");
23749
23750
  const I = m(e, [
23750
23751
  "thinkingConfig"
23751
23752
  ]);
23752
- return I != null && y(n, ["thinkingConfig"], IB(i, I)), n;
23753
+ return I != null && y(n, ["thinkingConfig"], I9(i, I)), n;
23753
23754
  }
23754
23755
  function YS(i, e) {
23755
23756
  const t = {}, n = m(e, ["model"]);
@@ -23760,9 +23761,9 @@ function YS(i, e) {
23760
23761
  Array.isArray(s) && (s = s.map((a) => Ec(i, a))), y(t, ["contents"], s);
23761
23762
  }
23762
23763
  const o = m(e, ["config"]);
23763
- return o != null && y(t, ["generationConfig"], RB(i, o, t)), t;
23764
+ return o != null && y(t, ["generationConfig"], R9(i, o, t)), t;
23764
23765
  }
23765
- function kB(i, e, t) {
23766
+ function k9(i, e, t) {
23766
23767
  const n = {}, r = m(e, ["taskType"]);
23767
23768
  t !== void 0 && r != null && y(t, ["requests[]", "taskType"], r);
23768
23769
  const o = m(e, ["title"]);
@@ -23776,17 +23777,17 @@ function kB(i, e, t) {
23776
23777
  throw new Error("autoTruncate parameter is not supported in Gemini API.");
23777
23778
  return n;
23778
23779
  }
23779
- function OB(i, e) {
23780
+ function O9(i, e) {
23780
23781
  const t = {}, n = m(e, ["model"]);
23781
23782
  n != null && y(t, ["_url", "model"], Ot(i, n));
23782
23783
  const r = m(e, ["contents"]);
23783
23784
  r != null && y(t, ["requests[]", "content"], PC(i, r));
23784
23785
  const o = m(e, ["config"]);
23785
- o != null && y(t, ["config"], kB(i, o, t));
23786
+ o != null && y(t, ["config"], k9(i, o, t));
23786
23787
  const s = m(e, ["model"]);
23787
23788
  return s !== void 0 && y(t, ["requests[]", "model"], Ot(i, s)), t;
23788
23789
  }
23789
- function MB(i, e, t) {
23790
+ function M9(i, e, t) {
23790
23791
  const n = {};
23791
23792
  if (m(e, ["outputGcsUri"]) !== void 0)
23792
23793
  throw new Error("outputGcsUri parameter is not supported in Gemini API.");
@@ -23834,21 +23835,21 @@ function MB(i, e, t) {
23834
23835
  throw new Error("enhancePrompt parameter is not supported in Gemini API.");
23835
23836
  return n;
23836
23837
  }
23837
- function LB(i, e) {
23838
+ function L9(i, e) {
23838
23839
  const t = {}, n = m(e, ["model"]);
23839
23840
  n != null && y(t, ["_url", "model"], Ot(i, n));
23840
23841
  const r = m(e, ["prompt"]);
23841
23842
  r != null && y(t, ["instances[0]", "prompt"], r);
23842
23843
  const o = m(e, ["config"]);
23843
- return o != null && y(t, ["config"], MB(i, o, t)), t;
23844
+ return o != null && y(t, ["config"], M9(i, o, t)), t;
23844
23845
  }
23845
- function NB(i, e) {
23846
+ function N9(i, e) {
23846
23847
  const t = {}, n = m(e, ["model"]);
23847
23848
  n != null && y(t, ["_url", "name"], Ot(i, n));
23848
23849
  const r = m(e, ["config"]);
23849
23850
  return r != null && y(t, ["config"], r), t;
23850
23851
  }
23851
- function DB(i, e, t) {
23852
+ function D9(i, e, t) {
23852
23853
  const n = {}, r = m(e, ["pageSize"]);
23853
23854
  t !== void 0 && r != null && y(t, ["_query", "pageSize"], r);
23854
23855
  const o = m(e, ["pageToken"]);
@@ -23858,11 +23859,11 @@ function DB(i, e, t) {
23858
23859
  const a = m(e, ["queryBase"]);
23859
23860
  return t !== void 0 && a != null && y(t, ["_url", "models_url"], OC(i, a)), n;
23860
23861
  }
23861
- function FB(i, e) {
23862
+ function F9(i, e) {
23862
23863
  const t = {}, n = m(e, ["config"]);
23863
- return n != null && y(t, ["config"], DB(i, n, t)), t;
23864
+ return n != null && y(t, ["config"], D9(i, n, t)), t;
23864
23865
  }
23865
- function $B(i, e, t) {
23866
+ function $9(i, e, t) {
23866
23867
  const n = {}, r = m(e, ["displayName"]);
23867
23868
  t !== void 0 && r != null && y(t, ["displayName"], r);
23868
23869
  const o = m(e, ["description"]);
@@ -23872,19 +23873,19 @@ function $B(i, e, t) {
23872
23873
  ]);
23873
23874
  return t !== void 0 && s != null && y(t, ["defaultCheckpointId"], s), n;
23874
23875
  }
23875
- function UB(i, e) {
23876
+ function U9(i, e) {
23876
23877
  const t = {}, n = m(e, ["model"]);
23877
23878
  n != null && y(t, ["_url", "name"], Ot(i, n));
23878
23879
  const r = m(e, ["config"]);
23879
- return r != null && y(t, ["config"], $B(i, r, t)), t;
23880
+ return r != null && y(t, ["config"], $9(i, r, t)), t;
23880
23881
  }
23881
- function qB(i, e) {
23882
+ function q9(i, e) {
23882
23883
  const t = {}, n = m(e, ["model"]);
23883
23884
  n != null && y(t, ["_url", "name"], Ot(i, n));
23884
23885
  const r = m(e, ["config"]);
23885
23886
  return r != null && y(t, ["config"], r), t;
23886
23887
  }
23887
- function BB(i, e) {
23888
+ function B9(i, e) {
23888
23889
  const t = {};
23889
23890
  if (m(e, ["systemInstruction"]) !== void 0)
23890
23891
  throw new Error("systemInstruction parameter is not supported in Gemini API.");
@@ -23894,7 +23895,7 @@ function BB(i, e) {
23894
23895
  throw new Error("generationConfig parameter is not supported in Gemini API.");
23895
23896
  return t;
23896
23897
  }
23897
- function VB(i, e) {
23898
+ function V9(i, e) {
23898
23899
  const t = {}, n = m(e, ["model"]);
23899
23900
  n != null && y(t, ["_url", "model"], Ot(i, n));
23900
23901
  const r = m(e, ["contents"]);
@@ -23903,9 +23904,9 @@ function VB(i, e) {
23903
23904
  Array.isArray(s) && (s = s.map((a) => Ec(i, a))), y(t, ["contents"], s);
23904
23905
  }
23905
23906
  const o = m(e, ["config"]);
23906
- return o != null && y(t, ["config"], BB(i, o)), t;
23907
+ return o != null && y(t, ["config"], B9(i, o)), t;
23907
23908
  }
23908
- function HB(i, e) {
23909
+ function H9(i, e) {
23909
23910
  const t = {};
23910
23911
  if (m(e, ["gcsUri"]) !== void 0)
23911
23912
  throw new Error("gcsUri parameter is not supported in Gemini API.");
@@ -23914,7 +23915,7 @@ function HB(i, e) {
23914
23915
  const r = m(e, ["mimeType"]);
23915
23916
  return r != null && y(t, ["mimeType"], r), t;
23916
23917
  }
23917
- function GB(i, e, t) {
23918
+ function G9(i, e, t) {
23918
23919
  const n = {}, r = m(e, [
23919
23920
  "numberOfVideos"
23920
23921
  ]);
@@ -23942,17 +23943,17 @@ function GB(i, e, t) {
23942
23943
  throw new Error("enhancePrompt parameter is not supported in Gemini API.");
23943
23944
  return n;
23944
23945
  }
23945
- function WB(i, e) {
23946
+ function W9(i, e) {
23946
23947
  const t = {}, n = m(e, ["model"]);
23947
23948
  n != null && y(t, ["_url", "model"], Ot(i, n));
23948
23949
  const r = m(e, ["prompt"]);
23949
23950
  r != null && y(t, ["instances[0]", "prompt"], r);
23950
23951
  const o = m(e, ["image"]);
23951
- o != null && y(t, ["instances[0]", "image"], HB(i, o));
23952
+ o != null && y(t, ["instances[0]", "image"], H9(i, o));
23952
23953
  const s = m(e, ["config"]);
23953
- return s != null && y(t, ["config"], GB(i, s, t)), t;
23954
+ return s != null && y(t, ["config"], G9(i, s, t)), t;
23954
23955
  }
23955
- function zB(i, e) {
23956
+ function z9(i, e) {
23956
23957
  const t = {}, n = m(e, ["fps"]);
23957
23958
  n != null && y(t, ["fps"], n);
23958
23959
  const r = m(e, ["endOffset"]);
@@ -23960,7 +23961,7 @@ function zB(i, e) {
23960
23961
  const o = m(e, ["startOffset"]);
23961
23962
  return o != null && y(t, ["startOffset"], o), t;
23962
23963
  }
23963
- function KB(i, e) {
23964
+ function K9(i, e) {
23964
23965
  const t = {}, n = m(e, ["displayName"]);
23965
23966
  n != null && y(t, ["displayName"], n);
23966
23967
  const r = m(e, ["data"]);
@@ -23968,15 +23969,15 @@ function KB(i, e) {
23968
23969
  const o = m(e, ["mimeType"]);
23969
23970
  return o != null && y(t, ["mimeType"], o), t;
23970
23971
  }
23971
- function JB(i, e) {
23972
+ function J9(i, e) {
23972
23973
  const t = {}, n = m(e, [
23973
23974
  "videoMetadata"
23974
23975
  ]);
23975
- n != null && y(t, ["videoMetadata"], zB(i, n));
23976
+ n != null && y(t, ["videoMetadata"], z9(i, n));
23976
23977
  const r = m(e, ["thought"]);
23977
23978
  r != null && y(t, ["thought"], r);
23978
23979
  const o = m(e, ["inlineData"]);
23979
- o != null && y(t, ["inlineData"], KB(i, o));
23980
+ o != null && y(t, ["inlineData"], K9(i, o));
23980
23981
  const s = m(e, [
23981
23982
  "codeExecutionResult"
23982
23983
  ]);
@@ -24000,18 +24001,18 @@ function hs(i, e) {
24000
24001
  const t = {}, n = m(e, ["parts"]);
24001
24002
  if (n != null) {
24002
24003
  let o = n;
24003
- Array.isArray(o) && (o = o.map((s) => JB(i, s))), y(t, ["parts"], o);
24004
+ Array.isArray(o) && (o = o.map((s) => J9(i, s))), y(t, ["parts"], o);
24004
24005
  }
24005
24006
  const r = m(e, ["role"]);
24006
24007
  return r != null && y(t, ["role"], r), t;
24007
24008
  }
24008
- function YB(i, e) {
24009
+ function Y9(i, e) {
24009
24010
  const t = {}, n = m(e, [
24010
24011
  "featureSelectionPreference"
24011
24012
  ]);
24012
24013
  return n != null && y(t, ["featureSelectionPreference"], n), t;
24013
24014
  }
24014
- function jB(i, e) {
24015
+ function j9(i, e) {
24015
24016
  const t = {}, n = m(e, ["method"]);
24016
24017
  n != null && y(t, ["method"], n);
24017
24018
  const r = m(e, ["category"]);
@@ -24019,7 +24020,7 @@ function jB(i, e) {
24019
24020
  const o = m(e, ["threshold"]);
24020
24021
  return o != null && y(t, ["threshold"], o), t;
24021
24022
  }
24022
- function ZB(i, e) {
24023
+ function Z9(i, e) {
24023
24024
  const t = {};
24024
24025
  if (m(e, ["behavior"]) !== void 0)
24025
24026
  throw new Error("behavior parameter is not supported in Vertex AI.");
@@ -24032,17 +24033,17 @@ function ZB(i, e) {
24032
24033
  const s = m(e, ["response"]);
24033
24034
  return s != null && y(t, ["response"], s), t;
24034
24035
  }
24035
- function QB(i, e) {
24036
+ function Q9(i, e) {
24036
24037
  const t = {}, n = m(e, ["startTime"]);
24037
24038
  n != null && y(t, ["startTime"], n);
24038
24039
  const r = m(e, ["endTime"]);
24039
24040
  return r != null && y(t, ["endTime"], r), t;
24040
24041
  }
24041
- function XB(i, e) {
24042
+ function X9(i, e) {
24042
24043
  const t = {}, n = m(e, [
24043
24044
  "timeRangeFilter"
24044
24045
  ]);
24045
- return n != null && y(t, ["timeRangeFilter"], QB(i, n)), t;
24046
+ return n != null && y(t, ["timeRangeFilter"], Q9(i, n)), t;
24046
24047
  }
24047
24048
  function eV(i, e) {
24048
24049
  const t = {}, n = m(e, ["mode"]);
@@ -24093,12 +24094,12 @@ function BC(i, e) {
24093
24094
  ]);
24094
24095
  if (n != null) {
24095
24096
  let d = n;
24096
- Array.isArray(d) && (d = d.map((h) => ZB(i, h))), y(t, ["functionDeclarations"], d);
24097
+ Array.isArray(d) && (d = d.map((h) => Z9(i, h))), y(t, ["functionDeclarations"], d);
24097
24098
  }
24098
24099
  const r = m(e, ["retrieval"]);
24099
24100
  r != null && y(t, ["retrieval"], r);
24100
24101
  const o = m(e, ["googleSearch"]);
24101
- o != null && y(t, ["googleSearch"], XB(i, o));
24102
+ o != null && y(t, ["googleSearch"], X9(i, o));
24102
24103
  const s = m(e, [
24103
24104
  "googleSearchRetrieval"
24104
24105
  ]);
@@ -24222,13 +24223,13 @@ function pV(i, e, t) {
24222
24223
  const T = m(e, [
24223
24224
  "modelSelectionConfig"
24224
24225
  ]);
24225
- T != null && y(n, ["modelConfig"], YB(i, T));
24226
+ T != null && y(n, ["modelConfig"], Y9(i, T));
24226
24227
  const C = m(e, [
24227
24228
  "safetySettings"
24228
24229
  ]);
24229
24230
  if (t !== void 0 && C != null) {
24230
24231
  let K = C;
24231
- Array.isArray(K) && (K = K.map((J) => jB(i, J))), y(t, ["safetySettings"], K);
24232
+ Array.isArray(K) && (K = K.map((J) => j9(i, J))), y(t, ["safetySettings"], K);
24232
24233
  }
24233
24234
  const A = m(e, ["tools"]);
24234
24235
  if (t !== void 0 && A != null) {
@@ -25589,7 +25590,7 @@ async function V4(i, e, t) {
25589
25590
  const n = new eq();
25590
25591
  let r;
25591
25592
  t.data instanceof Blob ? r = JSON.parse(await t.data.text()) : r = JSON.parse(t.data);
25592
- const o = uB(i, r);
25593
+ const o = u9(i, r);
25593
25594
  Object.assign(n, o), e(n);
25594
25595
  }
25595
25596
  class H4 {
@@ -25673,7 +25674,7 @@ class G4 {
25673
25674
  async setWeightedPrompts(e) {
25674
25675
  if (!e.weightedPrompts || Object.keys(e.weightedPrompts).length === 0)
25675
25676
  throw new Error("Weighted prompts must be set and contain at least one entry.");
25676
- const t = C9(this.apiClient, e), n = UC(this.apiClient, t);
25677
+ const t = CB(this.apiClient, e), n = UC(this.apiClient, t);
25677
25678
  this.conn.send(JSON.stringify({ clientContent: n }));
25678
25679
  }
25679
25680
  /**
@@ -25689,7 +25690,7 @@ class G4 {
25689
25690
  */
25690
25691
  async setMusicGenerationConfig(e) {
25691
25692
  e.musicGenerationConfig || (e.musicGenerationConfig = {});
25692
- const t = A9(this.apiClient, e), n = Em(this.apiClient, t);
25693
+ const t = AB(this.apiClient, e), n = Em(this.apiClient, t);
25693
25694
  this.conn.send(JSON.stringify(n));
25694
25695
  }
25695
25696
  sendPlaybackControl(e) {
@@ -25764,10 +25765,10 @@ async function J4(i, e, t) {
25764
25765
  const n = new XU();
25765
25766
  let r;
25766
25767
  if (t.data instanceof Blob ? r = JSON.parse(await t.data.text()) : r = JSON.parse(t.data), i.isVertexAI()) {
25767
- const o = eB(i, r);
25768
+ const o = e9(i, r);
25768
25769
  Object.assign(n, o);
25769
25770
  } else {
25770
- const o = X9(i, r);
25771
+ const o = XB(i, r);
25771
25772
  Object.assign(n, o);
25772
25773
  }
25773
25774
  e(n);
@@ -25869,7 +25870,7 @@ class Y4 {
25869
25870
  config: e.config,
25870
25871
  callbacks: e.callbacks
25871
25872
  };
25872
- return this.apiClient.isVertexAI() ? A = y9(this.apiClient, x) : A = v9(this.apiClient, x), delete A.config, T.send(JSON.stringify(A)), new Z4(T, this.apiClient);
25873
+ return this.apiClient.isVertexAI() ? A = yB(this.apiClient, x) : A = vB(this.apiClient, x), delete A.config, T.send(JSON.stringify(A)), new Z4(T, this.apiClient);
25873
25874
  }
25874
25875
  // TODO: b/416041229 - Abstract this method to a common place.
25875
25876
  isCallableTool(e) {
@@ -25994,9 +25995,9 @@ class Z4 {
25994
25995
  sendRealtimeInput(e) {
25995
25996
  let t = {};
25996
25997
  this.apiClient.isVertexAI() ? t = {
25997
- realtimeInput: T9(this.apiClient, e)
25998
+ realtimeInput: TB(this.apiClient, e)
25998
25999
  } : t = {
25999
- realtimeInput: E9(this.apiClient, e)
26000
+ realtimeInput: EB(this.apiClient, e)
26000
26001
  }, this.conn.send(JSON.stringify(t));
26001
26002
  }
26002
26003
  /**
@@ -26409,7 +26410,7 @@ class eH extends Ca {
26409
26410
  return Object.assign(g, h), g;
26410
26411
  });
26411
26412
  } else {
26412
- const c = OB(this.apiClient, e);
26413
+ const c = O9(this.apiClient, e);
26413
26414
  return a = Be("{model}:batchEmbedContents", c._url), u = c._query, delete c.config, delete c._url, delete c._query, s = this.apiClient.request({
26414
26415
  path: a,
26415
26416
  queryParams: u,
@@ -26459,7 +26460,7 @@ class eH extends Ca {
26459
26460
  return Object.assign(g, h), g;
26460
26461
  });
26461
26462
  } else {
26462
- const c = LB(this.apiClient, e);
26463
+ const c = L9(this.apiClient, e);
26463
26464
  return a = Be("{model}:predict", c._url), u = c._query, delete c.config, delete c._url, delete c._query, s = this.apiClient.request({
26464
26465
  path: a,
26465
26466
  queryParams: u,
@@ -26533,7 +26534,7 @@ class eH extends Ca {
26533
26534
  abortSignal: (n = e.config) === null || n === void 0 ? void 0 : n.abortSignal
26534
26535
  }).then((d) => d.json()), s.then((d) => Cm(this.apiClient, d));
26535
26536
  } else {
26536
- const c = NB(this.apiClient, e);
26537
+ const c = N9(this.apiClient, e);
26537
26538
  return a = Be("{name}", c._url), u = c._query, delete c.config, delete c._url, delete c._query, s = this.apiClient.request({
26538
26539
  path: a,
26539
26540
  queryParams: u,
@@ -26561,7 +26562,7 @@ class eH extends Ca {
26561
26562
  return Object.assign(g, h), g;
26562
26563
  });
26563
26564
  } else {
26564
- const c = FB(this.apiClient, e);
26565
+ const c = F9(this.apiClient, e);
26565
26566
  return a = Be("{models_url}", c._url), u = c._query, delete c.config, delete c._url, delete c._query, s = this.apiClient.request({
26566
26567
  path: a,
26567
26568
  queryParams: u,
@@ -26606,7 +26607,7 @@ class eH extends Ca {
26606
26607
  abortSignal: (n = e.config) === null || n === void 0 ? void 0 : n.abortSignal
26607
26608
  }).then((d) => d.json()), s.then((d) => Cm(this.apiClient, d));
26608
26609
  } else {
26609
- const c = UB(this.apiClient, e);
26610
+ const c = U9(this.apiClient, e);
26610
26611
  return a = Be("{name}", c._url), u = c._query, delete c.config, delete c._url, delete c._query, s = this.apiClient.request({
26611
26612
  path: a,
26612
26613
  queryParams: u,
@@ -26645,7 +26646,7 @@ class eH extends Ca {
26645
26646
  return Object.assign(h, d), h;
26646
26647
  });
26647
26648
  } else {
26648
- const c = qB(this.apiClient, e);
26649
+ const c = q9(this.apiClient, e);
26649
26650
  return a = Be("{name}", c._url), u = c._query, delete c.config, delete c._url, delete c._query, s = this.apiClient.request({
26650
26651
  path: a,
26651
26652
  queryParams: u,
@@ -26692,7 +26693,7 @@ class eH extends Ca {
26692
26693
  return Object.assign(g, h), g;
26693
26694
  });
26694
26695
  } else {
26695
- const c = VB(this.apiClient, e);
26696
+ const c = V9(this.apiClient, e);
26696
26697
  return a = Be("{model}:countTokens", c._url), u = c._query, delete c.config, delete c._url, delete c._query, s = this.apiClient.request({
26697
26698
  path: a,
26698
26699
  queryParams: u,
@@ -26780,7 +26781,7 @@ class eH extends Ca {
26780
26781
  abortSignal: (n = e.config) === null || n === void 0 ? void 0 : n.abortSignal
26781
26782
  }).then((d) => d.json()), s.then((d) => k4(this.apiClient, d));
26782
26783
  } else {
26783
- const c = WB(this.apiClient, e);
26784
+ const c = W9(this.apiClient, e);
26784
26785
  return a = Be("{model}:predictLongRunning", c._url), u = c._query, delete c.config, delete c._url, delete c._query, s = this.apiClient.request({
26785
26786
  path: a,
26786
26787
  queryParams: u,
@@ -36212,7 +36213,7 @@ async function yG(i, e) {
36212
36213
  }
36213
36214
  }
36214
36215
  async function _G(i, e) {
36215
- return (await import("./list_directory.node-BvKQRegC.js")).resolveArgumentDirectoryNode(i, e);
36216
+ return (await import("./list_directory.node-DDhJZGvT.js")).resolveArgumentDirectoryNode(i, e);
36216
36217
  }
36217
36218
  function wG(i) {
36218
36219
  if (!i._regex)
@@ -37386,7 +37387,7 @@ async function xG({
37386
37387
  fileMentions: void 0,
37387
37388
  userState: void 0
37388
37389
  };
37389
- const o = (await import("./files-8V4d25dw.js").then(
37390
+ const o = (await import("./files-DdjDm_B8.js").then(
37390
37391
  ({ getFileMentions: a }) => a(
37391
37392
  GE(t.content),
37392
37393
  r,
@@ -38197,7 +38198,7 @@ function zs(i = "idle") {
38197
38198
  ie.error(`Failed to play notification sound (${i}):`, e);
38198
38199
  }
38199
38200
  }
38200
- const RG = import("./node-DHEAQDoa.js").then(
38201
+ const RG = import("./node-BZlRkYQw.js").then(
38201
38202
  ({ nodeFileSystem: i }) => i
38202
38203
  );
38203
38204
  async function kG() {
@@ -40203,7 +40204,7 @@ function Tr() {
40203
40204
  }
40204
40205
  async function sW(i, e) {
40205
40206
  try {
40206
- const t = await ZG("0.0.1748793680-gb5cb75");
40207
+ const t = await ZG("0.0.1748802804-g235c50");
40207
40208
  t.hasUpdate && t.latestVersion ? e ? (i.next({ type: "update-start-updating" }), setTimeout(async () => {
40208
40209
  try {
40209
40210
  await tW(t.latestVersion), i.next({
@@ -40218,7 +40219,7 @@ async function sW(i, e) {
40218
40219
  version: t.latestVersion
40219
40220
  });
40220
40221
  }
40221
- }, 100)) : ie.info(`New version available: 0.0.1748793680-gb5cb75 → ${t.latestVersion}`) : ie.info("No update available");
40222
+ }, 100)) : ie.info(`New version available: 0.0.1748802804-g235c50 → ${t.latestVersion}`) : ie.info("No update available");
40222
40223
  } catch (t) {
40223
40224
  ie.debug("Update check failed", t);
40224
40225
  }
@@ -40316,7 +40317,7 @@ async function Iu(i, e) {
40316
40317
  cg({
40317
40318
  logLevel: e.logLevel || process.env.AMP_LOG_LEVEL,
40318
40319
  logFile: e.logFile || process.env.AMP_LOG_FILE
40319
- }), jM("0.0.1748793680-gb5cb75");
40320
+ }), jM("0.0.1748802804-g235c50");
40320
40321
  const t = e.settingsFile ?? process.env.AMP_SETTINGS_FILE;
40321
40322
  ie.info("Using settings file", { settingsFile: t });
40322
40323
  const n = wu(), r = $T({ settingsFile: t }), o = process.env.AMP_API_KEY;
@@ -40416,7 +40417,7 @@ function dW(i) {
40416
40417
  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
40418
  e.option("-V, --version", "output the version number", () => {
40418
40419
  if (i.isTTY) {
40419
- const r = "0.0.1748793680-gb5cb75".match(/^(\d+\.\d+)\.(\d+)-(.+)$/);
40420
+ const r = "0.0.1748802804-g235c50".match(/^(\d+\.\d+)\.(\d+)-(.+)$/);
40420
40421
  if (r) {
40421
40422
  const [, , o] = r;
40422
40423
  try {
@@ -40427,21 +40428,21 @@ function dW(i) {
40427
40428
  day: "numeric"
40428
40429
  });
40429
40430
  tt.write(
40430
- `0.0.1748793680-gb5cb75 ${i.printer.print(`(released ${a})`, { foreground: "gray" })}
40431
+ `0.0.1748802804-g235c50 ${i.printer.print(`(released ${a})`, { foreground: "gray" })}
40431
40432
  `
40432
40433
  );
40433
40434
  } else
40434
- tt.write(`0.0.1748793680-gb5cb75
40435
+ tt.write(`0.0.1748802804-g235c50
40435
40436
  `);
40436
40437
  } catch {
40437
- tt.write(`0.0.1748793680-gb5cb75
40438
+ tt.write(`0.0.1748802804-g235c50
40438
40439
  `);
40439
40440
  }
40440
40441
  } else
40441
- tt.write(`0.0.1748793680-gb5cb75
40442
+ tt.write(`0.0.1748802804-g235c50
40442
40443
  `);
40443
40444
  } else
40444
- tt.write(`0.0.1748793680-gb5cb75
40445
+ tt.write(`0.0.1748802804-g235c50
40445
40446
  `);
40446
40447
  process.exit(0);
40447
40448
  }), e.addHelpText(
@@ -40839,4 +40840,4 @@ export {
40839
40840
  ge as s,
40840
40841
  lr as u
40841
40842
  };
40842
- //# sourceMappingURL=main-DQYKrEMt.js.map
40843
+ //# sourceMappingURL=main-B_IRSDfV.js.map