@tryvira/opencode 0.1.77 → 0.1.78

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/index.js CHANGED
@@ -90,7 +90,7 @@ var ViraClient = class {
90
90
  packs;
91
91
  baseUrl;
92
92
  apiKey;
93
- accessTokenProvider;
93
+ apiCredentialProvider;
94
94
  operatorDelegationTokenProvider;
95
95
  fetcher;
96
96
  timeoutMs;
@@ -101,7 +101,7 @@ var ViraClient = class {
101
101
  constructor(options) {
102
102
  this.baseUrl = normalizeBaseUrl(options.baseUrl, options.allowInsecureLocalhost === true);
103
103
  this.apiKey = options.apiKey;
104
- this.accessTokenProvider = options.accessTokenProvider;
104
+ this.apiCredentialProvider = options.apiCredentialProvider ?? options.accessTokenProvider;
105
105
  this.operatorDelegationTokenProvider = options.operatorDelegationTokenProvider;
106
106
  this.fetcher = options.fetcher ?? fetch;
107
107
  this.timeoutMs = Math.max(
@@ -234,10 +234,12 @@ var ViraClient = class {
234
234
  const delegation = (await this.operatorDelegationTokenProvider?.())?.trim();
235
235
  if (!delegation) throw new Error("SDK_OPERATOR_DELEGATION_REQUIRED");
236
236
  headers["x-vira-delegation"] = delegation;
237
- } else if (this.accessTokenProvider) {
238
- const accessToken = (await this.accessTokenProvider())?.trim();
239
- if (!accessToken) throw new Error("SDK_ACCESS_TOKEN_REQUIRED");
240
- headers.authorization = `Bearer ${accessToken}`;
237
+ } else if (this.apiCredentialProvider) {
238
+ const credential = (await this.apiCredentialProvider())?.trim();
239
+ if (!credential) throw new Error("SDK_API_CREDENTIAL_REQUIRED");
240
+ if (/^[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+$/.test(credential))
241
+ throw new Error("SDK_OAUTH_IDENTITY_TOKEN_UNSUPPORTED");
242
+ headers["x-vira-api-key"] = credential;
241
243
  } else if (this.apiKey) {
242
244
  if (this.apiKey.startsWith("vira_live_")) headers["x-vira-api-key"] = this.apiKey;
243
245
  else {
@@ -2467,7 +2469,7 @@ function createViraHostRuntime(client, config2) {
2467
2469
  // ../runtime/src/accelerator-v4/composite-hook-session.ts
2468
2470
  import { createHash as createHash2, createHmac } from "node:crypto";
2469
2471
 
2470
- // ../../node_modules/zod/v4/classic/external.js
2472
+ // ../../../../../opt/vira/node_modules/zod/v4/classic/external.js
2471
2473
  var external_exports = {};
2472
2474
  __export(external_exports, {
2473
2475
  $brand: () => $brand,
@@ -2730,7 +2732,7 @@ __export(external_exports, {
2730
2732
  xor: () => xor
2731
2733
  });
2732
2734
 
2733
- // ../../node_modules/zod/v4/core/index.js
2735
+ // ../../../../../opt/vira/node_modules/zod/v4/core/index.js
2734
2736
  var core_exports2 = {};
2735
2737
  __export(core_exports2, {
2736
2738
  $ZodAny: () => $ZodAny,
@@ -3047,7 +3049,7 @@ __export(core_exports2, {
3047
3049
  withParser: () => withParser
3048
3050
  });
3049
3051
 
3050
- // ../../node_modules/zod/v4/core/util.js
3052
+ // ../../../../../opt/vira/node_modules/zod/v4/core/util.js
3051
3053
  var util_exports = {};
3052
3054
  __export(util_exports, {
3053
3055
  BIGINT_FORMAT_RANGES: () => BIGINT_FORMAT_RANGES,
@@ -3903,7 +3905,7 @@ function constantCatch(value) {
3903
3905
  return fn;
3904
3906
  }
3905
3907
 
3906
- // ../../node_modules/zod/v4/core/core.js
3908
+ // ../../../../../opt/vira/node_modules/zod/v4/core/core.js
3907
3909
  var _a;
3908
3910
  var NEVER = /* @__PURE__ */ Object.freeze({
3909
3911
  status: "aborted"
@@ -4025,7 +4027,7 @@ function config(newConfig) {
4025
4027
  return globalConfig;
4026
4028
  }
4027
4029
 
4028
- // ../../node_modules/zod/v4/core/errors.js
4030
+ // ../../../../../opt/vira/node_modules/zod/v4/core/errors.js
4029
4031
  function _getMessage() {
4030
4032
  const internals = this._zod;
4031
4033
  internals.message ?? (internals.message = JSON.stringify(internals.def, jsonStringifyReplacer, 2));
@@ -4217,7 +4219,7 @@ function prettifyError(error62) {
4217
4219
  return lines.join("\n");
4218
4220
  }
4219
4221
 
4220
- // ../../node_modules/zod/v4/core/parse.js
4222
+ // ../../../../../opt/vira/node_modules/zod/v4/core/parse.js
4221
4223
  function finalizeParams(callee, params) {
4222
4224
  return { callee: params?.callee ?? callee, Err: params?.Err };
4223
4225
  }
@@ -4377,7 +4379,7 @@ var _safeDecodeAsync = (_Err) => async (schema, value, _ctx) => {
4377
4379
  };
4378
4380
  var safeDecodeAsync = /* @__PURE__ */ _safeDecodeAsync($ZodRealError);
4379
4381
 
4380
- // ../../node_modules/zod/v4/core/regexes.js
4382
+ // ../../../../../opt/vira/node_modules/zod/v4/core/regexes.js
4381
4383
  var regexes_exports = {};
4382
4384
  __export(regexes_exports, {
4383
4385
  anyString: () => anyString,
@@ -4549,7 +4551,7 @@ var sha512_hex = /^[0-9a-fA-F]{128}$/;
4549
4551
  var sha512_base64 = /* @__PURE__ */ fixedBase64(86, "==");
4550
4552
  var sha512_base64url = /* @__PURE__ */ fixedBase64url(86);
4551
4553
 
4552
- // ../../node_modules/zod/v4/core/checks.js
4554
+ // ../../../../../opt/vira/node_modules/zod/v4/core/checks.js
4553
4555
  var $ZodCheck = /* @__PURE__ */ $constructor("$ZodCheck", (inst, def) => {
4554
4556
  var _a3;
4555
4557
  inst._zod ?? (inst._zod = {});
@@ -5025,7 +5027,7 @@ var $ZodCheckOverwrite = /* @__PURE__ */ $constructor("$ZodCheckOverwrite", (ins
5025
5027
  };
5026
5028
  });
5027
5029
 
5028
- // ../../node_modules/zod/v4/core/doc.js
5030
+ // ../../../../../opt/vira/node_modules/zod/v4/core/doc.js
5029
5031
  var Doc = class {
5030
5032
  constructor(args = [], closed = {}) {
5031
5033
  this.content = [];
@@ -5066,14 +5068,14 @@ ${content.join("\n")}
5066
5068
  }
5067
5069
  };
5068
5070
 
5069
- // ../../node_modules/zod/v4/core/versions.js
5071
+ // ../../../../../opt/vira/node_modules/zod/v4/core/versions.js
5070
5072
  var version = {
5071
5073
  major: 4,
5072
5074
  minor: 6,
5073
5075
  patch: 7
5074
5076
  };
5075
5077
 
5076
- // ../../node_modules/zod/v4/core/schemas.js
5078
+ // ../../../../../opt/vira/node_modules/zod/v4/core/schemas.js
5077
5079
  var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
5078
5080
  var _a3;
5079
5081
  inst ?? (inst = {});
@@ -7515,7 +7517,7 @@ function handleRefineResult(result, payload, input2, inst) {
7515
7517
  }
7516
7518
  }
7517
7519
 
7518
- // ../../node_modules/zod/v4/core/memoizer.js
7520
+ // ../../../../../opt/vira/node_modules/zod/v4/core/memoizer.js
7519
7521
  var $ZodCyclicError = class extends Error {
7520
7522
  constructor() {
7521
7523
  super(`Cannot parse a reference cycle that closes through a transform`);
@@ -7792,7 +7794,7 @@ function isBackEdge(ctx, value) {
7792
7794
  return backEdges !== void 0 && isRef(value) && backEdges.has(value);
7793
7795
  }
7794
7796
 
7795
- // ../../node_modules/zod/v4/locales/index.js
7797
+ // ../../../../../opt/vira/node_modules/zod/v4/locales/index.js
7796
7798
  var locales_exports = {};
7797
7799
  __export(locales_exports, {
7798
7800
  ar: () => ar_default,
@@ -7860,7 +7862,7 @@ __export(locales_exports, {
7860
7862
  zhTW: () => zh_TW_default
7861
7863
  });
7862
7864
 
7863
- // ../../node_modules/zod/v4/locales/ar.js
7865
+ // ../../../../../opt/vira/node_modules/zod/v4/locales/ar.js
7864
7866
  var error = () => {
7865
7867
  const Sizable = {
7866
7868
  string: { unit: "\u062D\u0631\u0641", verb: "\u0623\u0646 \u064A\u062D\u0648\u064A" },
@@ -7972,7 +7974,7 @@ function ar_default() {
7972
7974
  };
7973
7975
  }
7974
7976
 
7975
- // ../../node_modules/zod/v4/locales/az.js
7977
+ // ../../../../../opt/vira/node_modules/zod/v4/locales/az.js
7976
7978
  var error2 = () => {
7977
7979
  const Sizable = {
7978
7980
  string: { unit: "simvol", verb: "olmal\u0131d\u0131r" },
@@ -8083,7 +8085,7 @@ function az_default() {
8083
8085
  };
8084
8086
  }
8085
8087
 
8086
- // ../../node_modules/zod/v4/locales/be.js
8088
+ // ../../../../../opt/vira/node_modules/zod/v4/locales/be.js
8087
8089
  function getBelarusianPlural(count, one, few, many) {
8088
8090
  const absCount = Math.abs(count);
8089
8091
  const lastDigit = absCount % 10;
@@ -8252,7 +8254,7 @@ function be_default() {
8252
8254
  };
8253
8255
  }
8254
8256
 
8255
- // ../../node_modules/zod/v4/locales/bg.js
8257
+ // ../../../../../opt/vira/node_modules/zod/v4/locales/bg.js
8256
8258
  var error4 = () => {
8257
8259
  const Sizable = {
8258
8260
  string: { unit: "\u0441\u0438\u043C\u0432\u043E\u043B\u0430", verb: "\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430" },
@@ -8378,7 +8380,7 @@ function bg_default() {
8378
8380
  };
8379
8381
  }
8380
8382
 
8381
- // ../../node_modules/zod/v4/locales/bn.js
8383
+ // ../../../../../opt/vira/node_modules/zod/v4/locales/bn.js
8382
8384
  var error5 = () => {
8383
8385
  const Sizable = {
8384
8386
  string: { unit: "\u0985\u0995\u09CD\u09B7\u09B0", verb: "\u09A5\u09BE\u0995\u09A4\u09C7 \u09B9\u09AC\u09C7" },
@@ -8492,7 +8494,7 @@ function bn_default() {
8492
8494
  };
8493
8495
  }
8494
8496
 
8495
- // ../../node_modules/zod/v4/locales/ca.js
8497
+ // ../../../../../opt/vira/node_modules/zod/v4/locales/ca.js
8496
8498
  var error6 = () => {
8497
8499
  const Sizable = {
8498
8500
  string: { unit: "car\xE0cters", verb: "contenir" },
@@ -8606,7 +8608,7 @@ function ca_default() {
8606
8608
  };
8607
8609
  }
8608
8610
 
8609
- // ../../node_modules/zod/v4/locales/ckb.js
8611
+ // ../../../../../opt/vira/node_modules/zod/v4/locales/ckb.js
8610
8612
  var error7 = () => {
8611
8613
  const Sizable = {
8612
8614
  string: { unit: "\u067E\u06CC\u062A", verb: "\u0628\u06CE\u062A" },
@@ -8739,7 +8741,7 @@ function ckb_default() {
8739
8741
  };
8740
8742
  }
8741
8743
 
8742
- // ../../node_modules/zod/v4/locales/cs.js
8744
+ // ../../../../../opt/vira/node_modules/zod/v4/locales/cs.js
8743
8745
  var error8 = () => {
8744
8746
  const Sizable = {
8745
8747
  string: { unit: "znak\u016F", verb: "m\xEDt" },
@@ -8856,7 +8858,7 @@ function cs_default() {
8856
8858
  };
8857
8859
  }
8858
8860
 
8859
- // ../../node_modules/zod/v4/locales/da.js
8861
+ // ../../../../../opt/vira/node_modules/zod/v4/locales/da.js
8860
8862
  var error9 = () => {
8861
8863
  const Sizable = {
8862
8864
  string: { unit: "tegn", verb: "havde" },
@@ -8977,7 +8979,7 @@ function da_default() {
8977
8979
  };
8978
8980
  }
8979
8981
 
8980
- // ../../node_modules/zod/v4/locales/de.js
8982
+ // ../../../../../opt/vira/node_modules/zod/v4/locales/de.js
8981
8983
  var error10 = () => {
8982
8984
  const Sizable = {
8983
8985
  string: { unit: "Zeichen", verb: "zu haben" },
@@ -9091,7 +9093,7 @@ function de_default() {
9091
9093
  };
9092
9094
  }
9093
9095
 
9094
- // ../../node_modules/zod/v4/locales/el.js
9096
+ // ../../../../../opt/vira/node_modules/zod/v4/locales/el.js
9095
9097
  var error11 = () => {
9096
9098
  const Sizable = {
9097
9099
  string: { unit: "\u03C7\u03B1\u03C1\u03B1\u03BA\u03C4\u03AE\u03C1\u03B5\u03C2", verb: "\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9" },
@@ -9204,7 +9206,7 @@ function el_default() {
9204
9206
  };
9205
9207
  }
9206
9208
 
9207
- // ../../node_modules/zod/v4/locales/en.js
9209
+ // ../../../../../opt/vira/node_modules/zod/v4/locales/en.js
9208
9210
  var error12 = () => {
9209
9211
  const Sizable = {
9210
9212
  string: { unit: "characters", verb: "to have" },
@@ -9329,7 +9331,7 @@ function en_default() {
9329
9331
  };
9330
9332
  }
9331
9333
 
9332
- // ../../node_modules/zod/v4/locales/eo.js
9334
+ // ../../../../../opt/vira/node_modules/zod/v4/locales/eo.js
9333
9335
  var error13 = () => {
9334
9336
  const Sizable = {
9335
9337
  string: { unit: "karaktrojn", verb: "havi" },
@@ -9444,7 +9446,7 @@ function eo_default() {
9444
9446
  };
9445
9447
  }
9446
9448
 
9447
- // ../../node_modules/zod/v4/locales/es.js
9449
+ // ../../../../../opt/vira/node_modules/zod/v4/locales/es.js
9448
9450
  var error14 = () => {
9449
9451
  const Sizable = {
9450
9452
  string: { unit: "caracteres", verb: "tener" },
@@ -9581,7 +9583,7 @@ function es_default() {
9581
9583
  };
9582
9584
  }
9583
9585
 
9584
- // ../../node_modules/zod/v4/locales/fa.js
9586
+ // ../../../../../opt/vira/node_modules/zod/v4/locales/fa.js
9585
9587
  var error15 = () => {
9586
9588
  const Sizable = {
9587
9589
  string: { unit: "\u06A9\u0627\u0631\u0627\u06A9\u062A\u0631", verb: "\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F" },
@@ -9701,7 +9703,7 @@ function fa_default() {
9701
9703
  };
9702
9704
  }
9703
9705
 
9704
- // ../../node_modules/zod/v4/locales/fi.js
9706
+ // ../../../../../opt/vira/node_modules/zod/v4/locales/fi.js
9705
9707
  var error16 = () => {
9706
9708
  const Sizable = {
9707
9709
  string: { unit: "merkki\xE4", subject: "merkkijonon" },
@@ -9819,7 +9821,7 @@ function fi_default() {
9819
9821
  };
9820
9822
  }
9821
9823
 
9822
- // ../../node_modules/zod/v4/locales/fr.js
9824
+ // ../../../../../opt/vira/node_modules/zod/v4/locales/fr.js
9823
9825
  var error17 = () => {
9824
9826
  const Sizable = {
9825
9827
  string: { unit: "caract\xE8res", verb: "avoir" },
@@ -9949,7 +9951,7 @@ function fr_default() {
9949
9951
  };
9950
9952
  }
9951
9953
 
9952
- // ../../node_modules/zod/v4/locales/fr-CA.js
9954
+ // ../../../../../opt/vira/node_modules/zod/v4/locales/fr-CA.js
9953
9955
  var error18 = () => {
9954
9956
  const Sizable = {
9955
9957
  string: { unit: "caract\xE8res", verb: "avoir" },
@@ -10062,7 +10064,7 @@ function fr_CA_default() {
10062
10064
  };
10063
10065
  }
10064
10066
 
10065
- // ../../node_modules/zod/v4/locales/gu.js
10067
+ // ../../../../../opt/vira/node_modules/zod/v4/locales/gu.js
10066
10068
  var error19 = () => {
10067
10069
  const Sizable = {
10068
10070
  string: { unit: "\u0A85\u0A95\u0ACD\u0AB7\u0AB0", verb: "\u0AB9\u0ACB\u0AB5\u0ABE \u0A9C\u0ACB\u0A88\u0A8F" },
@@ -10176,7 +10178,7 @@ function gu_default() {
10176
10178
  };
10177
10179
  }
10178
10180
 
10179
- // ../../node_modules/zod/v4/locales/he.js
10181
+ // ../../../../../opt/vira/node_modules/zod/v4/locales/he.js
10180
10182
  var error20 = () => {
10181
10183
  const TypeNames = {
10182
10184
  string: { label: "\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA", gender: "f" },
@@ -10378,7 +10380,7 @@ function he_default() {
10378
10380
  };
10379
10381
  }
10380
10382
 
10381
- // ../../node_modules/zod/v4/locales/hi.js
10383
+ // ../../../../../opt/vira/node_modules/zod/v4/locales/hi.js
10382
10384
  var error21 = () => {
10383
10385
  const Sizable = {
10384
10386
  string: { unit: "\u0905\u0915\u094D\u0937\u0930", verb: "\u0930\u0916\u0928\u0947 \u0915\u0947 \u0932\u093F\u090F" },
@@ -10490,7 +10492,7 @@ function hi_default() {
10490
10492
  };
10491
10493
  }
10492
10494
 
10493
- // ../../node_modules/zod/v4/locales/hr.js
10495
+ // ../../../../../opt/vira/node_modules/zod/v4/locales/hr.js
10494
10496
  var error22 = () => {
10495
10497
  const Sizable = {
10496
10498
  string: { unit: "znakova", verb: "imati" },
@@ -10617,7 +10619,7 @@ function hr_default() {
10617
10619
  };
10618
10620
  }
10619
10621
 
10620
- // ../../node_modules/zod/v4/locales/hu.js
10622
+ // ../../../../../opt/vira/node_modules/zod/v4/locales/hu.js
10621
10623
  var error23 = () => {
10622
10624
  const Sizable = {
10623
10625
  string: { unit: "karakter", verb: "legyen" },
@@ -10731,7 +10733,7 @@ function hu_default() {
10731
10733
  };
10732
10734
  }
10733
10735
 
10734
- // ../../node_modules/zod/v4/locales/hy.js
10736
+ // ../../../../../opt/vira/node_modules/zod/v4/locales/hy.js
10735
10737
  function getArmenianPlural(count, one, many) {
10736
10738
  return Math.abs(count) === 1 ? one : many;
10737
10739
  }
@@ -10890,7 +10892,7 @@ function hy_default() {
10890
10892
  };
10891
10893
  }
10892
10894
 
10893
- // ../../node_modules/zod/v4/locales/id.js
10895
+ // ../../../../../opt/vira/node_modules/zod/v4/locales/id.js
10894
10896
  var error25 = () => {
10895
10897
  const Sizable = {
10896
10898
  string: { unit: "karakter", verb: "memiliki" },
@@ -11002,7 +11004,7 @@ function id_default() {
11002
11004
  };
11003
11005
  }
11004
11006
 
11005
- // ../../node_modules/zod/v4/locales/is.js
11007
+ // ../../../../../opt/vira/node_modules/zod/v4/locales/is.js
11006
11008
  var error26 = () => {
11007
11009
  const Sizable = {
11008
11010
  string: { unit: "stafi", verb: "a\xF0 hafa" },
@@ -11117,7 +11119,7 @@ function is_default() {
11117
11119
  };
11118
11120
  }
11119
11121
 
11120
- // ../../node_modules/zod/v4/locales/it.js
11122
+ // ../../../../../opt/vira/node_modules/zod/v4/locales/it.js
11121
11123
  var error27 = () => {
11122
11124
  const Sizable = {
11123
11125
  string: { unit: "caratteri", verb: "avere" },
@@ -11231,7 +11233,7 @@ function it_default() {
11231
11233
  };
11232
11234
  }
11233
11235
 
11234
- // ../../node_modules/zod/v4/locales/ja.js
11236
+ // ../../../../../opt/vira/node_modules/zod/v4/locales/ja.js
11235
11237
  var error28 = () => {
11236
11238
  const Sizable = {
11237
11239
  string: { unit: "\u6587\u5B57", verb: "\u3067\u3042\u308B" },
@@ -11344,7 +11346,7 @@ function ja_default() {
11344
11346
  };
11345
11347
  }
11346
11348
 
11347
- // ../../node_modules/zod/v4/locales/ka.js
11349
+ // ../../../../../opt/vira/node_modules/zod/v4/locales/ka.js
11348
11350
  var error29 = () => {
11349
11351
  const Sizable = {
11350
11352
  string: { unit: "\u10E1\u10D8\u10DB\u10D1\u10DD\u10DA\u10DD", verb: "\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1" },
@@ -11462,7 +11464,7 @@ function ka_default() {
11462
11464
  };
11463
11465
  }
11464
11466
 
11465
- // ../../node_modules/zod/v4/locales/km.js
11467
+ // ../../../../../opt/vira/node_modules/zod/v4/locales/km.js
11466
11468
  var error30 = () => {
11467
11469
  const Sizable = {
11468
11470
  string: { unit: "\u178F\u17BD\u17A2\u1780\u17D2\u179F\u179A", verb: "\u1782\u17BD\u179A\u1798\u17B6\u1793" },
@@ -11578,12 +11580,12 @@ function km_default() {
11578
11580
  };
11579
11581
  }
11580
11582
 
11581
- // ../../node_modules/zod/v4/locales/kh.js
11583
+ // ../../../../../opt/vira/node_modules/zod/v4/locales/kh.js
11582
11584
  function kh_default() {
11583
11585
  return km_default();
11584
11586
  }
11585
11587
 
11586
- // ../../node_modules/zod/v4/locales/kn.js
11588
+ // ../../../../../opt/vira/node_modules/zod/v4/locales/kn.js
11587
11589
  var error31 = () => {
11588
11590
  const Sizable = {
11589
11591
  string: { unit: "\u0C85\u0C95\u0CCD\u0CB7\u0CB0\u0C97\u0CB3\u0CC1", verb: "\u0CB9\u0CCA\u0C82\u0CA6\u0CB2\u0CC1" },
@@ -11699,7 +11701,7 @@ function kn_default() {
11699
11701
  };
11700
11702
  }
11701
11703
 
11702
- // ../../node_modules/zod/v4/locales/ko.js
11704
+ // ../../../../../opt/vira/node_modules/zod/v4/locales/ko.js
11703
11705
  var error32 = () => {
11704
11706
  const Sizable = {
11705
11707
  string: { unit: "\uBB38\uC790", verb: "to have" },
@@ -11816,7 +11818,7 @@ function ko_default() {
11816
11818
  };
11817
11819
  }
11818
11820
 
11819
- // ../../node_modules/zod/v4/locales/lt.js
11821
+ // ../../../../../opt/vira/node_modules/zod/v4/locales/lt.js
11820
11822
  var capitalizeFirstCharacter = (text3) => {
11821
11823
  return text3.charAt(0).toUpperCase() + text3.slice(1);
11822
11824
  };
@@ -12024,7 +12026,7 @@ function lt_default() {
12024
12026
  };
12025
12027
  }
12026
12028
 
12027
- // ../../node_modules/zod/v4/locales/mk.js
12029
+ // ../../../../../opt/vira/node_modules/zod/v4/locales/mk.js
12028
12030
  var error34 = () => {
12029
12031
  const Sizable = {
12030
12032
  string: { unit: "\u0437\u043D\u0430\u0446\u0438", verb: "\u0434\u0430 \u0438\u043C\u0430\u0430\u0442" },
@@ -12139,7 +12141,7 @@ function mk_default() {
12139
12141
  };
12140
12142
  }
12141
12143
 
12142
- // ../../node_modules/zod/v4/locales/ms.js
12144
+ // ../../../../../opt/vira/node_modules/zod/v4/locales/ms.js
12143
12145
  var error35 = () => {
12144
12146
  const Sizable = {
12145
12147
  string: { unit: "aksara", verb: "mempunyai" },
@@ -12252,7 +12254,7 @@ function ms_default() {
12252
12254
  };
12253
12255
  }
12254
12256
 
12255
- // ../../node_modules/zod/v4/locales/ne.js
12257
+ // ../../../../../opt/vira/node_modules/zod/v4/locales/ne.js
12256
12258
  var error36 = () => {
12257
12259
  const Sizable = {
12258
12260
  string: { unit: "\u0905\u0915\u094D\u0937\u0930", verb: "\u0939\u0941\u0928\u0941\u092A\u0930\u094D\u091B" },
@@ -12364,7 +12366,7 @@ function ne_default() {
12364
12366
  };
12365
12367
  }
12366
12368
 
12367
- // ../../node_modules/zod/v4/locales/nl.js
12369
+ // ../../../../../opt/vira/node_modules/zod/v4/locales/nl.js
12368
12370
  var error37 = () => {
12369
12371
  const Sizable = {
12370
12372
  string: { unit: "tekens", verb: "heeft" },
@@ -12480,7 +12482,7 @@ function nl_default() {
12480
12482
  };
12481
12483
  }
12482
12484
 
12483
- // ../../node_modules/zod/v4/locales/nn.js
12485
+ // ../../../../../opt/vira/node_modules/zod/v4/locales/nn.js
12484
12486
  var error38 = () => {
12485
12487
  const Sizable = {
12486
12488
  string: { unit: "teikn", verb: "\xE5 ha" },
@@ -12594,7 +12596,7 @@ function nn_default() {
12594
12596
  };
12595
12597
  }
12596
12598
 
12597
- // ../../node_modules/zod/v4/locales/no.js
12599
+ // ../../../../../opt/vira/node_modules/zod/v4/locales/no.js
12598
12600
  var error39 = () => {
12599
12601
  const Sizable = {
12600
12602
  string: { unit: "tegn", verb: "\xE5 ha" },
@@ -12708,7 +12710,7 @@ function no_default() {
12708
12710
  };
12709
12711
  }
12710
12712
 
12711
- // ../../node_modules/zod/v4/locales/ota.js
12713
+ // ../../../../../opt/vira/node_modules/zod/v4/locales/ota.js
12712
12714
  var error40 = () => {
12713
12715
  const Sizable = {
12714
12716
  string: { unit: "harf", verb: "olmal\u0131d\u0131r" },
@@ -12823,7 +12825,7 @@ function ota_default() {
12823
12825
  };
12824
12826
  }
12825
12827
 
12826
- // ../../node_modules/zod/v4/locales/ps.js
12828
+ // ../../../../../opt/vira/node_modules/zod/v4/locales/ps.js
12827
12829
  var error41 = () => {
12828
12830
  const Sizable = {
12829
12831
  string: { unit: "\u062A\u0648\u06A9\u064A", verb: "\u0648\u0644\u0631\u064A" },
@@ -12943,7 +12945,7 @@ function ps_default() {
12943
12945
  };
12944
12946
  }
12945
12947
 
12946
- // ../../node_modules/zod/v4/locales/pl.js
12948
+ // ../../../../../opt/vira/node_modules/zod/v4/locales/pl.js
12947
12949
  var error42 = () => {
12948
12950
  const Sizable = {
12949
12951
  string: { unit: "znak\xF3w", verb: "mie\u0107" },
@@ -13058,7 +13060,7 @@ function pl_default() {
13058
13060
  };
13059
13061
  }
13060
13062
 
13061
- // ../../node_modules/zod/v4/locales/pt.js
13063
+ // ../../../../../opt/vira/node_modules/zod/v4/locales/pt.js
13062
13064
  var error43 = () => {
13063
13065
  const Sizable = {
13064
13066
  string: { unit: "caracteres" },
@@ -13202,7 +13204,7 @@ function pt_default() {
13202
13204
  };
13203
13205
  }
13204
13206
 
13205
- // ../../node_modules/zod/v4/locales/pt-BR.js
13207
+ // ../../../../../opt/vira/node_modules/zod/v4/locales/pt-BR.js
13206
13208
  var error44 = () => {
13207
13209
  const Sizable = {
13208
13210
  string: { unit: "caracteres" },
@@ -13347,7 +13349,7 @@ function pt_BR_default() {
13347
13349
  };
13348
13350
  }
13349
13351
 
13350
- // ../../node_modules/zod/v4/locales/ro.js
13352
+ // ../../../../../opt/vira/node_modules/zod/v4/locales/ro.js
13351
13353
  var error45 = () => {
13352
13354
  const Sizable = {
13353
13355
  string: { unit: "caractere", verb: "s\u0103 aib\u0103" },
@@ -13470,7 +13472,7 @@ function ro_default() {
13470
13472
  };
13471
13473
  }
13472
13474
 
13473
- // ../../node_modules/zod/v4/locales/ru.js
13475
+ // ../../../../../opt/vira/node_modules/zod/v4/locales/ru.js
13474
13476
  function getRussianPlural(count, one, few, many) {
13475
13477
  const absCount = Math.abs(count);
13476
13478
  const lastDigit = absCount % 10;
@@ -13639,7 +13641,7 @@ function ru_default() {
13639
13641
  };
13640
13642
  }
13641
13643
 
13642
- // ../../node_modules/zod/v4/locales/sk.js
13644
+ // ../../../../../opt/vira/node_modules/zod/v4/locales/sk.js
13643
13645
  var error47 = () => {
13644
13646
  const Sizable = {
13645
13647
  string: { unit: "znakov", verb: "ma\u0165" },
@@ -13756,7 +13758,7 @@ function sk_default() {
13756
13758
  };
13757
13759
  }
13758
13760
 
13759
- // ../../node_modules/zod/v4/locales/sl.js
13761
+ // ../../../../../opt/vira/node_modules/zod/v4/locales/sl.js
13760
13762
  var error48 = () => {
13761
13763
  const Sizable = {
13762
13764
  string: { unit: "znakov", verb: "imeti" },
@@ -13871,7 +13873,7 @@ function sl_default() {
13871
13873
  };
13872
13874
  }
13873
13875
 
13874
- // ../../node_modules/zod/v4/locales/sv.js
13876
+ // ../../../../../opt/vira/node_modules/zod/v4/locales/sv.js
13875
13877
  var error49 = () => {
13876
13878
  const Sizable = {
13877
13879
  string: { unit: "tecken", verb: "att ha" },
@@ -13987,7 +13989,7 @@ function sv_default() {
13987
13989
  };
13988
13990
  }
13989
13991
 
13990
- // ../../node_modules/zod/v4/locales/ta.js
13992
+ // ../../../../../opt/vira/node_modules/zod/v4/locales/ta.js
13991
13993
  var error50 = () => {
13992
13994
  const Sizable = {
13993
13995
  string: { unit: "\u0B8E\u0BB4\u0BC1\u0BA4\u0BCD\u0BA4\u0BC1\u0B95\u0BCD\u0B95\u0BB3\u0BCD", verb: "\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD" },
@@ -14103,7 +14105,7 @@ function ta_default() {
14103
14105
  };
14104
14106
  }
14105
14107
 
14106
- // ../../node_modules/zod/v4/locales/tg.js
14108
+ // ../../../../../opt/vira/node_modules/zod/v4/locales/tg.js
14107
14109
  var error51 = () => {
14108
14110
  const Sizable = {
14109
14111
  string: { unit: "\u0430\u043B\u043E\u043C\u0430\u0442", verb: "\u0434\u043E\u0448\u0442\u0430 \u0431\u043E\u0448\u0430\u0434" },
@@ -14220,7 +14222,7 @@ function tg_default() {
14220
14222
  };
14221
14223
  }
14222
14224
 
14223
- // ../../node_modules/zod/v4/locales/th.js
14225
+ // ../../../../../opt/vira/node_modules/zod/v4/locales/th.js
14224
14226
  var error52 = () => {
14225
14227
  const Sizable = {
14226
14228
  string: { unit: "\u0E15\u0E31\u0E27\u0E2D\u0E31\u0E01\u0E29\u0E23", verb: "\u0E04\u0E27\u0E23\u0E21\u0E35" },
@@ -14336,7 +14338,7 @@ function th_default() {
14336
14338
  };
14337
14339
  }
14338
14340
 
14339
- // ../../node_modules/zod/v4/locales/tk.js
14341
+ // ../../../../../opt/vira/node_modules/zod/v4/locales/tk.js
14340
14342
  var error53 = () => {
14341
14343
  const Sizable = {
14342
14344
  string: { unit: "simwol", verb: "bolmaly" },
@@ -14444,7 +14446,7 @@ function tk_default() {
14444
14446
  };
14445
14447
  }
14446
14448
 
14447
- // ../../node_modules/zod/v4/locales/tr.js
14449
+ // ../../../../../opt/vira/node_modules/zod/v4/locales/tr.js
14448
14450
  var error54 = () => {
14449
14451
  const Sizable = {
14450
14452
  string: { unit: "karakter", verb: "olmal\u0131" },
@@ -14555,7 +14557,7 @@ function tr_default() {
14555
14557
  };
14556
14558
  }
14557
14559
 
14558
- // ../../node_modules/zod/v4/locales/uk.js
14560
+ // ../../../../../opt/vira/node_modules/zod/v4/locales/uk.js
14559
14561
  var error55 = () => {
14560
14562
  const Sizable = {
14561
14563
  string: { unit: "\u0441\u0438\u043C\u0432\u043E\u043B\u0456\u0432", verb: "\u043C\u0430\u0442\u0438\u043C\u0435" },
@@ -14669,12 +14671,12 @@ function uk_default() {
14669
14671
  };
14670
14672
  }
14671
14673
 
14672
- // ../../node_modules/zod/v4/locales/ua.js
14674
+ // ../../../../../opt/vira/node_modules/zod/v4/locales/ua.js
14673
14675
  function ua_default() {
14674
14676
  return uk_default();
14675
14677
  }
14676
14678
 
14677
- // ../../node_modules/zod/v4/locales/ur.js
14679
+ // ../../../../../opt/vira/node_modules/zod/v4/locales/ur.js
14678
14680
  var error56 = () => {
14679
14681
  const Sizable = {
14680
14682
  string: { unit: "\u062D\u0631\u0648\u0641", verb: "\u06C1\u0648\u0646\u0627" },
@@ -14790,7 +14792,7 @@ function ur_default() {
14790
14792
  };
14791
14793
  }
14792
14794
 
14793
- // ../../node_modules/zod/v4/locales/uz.js
14795
+ // ../../../../../opt/vira/node_modules/zod/v4/locales/uz.js
14794
14796
  var error57 = () => {
14795
14797
  const Sizable = {
14796
14798
  string: { unit: "belgi", verb: "bo\u2018lishi kerak" },
@@ -14904,7 +14906,7 @@ function uz_default() {
14904
14906
  };
14905
14907
  }
14906
14908
 
14907
- // ../../node_modules/zod/v4/locales/vi.js
14909
+ // ../../../../../opt/vira/node_modules/zod/v4/locales/vi.js
14908
14910
  var error58 = () => {
14909
14911
  const Sizable = {
14910
14912
  string: { unit: "k\xFD t\u1EF1", verb: "c\xF3" },
@@ -15018,7 +15020,7 @@ function vi_default() {
15018
15020
  };
15019
15021
  }
15020
15022
 
15021
- // ../../node_modules/zod/v4/locales/zh-CN.js
15023
+ // ../../../../../opt/vira/node_modules/zod/v4/locales/zh-CN.js
15022
15024
  var error59 = () => {
15023
15025
  const Sizable = {
15024
15026
  string: { unit: "\u5B57\u7B26", verb: "\u5305\u542B" },
@@ -15133,7 +15135,7 @@ function zh_CN_default() {
15133
15135
  };
15134
15136
  }
15135
15137
 
15136
- // ../../node_modules/zod/v4/locales/zh-TW.js
15138
+ // ../../../../../opt/vira/node_modules/zod/v4/locales/zh-TW.js
15137
15139
  var error60 = () => {
15138
15140
  const Sizable = {
15139
15141
  string: { unit: "\u5B57\u5143", verb: "\u64C1\u6709" },
@@ -15246,7 +15248,7 @@ function zh_TW_default() {
15246
15248
  };
15247
15249
  }
15248
15250
 
15249
- // ../../node_modules/zod/v4/locales/yo.js
15251
+ // ../../../../../opt/vira/node_modules/zod/v4/locales/yo.js
15250
15252
  var error61 = () => {
15251
15253
  const Sizable = {
15252
15254
  string: { unit: "\xE0mi", verb: "n\xED" },
@@ -15359,7 +15361,7 @@ function yo_default() {
15359
15361
  };
15360
15362
  }
15361
15363
 
15362
- // ../../node_modules/zod/v4/core/registries.js
15364
+ // ../../../../../opt/vira/node_modules/zod/v4/core/registries.js
15363
15365
  var _a2;
15364
15366
  var $output = /* @__PURE__ */ Symbol("ZodOutput");
15365
15367
  var $input = /* @__PURE__ */ Symbol("ZodInput");
@@ -15409,7 +15411,7 @@ function registry() {
15409
15411
  (_a2 = globalThis).__zod_globalRegistry ?? (_a2.__zod_globalRegistry = registry());
15410
15412
  var globalRegistry = globalThis.__zod_globalRegistry;
15411
15413
 
15412
- // ../../node_modules/zod/v4/core/compile.js
15414
+ // ../../../../../opt/vira/node_modules/zod/v4/core/compile.js
15413
15415
  var INVALID = /* @__PURE__ */ Symbol.for("zod.compile.invalid");
15414
15416
  var FALLBACK_FLAG = /* @__PURE__ */ Symbol.for("zod.compile.fallback");
15415
15417
  var ZodCompileAsyncError = class extends Error {
@@ -17019,7 +17021,7 @@ function generateTransformCheck(doc, ctx, schema, accessor) {
17019
17021
  return accessor;
17020
17022
  }
17021
17023
 
17022
- // ../../node_modules/zod/v4/core/api.js
17024
+ // ../../../../../opt/vira/node_modules/zod/v4/core/api.js
17023
17025
  function snapshotChecks(def) {
17024
17026
  if (def.checks)
17025
17027
  def.checks = [...def.checks];
@@ -18078,7 +18080,7 @@ function _stringFormat(Class2, format, fnOrRegex, _params = {}) {
18078
18080
  return inst;
18079
18081
  }
18080
18082
 
18081
- // ../../node_modules/zod/v4/core/to-json-schema.js
18083
+ // ../../../../../opt/vira/node_modules/zod/v4/core/to-json-schema.js
18082
18084
  function assignProps(target, ...sources) {
18083
18085
  for (const source of sources) {
18084
18086
  for (const key of Reflect.ownKeys(source)) {
@@ -18608,7 +18610,7 @@ var createStandardJSONSchemaMethod = (schema, io, processors = {}) => (params) =
18608
18610
  return finalize(ctx, schema);
18609
18611
  };
18610
18612
 
18611
- // ../../node_modules/zod/v4/core/json-schema-processors.js
18613
+ // ../../../../../opt/vira/node_modules/zod/v4/core/json-schema-processors.js
18612
18614
  var narrowMin = (agg, key, value) => {
18613
18615
  if (agg[key] === void 0 || value > agg[key])
18614
18616
  agg[key] = value;
@@ -19356,7 +19358,7 @@ function toJSONSchema(input2, params) {
19356
19358
  return finalize(ctx, input2);
19357
19359
  }
19358
19360
 
19359
- // ../../node_modules/zod/v4/core/json-schema-generator.js
19361
+ // ../../../../../opt/vira/node_modules/zod/v4/core/json-schema-generator.js
19360
19362
  var JSONSchemaGenerator = class {
19361
19363
  /** @deprecated Access via ctx instead */
19362
19364
  get metadataRegistry() {
@@ -19434,10 +19436,10 @@ var JSONSchemaGenerator = class {
19434
19436
  }
19435
19437
  };
19436
19438
 
19437
- // ../../node_modules/zod/v4/core/json-schema.js
19439
+ // ../../../../../opt/vira/node_modules/zod/v4/core/json-schema.js
19438
19440
  var json_schema_exports = {};
19439
19441
 
19440
- // ../../node_modules/zod/v4/classic/schemas.js
19442
+ // ../../../../../opt/vira/node_modules/zod/v4/classic/schemas.js
19441
19443
  var schemas_exports2 = {};
19442
19444
  __export(schemas_exports2, {
19443
19445
  ZodAny: () => ZodAny,
@@ -19618,7 +19620,7 @@ __export(schemas_exports2, {
19618
19620
  xor: () => xor
19619
19621
  });
19620
19622
 
19621
- // ../../node_modules/zod/v4/classic/checks.js
19623
+ // ../../../../../opt/vira/node_modules/zod/v4/classic/checks.js
19622
19624
  var checks_exports2 = {};
19623
19625
  __export(checks_exports2, {
19624
19626
  endsWith: () => _endsWith,
@@ -19653,7 +19655,7 @@ __export(checks_exports2, {
19653
19655
  uppercase: () => _uppercase
19654
19656
  });
19655
19657
 
19656
- // ../../node_modules/zod/v4/classic/errors.js
19658
+ // ../../../../../opt/vira/node_modules/zod/v4/classic/errors.js
19657
19659
  var _installedErrorProtos = /* @__PURE__ */ new WeakSet([Object.prototype, Error.prototype]);
19658
19660
  function _lazyMethod(proto, key, make) {
19659
19661
  Object.defineProperty(proto, key, {
@@ -19699,7 +19701,7 @@ var ZodRealError = /* @__PURE__ */ $constructor("ZodError", initializer2, void 0
19699
19701
  Parent: Error
19700
19702
  });
19701
19703
 
19702
- // ../../node_modules/zod/v4/classic/parse.js
19704
+ // ../../../../../opt/vira/node_modules/zod/v4/classic/parse.js
19703
19705
  var parse2 = /* @__PURE__ */ _parse(ZodRealError);
19704
19706
  var parseAsync2 = /* @__PURE__ */ _parseAsync(ZodRealError);
19705
19707
  var safeParse2 = /* @__PURE__ */ _safeParse(ZodRealError);
@@ -19713,7 +19715,7 @@ var safeDecode2 = /* @__PURE__ */ _safeDecode(ZodRealError);
19713
19715
  var safeEncodeAsync2 = /* @__PURE__ */ _safeEncodeAsync(ZodRealError);
19714
19716
  var safeDecodeAsync2 = /* @__PURE__ */ _safeDecodeAsync(ZodRealError);
19715
19717
 
19716
- // ../../node_modules/zod/v4/classic/schemas.js
19718
+ // ../../../../../opt/vira/node_modules/zod/v4/classic/schemas.js
19717
19719
  function _ensureDefaultLocale() {
19718
19720
  if (!globalConfig.localeError)
19719
19721
  config(en_default());
@@ -21178,7 +21180,7 @@ function preprocess(fn, schema) {
21178
21180
  });
21179
21181
  }
21180
21182
 
21181
- // ../../node_modules/zod/v4/classic/compat.js
21183
+ // ../../../../../opt/vira/node_modules/zod/v4/classic/compat.js
21182
21184
  var ZodIssueCode = {
21183
21185
  invalid_type: "invalid_type",
21184
21186
  too_big: "too_big",
@@ -21204,7 +21206,7 @@ var ZodFirstPartyTypeKind;
21204
21206
  /* @__PURE__ */ (function(ZodFirstPartyTypeKind2) {
21205
21207
  })(ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {}));
21206
21208
 
21207
- // ../../node_modules/zod/v4/classic/iso.js
21209
+ // ../../../../../opt/vira/node_modules/zod/v4/classic/iso.js
21208
21210
  var iso_exports = {};
21209
21211
  __export(iso_exports, {
21210
21212
  ZodISODate: () => ZodISODate,
@@ -21229,7 +21231,7 @@ function duration2(params) {
21229
21231
  return _isoDuration(ZodISODuration, params);
21230
21232
  }
21231
21233
 
21232
- // ../../node_modules/zod/v4/classic/from-json-schema.js
21234
+ // ../../../../../opt/vira/node_modules/zod/v4/classic/from-json-schema.js
21233
21235
  var z = {
21234
21236
  ...schemas_exports2,
21235
21237
  ...checks_exports2,
@@ -21962,7 +21964,7 @@ function fromJSONSchema(schema, params) {
21962
21964
  return convertSchema(normalized, ctx);
21963
21965
  }
21964
21966
 
21965
- // ../../node_modules/zod/v4/core/visit.js
21967
+ // ../../../../../opt/vira/node_modules/zod/v4/core/visit.js
21966
21968
  var RESOLVING = /* @__PURE__ */ Symbol("z.visit/resolving");
21967
21969
  function visit(schema, fnOrHandlers) {
21968
21970
  const fn = typeof fnOrHandlers === "function" ? fnOrHandlers : (node2, rewritten) => {
@@ -22117,7 +22119,7 @@ function visit(schema, fnOrHandlers) {
22117
22119
  return run(schema);
22118
22120
  }
22119
22121
 
22120
- // ../../node_modules/zod/v4/classic/deep-partial.js
22122
+ // ../../../../../opt/vira/node_modules/zod/v4/classic/deep-partial.js
22121
22123
  function deepPartial(schema) {
22122
22124
  return visit(schema, {
22123
22125
  object: (s) => s.partial(),
@@ -22129,7 +22131,7 @@ function deepPartial(schema) {
22129
22131
  });
22130
22132
  }
22131
22133
 
22132
- // ../../node_modules/zod/v4/classic/in-out.js
22134
+ // ../../../../../opt/vira/node_modules/zod/v4/classic/in-out.js
22133
22135
  function withChecks(side, checks) {
22134
22136
  if (!checks?.length)
22135
22137
  return side;
@@ -22159,7 +22161,7 @@ function output(schema) {
22159
22161
  });
22160
22162
  }
22161
22163
 
22162
- // ../../node_modules/zod/v4/classic/coerce.js
22164
+ // ../../../../../opt/vira/node_modules/zod/v4/classic/coerce.js
22163
22165
  var coerce_exports = {};
22164
22166
  __export(coerce_exports, {
22165
22167
  bigint: () => bigint3,
@@ -22786,7 +22788,7 @@ var v2Plugin = Plugin.define({
22786
22788
  const apiKey = options.apiKey ?? env("VIRA_API_KEY");
22787
22789
  const machine = isOpenCodeMachineCredential(options, apiKey);
22788
22790
  const allowInsecureLocalhost = options.allowInsecureLocalhost ?? env("VIRA_ALLOW_INSECURE_LOCALHOST") === "true";
22789
- const client = new ViraClient({ baseUrl: required3(apiUrl, "VIRA_HOST_API_URL_REQUIRED"), apiKey, accessTokenProvider: options.accessTokenProvider, allowInsecureLocalhost, organizationUnitId: options.organizationUnitId ?? env("VIRA_ORGANIZATION_UNIT_ID") });
22791
+ const client = new ViraClient({ baseUrl: required3(apiUrl, "VIRA_HOST_API_URL_REQUIRED"), apiKey, apiCredentialProvider: options.apiCredentialProvider ?? options.accessTokenProvider, allowInsecureLocalhost, organizationUnitId: options.organizationUnitId ?? env("VIRA_ORGANIZATION_UNIT_ID") });
22790
22792
  let scope;
22791
22793
  try {
22792
22794
  scope = await resolveOpenCodeCredentialScope(client, options, machine);
@@ -23130,7 +23132,7 @@ var v1Runtime = async (options) => {
23130
23132
  const machine = isOpenCodeMachineCredential(options, options.apiKey ?? env("VIRA_API_KEY"));
23131
23133
  const configuredTimeout = Number(options.timeoutMs ?? env("VIRA_HOST_TIMEOUT_MS") ?? 3e4);
23132
23134
  const timeoutMs = Number.isFinite(configuredTimeout) ? configuredTimeout : 3e4;
23133
- const client = new ViraClient({ baseUrl: required3(options.apiUrl ?? env("VIRA_CONTROL_URL") ?? env("VIRA_API_URL"), "VIRA_HOST_API_URL_REQUIRED"), apiKey: options.apiKey ?? env("VIRA_API_KEY"), accessTokenProvider: options.accessTokenProvider, timeoutMs, allowInsecureLocalhost: options.allowInsecureLocalhost ?? env("VIRA_ALLOW_INSECURE_LOCALHOST") === "true", organizationUnitId: options.organizationUnitId ?? env("VIRA_ORGANIZATION_UNIT_ID") });
23135
+ const client = new ViraClient({ baseUrl: required3(options.apiUrl ?? env("VIRA_CONTROL_URL") ?? env("VIRA_API_URL"), "VIRA_HOST_API_URL_REQUIRED"), apiKey: options.apiKey ?? env("VIRA_API_KEY"), apiCredentialProvider: options.apiCredentialProvider ?? options.accessTokenProvider, timeoutMs, allowInsecureLocalhost: options.allowInsecureLocalhost ?? env("VIRA_ALLOW_INSECURE_LOCALHOST") === "true", organizationUnitId: options.organizationUnitId ?? env("VIRA_ORGANIZATION_UNIT_ID") });
23134
23136
  let scope;
23135
23137
  try {
23136
23138
  scope = await resolveOpenCodeCredentialScope(client, options, machine);