ur-agent 1.85.1 → 1.85.2

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/cli.js CHANGED
@@ -108040,6 +108040,7 @@ __export(exports_model, {
108040
108040
  getDefaultOllamaModel: () => getDefaultOllamaModel,
108041
108041
  getDefaultMainLoopModelSetting: () => getDefaultMainLoopModelSetting,
108042
108042
  getDefaultMainLoopModel: () => getDefaultMainLoopModel,
108043
+ getConfiguredModelForActiveProvider: () => getConfiguredModelForActiveProvider,
108043
108044
  getCanonicalName: () => getCanonicalName,
108044
108045
  getBestModel: () => getBestModel,
108045
108046
  firstPartyNameToCanonical: () => firstPartyNameToCanonical,
@@ -108096,13 +108097,16 @@ function getUserSpecifiedModelSetting() {
108096
108097
  specifiedModel = modelOverride;
108097
108098
  } else {
108098
108099
  const settings = getSettings_DEPRECATED() || {};
108099
- specifiedModel = process.env.URHQ_MODEL || settings.model || undefined;
108100
+ specifiedModel = process.env.URHQ_MODEL || getConfiguredModelForActiveProvider(settings) || undefined;
108100
108101
  }
108101
108102
  if (specifiedModel && !isModelAllowed(specifiedModel)) {
108102
108103
  return;
108103
108104
  }
108104
108105
  return specifiedModel;
108105
108106
  }
108107
+ function getConfiguredModelForActiveProvider(settings) {
108108
+ return getActiveProviderSettings(settings).model;
108109
+ }
108106
108110
  function getMainLoopModel() {
108107
108111
  const model = getUserSpecifiedModelSetting();
108108
108112
  if (model !== undefined && model !== null) {
@@ -241368,7 +241372,7 @@ var init_metadata = __esm(() => {
241368
241372
  COMPOUND_OPERATOR_REGEX = /\s*(?:&&|\|\||[;|])\s*/;
241369
241373
  WHITESPACE_REGEX2 = /\s+/;
241370
241374
  getVersionBase = memoize_default(() => {
241371
- const match = "1.85.1".match(/^\d+\.\d+\.\d+(?:-[a-z]+)?/);
241375
+ const match = "1.85.2".match(/^\d+\.\d+\.\d+(?:-[a-z]+)?/);
241372
241376
  return match ? match[0] : undefined;
241373
241377
  });
241374
241378
  buildEnvContext = memoize_default(async () => {
@@ -241408,7 +241412,7 @@ var init_metadata = __esm(() => {
241408
241412
  isGithubAction: isEnvTruthy(process.env.GITHUB_ACTIONS),
241409
241413
  isURCodeAction: isEnvTruthy(process.env.UR_CODE_ACTION),
241410
241414
  isURAiAuth: isURAISubscriber(),
241411
- version: "1.85.1",
241415
+ version: "1.85.2",
241412
241416
  versionBase: getVersionBase(),
241413
241417
  buildTime: "",
241414
241418
  deploymentEnvironment: env2.detectDeploymentEnvironment(),
@@ -248847,7 +248851,7 @@ function getAttributionHeader(fingerprint) {
248847
248851
  if (!isAttributionHeaderEnabled()) {
248848
248852
  return "";
248849
248853
  }
248850
- const version2 = `${"1.85.1"}.${fingerprint}`;
248854
+ const version2 = `${"1.85.2"}.${fingerprint}`;
248851
248855
  const entrypoint = process.env.UR_CODE_ENTRYPOINT ?? "unknown";
248852
248856
  const cch = "";
248853
248857
  const workload = getWorkload();
@@ -292782,7 +292786,25 @@ var require_utils3 = __commonJS((exports, module) => {
292782
292786
  var isIPv4 = RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u);
292783
292787
  var isHexPair = RegExp.prototype.test.bind(/^[\da-f]{2}$/iu);
292784
292788
  var isUnreserved = RegExp.prototype.test.bind(/^[\da-z\-._~]$/iu);
292785
- var isPathCharacter = RegExp.prototype.test.bind(/^[\da-z\-._~!$&'()*+,;=:@/]$/iu);
292789
+ var isPathCharacter = RegExp.prototype.test.bind(/^[A-Za-z0-9\-._~!$&'()*+,;=:@/]$/u);
292790
+ var isQueryFragmentCharacter = RegExp.prototype.test.bind(/^[A-Za-z0-9\-._~!$&'()*+,;=:@/?]$/u);
292791
+ var isUserinfoCharacter = RegExp.prototype.test.bind(/^[A-Za-z0-9\-._~!$&'()*+,;=:]$/u);
292792
+ var BYTE_HEX = new Array(256);
292793
+ {
292794
+ const HEX_DIGITS = "0123456789ABCDEF";
292795
+ for (let i3 = 0;i3 < 256; i3++) {
292796
+ BYTE_HEX[i3] = "%" + HEX_DIGITS[i3 >> 4] + HEX_DIGITS[i3 & 15];
292797
+ }
292798
+ }
292799
+ function percentEncodeNonAscii(cp) {
292800
+ if (cp < 2048) {
292801
+ return BYTE_HEX[192 | cp >> 6] + BYTE_HEX[128 | cp & 63];
292802
+ }
292803
+ if (cp < 65536) {
292804
+ return BYTE_HEX[224 | cp >> 12] + BYTE_HEX[128 | cp >> 6 & 63] + BYTE_HEX[128 | cp & 63];
292805
+ }
292806
+ return BYTE_HEX[240 | cp >> 18] + BYTE_HEX[128 | cp >> 12 & 63] + BYTE_HEX[128 | cp >> 6 & 63] + BYTE_HEX[128 | cp & 63];
292807
+ }
292786
292808
  function stringArrayToHexStripped(input2) {
292787
292809
  let acc = "";
292788
292810
  let code = 0;
@@ -292807,91 +292829,122 @@ var require_utils3 = __commonJS((exports, module) => {
292807
292829
  }
292808
292830
  return acc;
292809
292831
  }
292832
+ var isHextet = RegExp.prototype.test.bind(/^[\dA-Fa-f]{1,4}$/);
292833
+ var isIPvFuture = RegExp.prototype.test.bind(/^[vV][\dA-Fa-f]+\.[A-Za-z\d\-._~!$&'()*+,;=:]+$/);
292834
+ var isZoneCharacter = RegExp.prototype.test.bind(/^[A-Za-z\d\-._~]$/);
292810
292835
  var nonSimpleDomain = RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);
292811
- function consumeIsZone(buffer) {
292812
- buffer.length = 0;
292813
- return true;
292814
- }
292815
- function consumeHextets(buffer, address, output2) {
292816
- if (buffer.length) {
292817
- const hex3 = stringArrayToHexStripped(buffer);
292818
- if (hex3 !== "") {
292819
- address.push(hex3);
292820
- } else {
292821
- output2.error = true;
292822
- return false;
292836
+ function isZoneIdentifier(zone) {
292837
+ if (zone.length === 0)
292838
+ return false;
292839
+ for (let i3 = 0;i3 < zone.length; i3++) {
292840
+ if (isZoneCharacter(zone[i3]))
292841
+ continue;
292842
+ if (zone[i3] === "%" && i3 + 2 < zone.length && isHexPair(zone.slice(i3 + 1, i3 + 3))) {
292843
+ i3 += 2;
292844
+ continue;
292823
292845
  }
292824
- buffer.length = 0;
292846
+ return false;
292825
292847
  }
292826
292848
  return true;
292827
292849
  }
292828
- function getIPV6(input2) {
292829
- let tokenCount = 0;
292830
- const output2 = { error: false, address: "", zone: "" };
292831
- const address = [];
292832
- const buffer = [];
292833
- let endipv6Encountered = false;
292834
- let endIpv6 = false;
292835
- let consume = consumeHextets;
292836
- for (let i3 = 0;i3 < input2.length; i3++) {
292837
- const cursor = input2[i3];
292838
- if (cursor === "[" || cursor === "]") {
292839
- continue;
292840
- }
292841
- if (cursor === ":") {
292842
- if (endipv6Encountered === true) {
292843
- endIpv6 = true;
292844
- }
292845
- if (!consume(buffer, address, output2)) {
292846
- break;
292847
- }
292848
- if (++tokenCount > 7) {
292849
- output2.error = true;
292850
- break;
292851
- }
292852
- if (i3 > 0 && input2[i3 - 1] === ":") {
292853
- endipv6Encountered = true;
292854
- }
292855
- address.push(":");
292856
- continue;
292857
- } else if (cursor === "%") {
292858
- if (!consume(buffer, address, output2)) {
292859
- break;
292860
- }
292861
- consume = consumeIsZone;
292862
- } else {
292863
- buffer.push(cursor);
292850
+ function compressIPv6ZeroRun(hextets) {
292851
+ let bestStart = -1;
292852
+ let bestLength = 0;
292853
+ let runStart = -1;
292854
+ let runLength = 0;
292855
+ for (let i3 = 0;i3 < hextets.length; i3++) {
292856
+ if (hextets[i3] === "0") {
292857
+ if (runStart === -1)
292858
+ runStart = i3;
292859
+ runLength++;
292860
+ if (runLength > bestLength) {
292861
+ bestLength = runLength;
292862
+ bestStart = runStart;
292863
+ }
292864
+ } else {
292865
+ runStart = -1;
292866
+ runLength = 0;
292867
+ }
292868
+ }
292869
+ if (bestLength < 2)
292870
+ return hextets.join(":");
292871
+ const head = hextets.slice(0, bestStart).join(":");
292872
+ const tail = hextets.slice(bestStart + bestLength).join(":");
292873
+ return head + "::" + tail;
292874
+ }
292875
+ function normalizeIPv6Address(input2) {
292876
+ const compression = input2.indexOf("::");
292877
+ if (compression !== -1 && input2.indexOf("::", compression + 1) !== -1)
292878
+ return;
292879
+ const left = compression === -1 ? input2.split(":") : input2.slice(0, compression).split(":");
292880
+ const right = compression === -1 ? [] : input2.slice(compression + 2).split(":");
292881
+ if (compression !== -1) {
292882
+ if (left.length === 1 && left[0] === "")
292883
+ left.length = 0;
292884
+ if (right.length === 1 && right[0] === "")
292885
+ right.length = 0;
292886
+ }
292887
+ const parts = left.concat(right);
292888
+ let hextetCount = 0;
292889
+ for (let i3 = 0;i3 < parts.length; i3++) {
292890
+ const part = parts[i3];
292891
+ if (part === "")
292892
+ return;
292893
+ if (part.indexOf(".") !== -1) {
292894
+ if (i3 !== parts.length - 1 || compression !== -1 && right.length === 0 || !isIPv4(part))
292895
+ return;
292896
+ hextetCount += 2;
292864
292897
  continue;
292865
292898
  }
292899
+ if (!isHextet(part))
292900
+ return;
292901
+ parts[i3] = parseInt(part, 16).toString(16);
292902
+ hextetCount++;
292866
292903
  }
292867
- if (buffer.length) {
292868
- if (consume === consumeIsZone) {
292869
- output2.zone = buffer.join("");
292870
- } else if (endIpv6) {
292871
- address.push(buffer.join(""));
292872
- } else {
292873
- address.push(stringArrayToHexStripped(buffer));
292874
- }
292904
+ if (compression === -1) {
292905
+ if (hextetCount !== 8)
292906
+ return;
292907
+ return compressIPv6ZeroRun(parts);
292875
292908
  }
292876
- output2.address = address.join("");
292877
- return output2;
292909
+ if (hextetCount >= 8)
292910
+ return;
292911
+ const expanded = parts.slice(0, left.length);
292912
+ for (let i3 = hextetCount;i3 < 8; i3++)
292913
+ expanded.push("0");
292914
+ for (let i3 = left.length;i3 < parts.length; i3++)
292915
+ expanded.push(parts[i3]);
292916
+ return compressIPv6ZeroRun(expanded);
292878
292917
  }
292879
292918
  function normalizeIPv6(host) {
292880
- if (findToken(host, ":") < 2) {
292881
- return { host, isIPV6: false };
292882
- }
292883
- const ipv63 = getIPV6(host);
292884
- if (!ipv63.error) {
292885
- let newHost = ipv63.address;
292886
- let escapedHost = ipv63.address;
292887
- if (ipv63.zone) {
292888
- newHost += "%" + ipv63.zone;
292889
- escapedHost += "%25" + ipv63.zone;
292890
- }
292891
- return { host: newHost, isIPV6: true, escapedHost };
292892
- } else {
292893
- return { host, isIPV6: false };
292894
- }
292919
+ const bracketed = host[0] === "[" && host[host.length - 1] === "]";
292920
+ const hasBracket = host[0] === "[" || host[host.length - 1] === "]";
292921
+ if (hasBracket && !bracketed)
292922
+ return { host, isIPV6: false, error: true };
292923
+ let input2 = bracketed ? host.slice(1, -1) : host;
292924
+ if (bracketed && isIPvFuture(input2)) {
292925
+ input2 = input2.toLowerCase();
292926
+ return { host: `[${input2}]`, escapedHost: input2, isIPV6: false, isIPVFuture: true };
292927
+ }
292928
+ if (findToken(input2, ":") < 2) {
292929
+ return { host, isIPV6: false, error: bracketed };
292930
+ }
292931
+ let zoneIdentifier = "";
292932
+ const zoneSeparator = input2.indexOf("%");
292933
+ if (zoneSeparator !== -1) {
292934
+ const separatorLength = input2.slice(zoneSeparator, zoneSeparator + 3).toLowerCase() === "%25" ? 3 : 1;
292935
+ zoneIdentifier = input2.slice(zoneSeparator + separatorLength);
292936
+ if (!isZoneIdentifier(zoneIdentifier))
292937
+ return { host, isIPV6: false, error: true };
292938
+ input2 = input2.slice(0, zoneSeparator);
292939
+ }
292940
+ const address = normalizeIPv6Address(input2);
292941
+ if (address === undefined)
292942
+ return { host, isIPV6: false, error: true };
292943
+ return {
292944
+ host: address + (zoneIdentifier ? "%" + zoneIdentifier : ""),
292945
+ escapedHost: address + (zoneIdentifier ? "%25" + zoneIdentifier : ""),
292946
+ isIPV6: true
292947
+ };
292895
292948
  }
292896
292949
  function findToken(str2, token) {
292897
292950
  let ind = 0;
@@ -293011,7 +293064,8 @@ var require_utils3 = __commonJS((exports, module) => {
293011
293064
  function normalizePathEncoding(input2) {
293012
293065
  let output2 = "";
293013
293066
  for (let i3 = 0;i3 < input2.length; i3++) {
293014
- if (input2[i3] === "%" && i3 + 2 < input2.length) {
293067
+ const ch2 = input2[i3];
293068
+ if (ch2 === "%" && i3 + 2 < input2.length) {
293015
293069
  const hex3 = input2.slice(i3 + 1, i3 + 3);
293016
293070
  if (isHexPair(hex3)) {
293017
293071
  const normalizedHex = hex3.toUpperCase();
@@ -293025,10 +293079,152 @@ var require_utils3 = __commonJS((exports, module) => {
293025
293079
  continue;
293026
293080
  }
293027
293081
  }
293028
- if (isPathCharacter(input2[i3])) {
293029
- output2 += input2[i3];
293082
+ if (isPathCharacter(ch2)) {
293083
+ output2 += ch2;
293084
+ } else {
293085
+ const code = input2.charCodeAt(i3);
293086
+ if (code < 128) {
293087
+ output2 += isEscapeSafe(code) ? ch2 : BYTE_HEX[code];
293088
+ } else if (code < 55296 || code > 57343) {
293089
+ output2 += percentEncodeNonAscii(code);
293090
+ } else if (code <= 56319 && i3 + 1 < input2.length) {
293091
+ const low = input2.charCodeAt(i3 + 1);
293092
+ if (low >= 56320 && low <= 57343) {
293093
+ output2 += percentEncodeNonAscii(65536 + (code - 55296 << 10) + (low - 56320));
293094
+ i3++;
293095
+ } else {
293096
+ output2 += percentEncodeNonAscii(65533);
293097
+ }
293098
+ } else {
293099
+ output2 += percentEncodeNonAscii(65533);
293100
+ }
293101
+ }
293102
+ }
293103
+ return output2;
293104
+ }
293105
+ function serializePathEncoding(input2, pathNoScheme = false) {
293106
+ let output2 = "";
293107
+ let firstSegment = pathNoScheme && input2[0] !== "/";
293108
+ for (let i3 = 0;i3 < input2.length; i3++) {
293109
+ const ch2 = input2[i3];
293110
+ if (ch2 === "%" && i3 + 2 < input2.length) {
293111
+ const hex3 = input2.slice(i3 + 1, i3 + 3);
293112
+ if (isHexPair(hex3)) {
293113
+ output2 += "%" + hex3.toUpperCase();
293114
+ i3 += 2;
293115
+ continue;
293116
+ }
293117
+ }
293118
+ if (ch2 === "/") {
293119
+ firstSegment = false;
293120
+ }
293121
+ if (isPathCharacter(ch2) && (ch2 !== ":" || !firstSegment)) {
293122
+ output2 += ch2;
293123
+ } else {
293124
+ const code = input2.charCodeAt(i3);
293125
+ if (code < 128) {
293126
+ output2 += BYTE_HEX[code];
293127
+ } else if (code < 55296 || code > 57343) {
293128
+ output2 += percentEncodeNonAscii(code);
293129
+ } else if (code <= 56319 && i3 + 1 < input2.length) {
293130
+ const low = input2.charCodeAt(i3 + 1);
293131
+ if (low >= 56320 && low <= 57343) {
293132
+ output2 += percentEncodeNonAscii(65536 + (code - 55296 << 10) + (low - 56320));
293133
+ i3++;
293134
+ } else {
293135
+ output2 += percentEncodeNonAscii(65533);
293136
+ }
293137
+ } else {
293138
+ output2 += percentEncodeNonAscii(65533);
293139
+ }
293140
+ }
293141
+ }
293142
+ return output2;
293143
+ }
293144
+ function encodeComponent(input2, isAllowed) {
293145
+ let output2 = "";
293146
+ for (let i3 = 0;i3 < input2.length; i3++) {
293147
+ const ch2 = input2[i3];
293148
+ if (ch2 === "%" && i3 + 2 < input2.length) {
293149
+ const hex3 = input2.slice(i3 + 1, i3 + 3);
293150
+ if (isHexPair(hex3)) {
293151
+ output2 += "%" + hex3.toUpperCase();
293152
+ i3 += 2;
293153
+ continue;
293154
+ }
293155
+ }
293156
+ if (isAllowed(ch2)) {
293157
+ output2 += ch2;
293158
+ } else {
293159
+ const code = input2.charCodeAt(i3);
293160
+ if (code < 128) {
293161
+ output2 += BYTE_HEX[code];
293162
+ } else if (code < 55296 || code > 57343) {
293163
+ output2 += percentEncodeNonAscii(code);
293164
+ } else if (code <= 56319 && i3 + 1 < input2.length) {
293165
+ const low = input2.charCodeAt(i3 + 1);
293166
+ if (low >= 56320 && low <= 57343) {
293167
+ output2 += percentEncodeNonAscii(65536 + (code - 55296 << 10) + (low - 56320));
293168
+ i3++;
293169
+ } else {
293170
+ output2 += percentEncodeNonAscii(65533);
293171
+ }
293172
+ } else {
293173
+ output2 += percentEncodeNonAscii(65533);
293174
+ }
293175
+ }
293176
+ }
293177
+ return output2;
293178
+ }
293179
+ function encodeUserinfo(input2) {
293180
+ return encodeComponent(input2, isUserinfoCharacter);
293181
+ }
293182
+ function encodeQuery(input2) {
293183
+ return encodeComponent(input2, isQueryFragmentCharacter);
293184
+ }
293185
+ function encodeFragment(input2) {
293186
+ return encodeComponent(input2, isQueryFragmentCharacter);
293187
+ }
293188
+ function isEscapeSafe(cp) {
293189
+ return cp >= 48 && cp <= 57 || cp >= 65 && cp <= 90 || cp >= 97 && cp <= 122 || cp === 42 || cp === 43 || cp === 45 || cp === 46 || cp === 47 || cp === 64 || cp === 95;
293190
+ }
293191
+ function normalizeQueryFragmentEncoding(input2) {
293192
+ let output2 = "";
293193
+ for (let i3 = 0;i3 < input2.length; i3++) {
293194
+ const ch2 = input2[i3];
293195
+ if (ch2 === "%" && i3 + 2 < input2.length) {
293196
+ const hex3 = input2.slice(i3 + 1, i3 + 3);
293197
+ if (isHexPair(hex3)) {
293198
+ const normalizedHex = hex3.toUpperCase();
293199
+ const decoded = String.fromCharCode(parseInt(normalizedHex, 16));
293200
+ if (isUnreserved(decoded)) {
293201
+ output2 += decoded;
293202
+ } else {
293203
+ output2 += "%" + normalizedHex;
293204
+ }
293205
+ i3 += 2;
293206
+ continue;
293207
+ }
293208
+ }
293209
+ if (isQueryFragmentCharacter(ch2)) {
293210
+ output2 += ch2;
293030
293211
  } else {
293031
- output2 += escape(input2[i3]);
293212
+ const code = input2.charCodeAt(i3);
293213
+ if (code < 128) {
293214
+ output2 += isEscapeSafe(code) ? ch2 : BYTE_HEX[code];
293215
+ } else if (code < 55296 || code > 57343) {
293216
+ output2 += percentEncodeNonAscii(code);
293217
+ } else if (code <= 56319 && i3 + 1 < input2.length) {
293218
+ const low = input2.charCodeAt(i3 + 1);
293219
+ if (low >= 56320 && low <= 57343) {
293220
+ output2 += percentEncodeNonAscii(65536 + (code - 55296 << 10) + (low - 56320));
293221
+ i3++;
293222
+ } else {
293223
+ output2 += percentEncodeNonAscii(65533);
293224
+ }
293225
+ } else {
293226
+ output2 += percentEncodeNonAscii(65533);
293227
+ }
293032
293228
  }
293033
293229
  }
293034
293230
  return output2;
@@ -293051,14 +293247,18 @@ var require_utils3 = __commonJS((exports, module) => {
293051
293247
  function recomposeAuthority(component) {
293052
293248
  const uriTokens = [];
293053
293249
  if (component.userinfo !== undefined) {
293054
- uriTokens.push(component.userinfo);
293250
+ uriTokens.push(encodeUserinfo(component.userinfo));
293055
293251
  uriTokens.push("@");
293056
293252
  }
293057
293253
  if (component.host !== undefined) {
293058
- let host = unescape(component.host);
293254
+ let host = component.host;
293059
293255
  if (!isIPv4(host)) {
293060
- const ipV6res = normalizeIPv6(host);
293061
- if (ipV6res.isIPV6 === true) {
293256
+ let ipV6res = normalizeIPv6(host);
293257
+ if (ipV6res.isIPV6 !== true && ipV6res.isIPVFuture !== true) {
293258
+ host = normalizePercentEncoding(host, true);
293259
+ ipV6res = normalizeIPv6(host);
293260
+ }
293261
+ if (ipV6res.isIPV6 === true || ipV6res.isIPVFuture === true) {
293062
293262
  host = `[${ipV6res.escapedHost}]`;
293063
293263
  } else {
293064
293264
  host = reescapeHostDelimiters(host, false);
@@ -293078,6 +293278,11 @@ var require_utils3 = __commonJS((exports, module) => {
293078
293278
  reescapeHostDelimiters,
293079
293279
  normalizePercentEncoding,
293080
293280
  normalizePathEncoding,
293281
+ serializePathEncoding,
293282
+ normalizeQueryFragmentEncoding,
293283
+ encodeUserinfo,
293284
+ encodeQuery,
293285
+ encodeFragment,
293081
293286
  escapePreservingEscapes,
293082
293287
  removeDotSegments,
293083
293288
  isIPv4,
@@ -293090,7 +293295,7 @@ var require_utils3 = __commonJS((exports, module) => {
293090
293295
  // node_modules/fast-uri/lib/schemes.js
293091
293296
  var require_schemes2 = __commonJS((exports, module) => {
293092
293297
  var { isUUID } = require_utils3();
293093
- var URN_REG = /([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu;
293298
+ var URN_REG = /^([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-./:;=@]|%[\da-f]{2})+)$/iu;
293094
293299
  var supportedSchemeNames = [
293095
293300
  "http",
293096
293301
  "https",
@@ -293145,9 +293350,10 @@ var require_schemes2 = __commonJS((exports, module) => {
293145
293350
  wsComponent.secure = undefined;
293146
293351
  }
293147
293352
  if (wsComponent.resourceName) {
293148
- const [path13, query] = wsComponent.resourceName.split("?");
293353
+ const queryIndex = wsComponent.resourceName.indexOf("?");
293354
+ const path13 = queryIndex === -1 ? wsComponent.resourceName : wsComponent.resourceName.slice(0, queryIndex);
293149
293355
  wsComponent.path = path13 && path13 !== "/" ? path13 : undefined;
293150
- wsComponent.query = query;
293356
+ wsComponent.query = queryIndex === -1 ? undefined : wsComponent.resourceName.slice(queryIndex + 1);
293151
293357
  wsComponent.resourceName = undefined;
293152
293358
  }
293153
293359
  wsComponent.fragment = undefined;
@@ -293159,7 +293365,7 @@ var require_schemes2 = __commonJS((exports, module) => {
293159
293365
  return urnComponent;
293160
293366
  }
293161
293367
  const matches = urnComponent.path.match(URN_REG);
293162
- if (matches) {
293368
+ if (matches && matches[0] === urnComponent.path) {
293163
293369
  const scheme = options2.scheme || urnComponent.scheme || "urn";
293164
293370
  urnComponent.nid = matches[1].toLowerCase();
293165
293371
  urnComponent.nss = matches[2];
@@ -293263,8 +293469,17 @@ var require_schemes2 = __commonJS((exports, module) => {
293263
293469
 
293264
293470
  // node_modules/fast-uri/index.js
293265
293471
  var require_fast_uri2 = __commonJS((exports, module) => {
293266
- var { normalizeIPv6, removeDotSegments, recomposeAuthority, normalizePercentEncoding, normalizePathEncoding, escapePreservingEscapes, reescapeHostDelimiters, isIPv4, nonSimpleDomain } = require_utils3();
293472
+ var { normalizeIPv6, removeDotSegments, recomposeAuthority, normalizePercentEncoding, normalizePathEncoding, serializePathEncoding, normalizeQueryFragmentEncoding, encodeQuery, encodeFragment, reescapeHostDelimiters, isIPv4, nonSimpleDomain } = require_utils3();
293267
293473
  var { SCHEMES, getSchemeHandler } = require_schemes2();
293474
+ var VALID_SCHEME = /^[A-Za-z][A-Za-z0-9+.-]*$/u;
293475
+ var MALFORMED_SCHEME_ERROR = "URI scheme is malformed.";
293476
+ function decodeValidScheme(scheme) {
293477
+ const decodedScheme = unescape(String(scheme));
293478
+ if (!VALID_SCHEME.test(decodedScheme)) {
293479
+ throw new TypeError(MALFORMED_SCHEME_ERROR);
293480
+ }
293481
+ return decodedScheme;
293482
+ }
293268
293483
  function normalize8(uri, options2) {
293269
293484
  if (typeof uri === "string") {
293270
293485
  uri = normalizeString(uri, options2);
@@ -293275,12 +293490,34 @@ var require_fast_uri2 = __commonJS((exports, module) => {
293275
293490
  }
293276
293491
  function resolve17(baseURI, relativeURI, options2) {
293277
293492
  const schemelessOptions = options2 ? Object.assign({ scheme: "null" }, options2) : { scheme: "null" };
293278
- const { parsed: baseParsed, malformedAuthorityOrPort: baseMalformed } = parseWithStatus(baseURI, schemelessOptions);
293279
- const { parsed: relativeParsed, malformedAuthorityOrPort: relativeMalformed } = parseWithStatus(relativeURI, schemelessOptions);
293280
- if (baseMalformed || relativeMalformed) {
293493
+ const {
293494
+ parsed: baseParsed,
293495
+ malformedAuthorityOrPort: baseMalformed,
293496
+ malformedPercentEncoding: baseMalformedPercentEncoding,
293497
+ malformedSchemeSpecific: baseMalformedSchemeSpecific,
293498
+ malformedHost: baseMalformedHost,
293499
+ malformedScheme: baseMalformedScheme
293500
+ } = parseWithStatus(baseURI, schemelessOptions);
293501
+ const {
293502
+ parsed: relativeParsed,
293503
+ malformedAuthorityOrPort: relativeMalformed,
293504
+ malformedPercentEncoding: relativeMalformedPercentEncoding,
293505
+ malformedSchemeSpecific: relativeMalformedSchemeSpecific,
293506
+ malformedHost: relativeMalformedHost,
293507
+ malformedScheme: relativeMalformedScheme
293508
+ } = parseWithStatus(relativeURI, schemelessOptions);
293509
+ if (baseMalformed || relativeMalformed || baseMalformedPercentEncoding || relativeMalformedPercentEncoding || baseMalformedSchemeSpecific || relativeMalformedSchemeSpecific || baseMalformedHost || relativeMalformedHost || baseMalformedScheme || relativeMalformedScheme) {
293281
293510
  throw new Error(baseParsed.error || relativeParsed.error || "URI is malformed.");
293282
293511
  }
293283
293512
  const resolved = resolveComponent(baseParsed, relativeParsed, schemelessOptions, true);
293513
+ const resolvedSchemeHandler = getSchemeHandler(options2 && options2.scheme || resolved.scheme);
293514
+ const resolvedHost = resolved.host;
293515
+ const resolvedHostIsIP = resolvedHost !== undefined && resolvedHost !== "" && (isIPv4(resolvedHost) || normalizeIPv6(resolvedHost).isIPV6);
293516
+ canonicalizeHost2(resolved, options2 || {}, resolvedSchemeHandler, resolvedHostIsIP);
293517
+ const encodedASCIIHost = resolvedHost && resolvedHost.indexOf("%") !== -1 && !/\P{ASCII}/u.test(resolvedHost);
293518
+ if (resolved.error && !encodedASCIIHost) {
293519
+ throw new Error(resolved.error);
293520
+ }
293284
293521
  schemelessOptions.skipEscape = true;
293285
293522
  return serialize2(resolved, schemelessOptions);
293286
293523
  }
@@ -293340,7 +293577,7 @@ var require_fast_uri2 = __commonJS((exports, module) => {
293340
293577
  function equal(uriA, uriB, options2) {
293341
293578
  const normalizedA = normalizeComparableURI(uriA, options2);
293342
293579
  const normalizedB = normalizeComparableURI(uriB, options2);
293343
- return normalizedA !== undefined && normalizedB !== undefined && normalizedA.toLowerCase() === normalizedB.toLowerCase();
293580
+ return normalizedA !== undefined && normalizedB !== undefined && normalizedA === normalizedB;
293344
293581
  }
293345
293582
  function serialize2(cmpts, opts) {
293346
293583
  const component = {
@@ -293361,20 +293598,23 @@ var require_fast_uri2 = __commonJS((exports, module) => {
293361
293598
  };
293362
293599
  const options2 = Object.assign({}, opts);
293363
293600
  const uriTokens = [];
293601
+ if (component.scheme) {
293602
+ component.scheme = decodeValidScheme(component.scheme);
293603
+ }
293364
293604
  const schemeHandler = getSchemeHandler(options2.scheme || component.scheme);
293365
293605
  if (schemeHandler && schemeHandler.serialize)
293366
293606
  schemeHandler.serialize(component, options2);
293607
+ const hasAuthority = component.userinfo !== undefined || component.host !== undefined || component.port !== undefined;
293608
+ const pathNoScheme = !options2.skipEscape && component.scheme === undefined && !hasAuthority;
293367
293609
  if (component.path !== undefined) {
293368
293610
  if (!options2.skipEscape) {
293369
- component.path = escapePreservingEscapes(component.path);
293370
- if (component.scheme !== undefined) {
293371
- component.path = component.path.split("%3A").join(":");
293372
- }
293611
+ component.path = serializePathEncoding(component.path, pathNoScheme);
293373
293612
  } else {
293374
293613
  component.path = normalizePercentEncoding(component.path);
293375
293614
  }
293376
293615
  }
293377
293616
  if (options2.reference !== "suffix" && component.scheme) {
293617
+ component.scheme = decodeValidScheme(component.scheme);
293378
293618
  uriTokens.push(component.scheme, ":");
293379
293619
  }
293380
293620
  const authority = recomposeAuthority(component);
@@ -293392,16 +293632,19 @@ var require_fast_uri2 = __commonJS((exports, module) => {
293392
293632
  if (!options2.absolutePath && (!schemeHandler || !schemeHandler.absolutePath)) {
293393
293633
  s = removeDotSegments(s);
293394
293634
  }
293635
+ if (pathNoScheme) {
293636
+ s = serializePathEncoding(s, true);
293637
+ }
293395
293638
  if (authority === undefined && s[0] === "/" && s[1] === "/") {
293396
293639
  s = "/%2F" + s.slice(2);
293397
293640
  }
293398
293641
  uriTokens.push(s);
293399
293642
  }
293400
293643
  if (component.query !== undefined) {
293401
- uriTokens.push("?", component.query);
293644
+ uriTokens.push("?", encodeQuery(component.query));
293402
293645
  }
293403
293646
  if (component.fragment !== undefined) {
293404
- uriTokens.push("#", component.fragment);
293647
+ uriTokens.push("#", encodeFragment(component.fragment));
293405
293648
  }
293406
293649
  return uriTokens.join("");
293407
293650
  }
@@ -293417,6 +293660,33 @@ var require_fast_uri2 = __commonJS((exports, module) => {
293417
293660
  }
293418
293661
  return;
293419
293662
  }
293663
+ function hasMalformedPercentEncoding(component) {
293664
+ if (component === undefined)
293665
+ return false;
293666
+ let percent = component.indexOf("%");
293667
+ while (percent !== -1) {
293668
+ if (percent + 2 >= component.length || !/^[\da-f]{2}$/iu.test(component.slice(percent + 1, percent + 3))) {
293669
+ return true;
293670
+ }
293671
+ percent = component.indexOf("%", percent + 3);
293672
+ }
293673
+ return false;
293674
+ }
293675
+ function hasMalformedComponentPercentEncoding(matches) {
293676
+ const host = matches[4];
293677
+ return hasMalformedPercentEncoding(matches[3]) || host !== undefined && !(host[0] === "[" && host[host.length - 1] === "]") && hasMalformedPercentEncoding(host) || hasMalformedPercentEncoding(matches[6]) || hasMalformedPercentEncoding(matches[7]) || hasMalformedPercentEncoding(matches[8]);
293678
+ }
293679
+ function canonicalizeHost2(parsed, options2, schemeHandler, isIP6) {
293680
+ if (!options2.unicodeSupport && (!schemeHandler || !schemeHandler.unicodeSupport) && parsed.host && parsed.host[0] !== "[" && (options2.domainHost || schemeHandler && schemeHandler.domainHost) && isIP6 === false && nonSimpleDomain(parsed.host)) {
293681
+ try {
293682
+ parsed.host = new URL("http://" + parsed.host).hostname;
293683
+ } catch (e) {
293684
+ parsed.error = parsed.error || "Host's domain name can not be converted to ASCII: " + e;
293685
+ return true;
293686
+ }
293687
+ }
293688
+ return false;
293689
+ }
293420
293690
  function parseWithStatus(uri, opts) {
293421
293691
  const options2 = Object.assign({}, opts);
293422
293692
  const parsed = {
@@ -293429,6 +293699,11 @@ var require_fast_uri2 = __commonJS((exports, module) => {
293429
293699
  fragment: undefined
293430
293700
  };
293431
293701
  let malformedAuthorityOrPort = false;
293702
+ let malformedPercentEncoding = false;
293703
+ let malformedSchemeSpecific = false;
293704
+ let malformedHost = false;
293705
+ let malformedIPLiteral = false;
293706
+ let malformedScheme = false;
293432
293707
  let isIP6 = false;
293433
293708
  if (options2.reference === "suffix") {
293434
293709
  if (options2.scheme) {
@@ -293465,6 +293740,19 @@ var require_fast_uri2 = __commonJS((exports, module) => {
293465
293740
  parsed.path = matches[6] || "";
293466
293741
  parsed.query = matches[7];
293467
293742
  parsed.fragment = matches[8];
293743
+ if (parsed.scheme !== undefined) {
293744
+ const decodedScheme = unescape(parsed.scheme);
293745
+ if (VALID_SCHEME.test(decodedScheme)) {
293746
+ parsed.scheme = decodedScheme.toLowerCase();
293747
+ } else {
293748
+ parsed.error = parsed.error || MALFORMED_SCHEME_ERROR;
293749
+ malformedScheme = true;
293750
+ }
293751
+ }
293752
+ malformedPercentEncoding = hasMalformedComponentPercentEncoding(matches);
293753
+ if (malformedPercentEncoding) {
293754
+ parsed.error = parsed.error || "URI contains malformed percent-encoding.";
293755
+ }
293468
293756
  if (isNaN(parsed.port)) {
293469
293757
  parsed.port = matches[5];
293470
293758
  }
@@ -293476,9 +293764,15 @@ var require_fast_uri2 = __commonJS((exports, module) => {
293476
293764
  if (parsed.host) {
293477
293765
  const ipv4result = isIPv4(parsed.host);
293478
293766
  if (ipv4result === false) {
293767
+ const bracketedIPLiteral = parsed.host[0] === "[" && parsed.host[parsed.host.length - 1] === "]";
293479
293768
  const ipv6result = normalizeIPv6(parsed.host);
293480
- parsed.host = ipv6result.host.toLowerCase();
293481
- isIP6 = ipv6result.isIPV6;
293769
+ isIP6 = ipv6result.isIPV6 || ipv6result.isIPVFuture === true;
293770
+ malformedIPLiteral = bracketedIPLiteral && ipv6result.error === true;
293771
+ parsed.host = isIP6 ? ipv6result.host : ipv6result.host.toLowerCase();
293772
+ if (malformedIPLiteral) {
293773
+ parsed.error = parsed.error || "URI host is malformed.";
293774
+ malformedAuthorityOrPort = true;
293775
+ }
293482
293776
  } else {
293483
293777
  isIP6 = true;
293484
293778
  }
@@ -293496,42 +293790,34 @@ var require_fast_uri2 = __commonJS((exports, module) => {
293496
293790
  parsed.error = parsed.error || "URI is not a " + options2.reference + " reference.";
293497
293791
  }
293498
293792
  const schemeHandler = getSchemeHandler(options2.scheme || parsed.scheme);
293499
- if (!options2.unicodeSupport && (!schemeHandler || !schemeHandler.unicodeSupport)) {
293500
- if (parsed.host && (options2.domainHost || schemeHandler && schemeHandler.domainHost) && isIP6 === false && nonSimpleDomain(parsed.host)) {
293501
- try {
293502
- parsed.host = new URL("http://" + parsed.host).hostname;
293503
- } catch (e) {
293504
- parsed.error = parsed.error || "Host's domain name can not be converted to ASCII: " + e;
293505
- }
293506
- }
293507
- }
293793
+ malformedHost = canonicalizeHost2(parsed, options2, schemeHandler, isIP6);
293508
293794
  if (!schemeHandler || schemeHandler && !schemeHandler.skipNormalize) {
293509
293795
  if (uri.indexOf("%") !== -1) {
293510
- if (parsed.scheme !== undefined) {
293511
- parsed.scheme = unescape(parsed.scheme);
293512
- }
293513
- if (parsed.host !== undefined) {
293514
- parsed.host = reescapeHostDelimiters(unescape(parsed.host), isIP6);
293796
+ if (parsed.host !== undefined && !malformedIPLiteral) {
293797
+ const host = isIP6 ? parsed.host : normalizePercentEncoding(parsed.host, true);
293798
+ parsed.host = reescapeHostDelimiters(host, isIP6);
293515
293799
  }
293516
293800
  }
293517
293801
  if (parsed.path) {
293518
293802
  parsed.path = normalizePathEncoding(parsed.path);
293519
293803
  }
293804
+ if (parsed.query) {
293805
+ parsed.query = normalizeQueryFragmentEncoding(parsed.query);
293806
+ }
293520
293807
  if (parsed.fragment) {
293521
- try {
293522
- parsed.fragment = encodeURI(decodeURIComponent(parsed.fragment));
293523
- } catch {
293524
- parsed.error = parsed.error || "URI malformed";
293525
- }
293808
+ parsed.fragment = normalizeQueryFragmentEncoding(parsed.fragment);
293526
293809
  }
293527
293810
  }
293528
293811
  if (schemeHandler && schemeHandler.parse) {
293529
293812
  schemeHandler.parse(parsed, options2);
293813
+ if (schemeHandler === SCHEMES.urn && parsed.nid === undefined) {
293814
+ malformedSchemeSpecific = true;
293815
+ }
293530
293816
  }
293531
293817
  } else {
293532
293818
  parsed.error = parsed.error || "URI can not be parsed.";
293533
293819
  }
293534
- return { parsed, malformedAuthorityOrPort };
293820
+ return { parsed, malformedAuthorityOrPort, malformedPercentEncoding, malformedSchemeSpecific, malformedHost, malformedScheme };
293535
293821
  }
293536
293822
  function parse8(uri, opts) {
293537
293823
  return parseWithStatus(uri, opts).parsed;
@@ -293540,20 +293826,28 @@ var require_fast_uri2 = __commonJS((exports, module) => {
293540
293826
  return normalizeStringWithStatus(uri, opts).normalized;
293541
293827
  }
293542
293828
  function normalizeStringWithStatus(uri, opts) {
293543
- const { parsed, malformedAuthorityOrPort } = parseWithStatus(uri, opts);
293829
+ const { parsed, malformedAuthorityOrPort, malformedPercentEncoding, malformedSchemeSpecific, malformedHost, malformedScheme } = parseWithStatus(uri, opts);
293544
293830
  return {
293545
- normalized: malformedAuthorityOrPort ? uri : serialize2(parsed, opts),
293546
- malformedAuthorityOrPort
293831
+ normalized: malformedAuthorityOrPort || malformedPercentEncoding || malformedSchemeSpecific || malformedHost || malformedScheme ? uri : serialize2(parsed, opts),
293832
+ malformedAuthorityOrPort,
293833
+ malformedPercentEncoding,
293834
+ malformedSchemeSpecific,
293835
+ malformedHost,
293836
+ malformedScheme
293547
293837
  };
293548
293838
  }
293549
293839
  function normalizeComparableURI(uri, opts) {
293550
- if (typeof uri === "string") {
293551
- const { normalized, malformedAuthorityOrPort } = normalizeStringWithStatus(uri, opts);
293552
- return malformedAuthorityOrPort ? undefined : normalized;
293840
+ if (typeof uri !== "string" && typeof uri !== "object") {
293841
+ return;
293553
293842
  }
293554
- if (typeof uri === "object") {
293555
- return serialize2(uri, opts);
293843
+ let value;
293844
+ try {
293845
+ value = typeof uri === "string" ? uri : serialize2(uri, opts);
293846
+ } catch {
293847
+ return;
293556
293848
  }
293849
+ const { normalized, malformedAuthorityOrPort, malformedPercentEncoding, malformedSchemeSpecific, malformedHost, malformedScheme } = normalizeStringWithStatus(value, opts);
293850
+ return malformedAuthorityOrPort || malformedPercentEncoding || malformedSchemeSpecific || malformedHost || malformedScheme ? undefined : normalized;
293557
293851
  }
293558
293852
  var fastUri = {
293559
293853
  SCHEMES,
@@ -314952,7 +315246,7 @@ function getTelemetryAttributes() {
314952
315246
  attributes["session.id"] = sessionId;
314953
315247
  }
314954
315248
  if (shouldIncludeAttribute("OTEL_METRICS_INCLUDE_VERSION")) {
314955
- attributes["app.version"] = "1.85.1";
315249
+ attributes["app.version"] = "1.85.2";
314956
315250
  }
314957
315251
  const oauthAccount = getOauthAccountInfo();
314958
315252
  if (oauthAccount) {
@@ -317983,7 +318277,7 @@ var require_src3 = __commonJS((exports) => {
317983
318277
  function getInstruments() {
317984
318278
  if (instruments)
317985
318279
  return instruments;
317986
- const meter = import_api2.metrics.getMeter("ur-agent.gen_ai", "1.85.1");
318280
+ const meter = import_api2.metrics.getMeter("ur-agent.gen_ai", "1.85.2");
317987
318281
  instruments = {
317988
318282
  operationDuration: meter.createHistogram("gen_ai.client.operation.duration", {
317989
318283
  description: "GenAI operation duration.",
@@ -318081,7 +318375,7 @@ function genAiAgentAttributes() {
318081
318375
  "gen_ai.operation.name": GEN_AI_OPERATION_INVOKE_AGENT,
318082
318376
  "gen_ai.provider.name": "ur",
318083
318377
  "gen_ai.agent.name": "UR-Nexus",
318084
- "gen_ai.agent.version": "1.85.1"
318378
+ "gen_ai.agent.version": "1.85.2"
318085
318379
  };
318086
318380
  }
318087
318381
  function genAiWorkflowAttributes(workflowName, workflowRunId) {
@@ -318102,7 +318396,7 @@ function genAiWorkflowAttributes(workflowName, workflowRunId) {
318102
318396
  function startGenAiWorkflowSpan(workflowName, workflowRunId) {
318103
318397
  const attributes = genAiWorkflowAttributes(workflowName, workflowRunId);
318104
318398
  const name = typeof attributes["gen_ai.workflow.name"] === "string" ? `invoke_workflow ${attributes["gen_ai.workflow.name"]}` : GEN_AI_OPERATION_INVOKE_WORKFLOW;
318105
- return import_api2.trace.getTracer("ur-agent.gen_ai", "1.85.1").startSpan(name, { kind: import_api2.SpanKind.INTERNAL, attributes });
318399
+ return import_api2.trace.getTracer("ur-agent.gen_ai", "1.85.2").startSpan(name, { kind: import_api2.SpanKind.INTERNAL, attributes });
318106
318400
  }
318107
318401
  function endGenAiWorkflowSpan(span, options2 = {}) {
318108
318402
  try {
@@ -318140,7 +318434,7 @@ function startGenAiMemorySpan(operation, options2 = {}) {
318140
318434
  if (options2.recordCount !== undefined && Number.isInteger(options2.recordCount) && options2.recordCount >= 0) {
318141
318435
  attributes["gen_ai.memory.record.count"] = options2.recordCount;
318142
318436
  }
318143
- return import_api2.trace.getTracer("ur-agent.gen_ai", "1.85.1").startSpan(operation, { kind: import_api2.SpanKind.INTERNAL, attributes });
318437
+ return import_api2.trace.getTracer("ur-agent.gen_ai", "1.85.2").startSpan(operation, { kind: import_api2.SpanKind.INTERNAL, attributes });
318144
318438
  }
318145
318439
  function endGenAiMemorySpan(span, options2 = {}) {
318146
318440
  try {
@@ -332547,7 +332841,7 @@ async function createRuntime() {
332547
332841
  bootstrapTelemetry();
332548
332842
  const resource = defaultResource().merge(detectResources({ detectors: [envDetector] })).merge(resourceFromAttributes({
332549
332843
  [import_semantic_conventions6.ATTR_SERVICE_NAME]: "ur-agent",
332550
- [import_semantic_conventions6.ATTR_SERVICE_VERSION]: "1.85.1"
332844
+ [import_semantic_conventions6.ATTR_SERVICE_VERSION]: "1.85.2"
332551
332845
  }));
332552
332846
  const tracerProvider = exporters.traces.length > 0 ? new BasicTracerProvider({
332553
332847
  resource,
@@ -332580,11 +332874,11 @@ async function createRuntime() {
332580
332874
  setMeterProvider(meterProvider);
332581
332875
  setLoggerProvider(loggerProvider);
332582
332876
  if (meterProvider) {
332583
- const meter = meterProvider.getMeter("ur-agent", "1.85.1");
332877
+ const meter = meterProvider.getMeter("ur-agent", "1.85.2");
332584
332878
  setMeter(meter, (name, options2) => meter.createCounter(name, options2));
332585
332879
  }
332586
332880
  if (loggerProvider) {
332587
- setEventLogger(loggerProvider.getLogger("ur-agent.events", "1.85.1"));
332881
+ setEventLogger(loggerProvider.getLogger("ur-agent.events", "1.85.2"));
332588
332882
  }
332589
332883
  if (!cleanupRegistered4) {
332590
332884
  cleanupRegistered4 = true;
@@ -333133,7 +333427,7 @@ function isAnyTracingEnabled() {
333133
333427
  return isTelemetryEnabled() || isEnhancedTelemetryEnabled() || isBetaTracingEnabled();
333134
333428
  }
333135
333429
  function getTracer() {
333136
- return import_api32.trace.getTracer("ur-agent.gen_ai", "1.85.1");
333430
+ return import_api32.trace.getTracer("ur-agent.gen_ai", "1.85.2");
333137
333431
  }
333138
333432
  function createSpanAttributes(spanType, customAttributes = {}) {
333139
333433
  const baseAttributes = getTelemetryAttributes();
@@ -345139,7 +345433,7 @@ function computeFingerprint(messageText2, version2) {
345139
345433
  }
345140
345434
  function computeFingerprintFromMessages(messages) {
345141
345435
  const firstMessageText = extractFirstMessageText(messages);
345142
- return computeFingerprint(firstMessageText, "1.85.1");
345436
+ return computeFingerprint(firstMessageText, "1.85.2");
345143
345437
  }
345144
345438
  var FINGERPRINT_SALT = "59cf53e54c78";
345145
345439
  var init_fingerprint = () => {};
@@ -345181,7 +345475,7 @@ async function sideQuery(opts) {
345181
345475
  betas.push(STRUCTURED_OUTPUTS_BETA_HEADER);
345182
345476
  }
345183
345477
  const messageText2 = extractFirstUserMessageText(messages);
345184
- const fingerprint = computeFingerprint(messageText2, "1.85.1");
345478
+ const fingerprint = computeFingerprint(messageText2, "1.85.2");
345185
345479
  const attributionHeader = getAttributionHeader(fingerprint);
345186
345480
  const systemBlocks = [
345187
345481
  attributionHeader ? { type: "text", text: attributionHeader } : null,
@@ -347288,7 +347582,7 @@ var init_user = __esm(() => {
347288
347582
  deviceId,
347289
347583
  sessionId: getSessionId(),
347290
347584
  email: getEmail(),
347291
- appVersion: "1.85.1",
347585
+ appVersion: "1.85.2",
347292
347586
  platform: getHostPlatformForAnalytics(),
347293
347587
  organizationUuid,
347294
347588
  accountUuid,
@@ -348048,7 +348342,7 @@ var init_growthbook_experiment_event = __esm(() => {
348048
348342
 
348049
348343
  // src/utils/userAgent.ts
348050
348344
  function getURCodeUserAgent() {
348051
- return `ur/${"1.85.1"}`;
348345
+ return `ur/${"1.85.2"}`;
348052
348346
  }
348053
348347
 
348054
348348
  // src/services/analytics/firstPartyEventLoggingExporter.ts
@@ -348704,7 +348998,7 @@ function initialize1PEventLogging() {
348704
348998
  const platform4 = getPlatform();
348705
348999
  const attributes = {
348706
349000
  [import_semantic_conventions7.ATTR_SERVICE_NAME]: "ur",
348707
- [import_semantic_conventions7.ATTR_SERVICE_VERSION]: "1.85.1"
349001
+ [import_semantic_conventions7.ATTR_SERVICE_VERSION]: "1.85.2"
348708
349002
  };
348709
349003
  if (platform4 === "wsl") {
348710
349004
  const wslVersion = getWslVersion();
@@ -348732,7 +349026,7 @@ function initialize1PEventLogging() {
348732
349026
  })
348733
349027
  ]
348734
349028
  });
348735
- firstPartyEventLogger = firstPartyEventLoggerProvider.getLogger("com.urhq.ur.events", "1.85.1");
349029
+ firstPartyEventLogger = firstPartyEventLoggerProvider.getLogger("com.urhq.ur.events", "1.85.2");
348736
349030
  }
348737
349031
  async function reinitialize1PEventLoggingIfConfigChanged() {
348738
349032
  if (!is1PEventLoggingEnabled() || !firstPartyEventLoggerProvider) {
@@ -352034,9 +352328,9 @@ async function assertMinVersion() {
352034
352328
  if (false) {}
352035
352329
  try {
352036
352330
  const versionConfig = await getDynamicConfig_BLOCKS_ON_INIT("tengu_version_config", { minVersion: "0.0.0" });
352037
- if (versionConfig.minVersion && lt("1.85.1", versionConfig.minVersion)) {
352331
+ if (versionConfig.minVersion && lt("1.85.2", versionConfig.minVersion)) {
352038
352332
  console.error(`
352039
- It looks like your version of UR (${"1.85.1"}) needs an update.
352333
+ It looks like your version of UR (${"1.85.2"}) needs an update.
352040
352334
  A newer version (${versionConfig.minVersion} or higher) is required to continue.
352041
352335
 
352042
352336
  To update, please run:
@@ -352252,7 +352546,7 @@ async function installGlobalPackage(specificVersion) {
352252
352546
  logError2(new AutoUpdaterError("Another process is currently installing an update"));
352253
352547
  logEvent("tengu_auto_updater_lock_contention", {
352254
352548
  pid: process.pid,
352255
- currentVersion: "1.85.1"
352549
+ currentVersion: "1.85.2"
352256
352550
  });
352257
352551
  return "in_progress";
352258
352552
  }
@@ -352261,7 +352555,7 @@ async function installGlobalPackage(specificVersion) {
352261
352555
  if (!env2.isRunningWithBun() && env2.isNpmFromWindowsPath()) {
352262
352556
  logError2(new Error("Windows NPM detected in WSL environment"));
352263
352557
  logEvent("tengu_auto_updater_windows_npm_in_wsl", {
352264
- currentVersion: "1.85.1"
352558
+ currentVersion: "1.85.2"
352265
352559
  });
352266
352560
  console.error(`
352267
352561
  Error: Windows NPM detected in WSL
@@ -352796,7 +353090,7 @@ function detectLinuxGlobPatternWarnings() {
352796
353090
  }
352797
353091
  async function getDoctorDiagnostic() {
352798
353092
  const installationType = await getCurrentInstallationType();
352799
- const version2 = typeof MACRO !== "undefined" ? "1.85.1" : "unknown";
353093
+ const version2 = typeof MACRO !== "undefined" ? "1.85.2" : "unknown";
352800
353094
  const installationPath = await getInstallationPath();
352801
353095
  const invokedBinary = getInvokedBinary();
352802
353096
  const multipleInstallations = await detectMultipleInstallations();
@@ -353863,7 +354157,7 @@ function getInstallationEnv() {
353863
354157
  return;
353864
354158
  }
353865
354159
  function getURCodeVersion() {
353866
- return "1.85.1";
354160
+ return "1.85.2";
353867
354161
  }
353868
354162
  async function getInstalledVSCodeExtensionVersion(command) {
353869
354163
  const { stdout } = await execFileNoThrow(command, ["--list-extensions", "--show-versions"], {
@@ -355344,8 +355638,8 @@ async function updateLatest(channelOrVersion, forceReinstall = false) {
355344
355638
  const maxVersion = await getMaxVersion();
355345
355639
  if (maxVersion && gt(version2, maxVersion)) {
355346
355640
  logForDebugging(`Native installer: maxVersion ${maxVersion} is set, capping update from ${version2} to ${maxVersion}`);
355347
- if (gte("1.85.1", maxVersion)) {
355348
- logForDebugging(`Native installer: current version ${"1.85.1"} is already at or above maxVersion ${maxVersion}, skipping update`);
355641
+ if (gte("1.85.2", maxVersion)) {
355642
+ logForDebugging(`Native installer: current version ${"1.85.2"} is already at or above maxVersion ${maxVersion}, skipping update`);
355349
355643
  logEvent("tengu_native_update_skipped_max_version", {
355350
355644
  latency_ms: Date.now() - startTime,
355351
355645
  max_version: maxVersion,
@@ -355356,7 +355650,7 @@ async function updateLatest(channelOrVersion, forceReinstall = false) {
355356
355650
  version2 = maxVersion;
355357
355651
  }
355358
355652
  }
355359
- if (!forceReinstall && version2 === "1.85.1" && await versionIsAvailable(version2) && await isPossibleURBinary(executablePath)) {
355653
+ if (!forceReinstall && version2 === "1.85.2" && await versionIsAvailable(version2) && await isPossibleURBinary(executablePath)) {
355360
355654
  logForDebugging(`Found ${version2} at ${executablePath}, skipping install`);
355361
355655
  logEvent("tengu_native_update_complete", {
355362
355656
  latency_ms: Date.now() - startTime,
@@ -424426,7 +424720,16 @@ async function buildPayload(request, contract, options2) {
424426
424720
  const missing = required2.filter((field) => payload[field] === undefined || payload[field] === null);
424427
424721
  if (missing.length > 0) {
424428
424722
  await deleteAssets(uploadedAssetIds, options2);
424429
- throw new Error(`NVIDIA ${contract.id} requires ${missing.join(", ")}. Supply prompt/image_path for standard inputs or payload_json/file_inputs for its exact documented schema.`);
424723
+ const convenienceFields = missing.map((field) => {
424724
+ if (field === "image")
424725
+ return "image_path";
424726
+ if (field === "video")
424727
+ return "video_path";
424728
+ if (field === "audio")
424729
+ return "audio_path";
424730
+ return field;
424731
+ });
424732
+ throw new Error(`NVIDIA ${contract.id} requires ${missing.join(", ")}. Submit the missing input as ${convenienceFields.join(", ")} fields on separate lines, or provide exact JSON matching the model's documented schema.`);
424430
424733
  }
424431
424734
  const validationErrors = schemaErrors(payload, contract.requestSchema);
424432
424735
  if (validationErrors.length > 0) {
@@ -473579,7 +473882,7 @@ async function setupSdkMcpClients(sdkMcpConfigs, sendMcpMessage) {
473579
473882
  const client = new Client({
473580
473883
  name: "ur",
473581
473884
  title: "UR",
473582
- version: "1.85.1",
473885
+ version: "1.85.2",
473583
473886
  description: "UR-Nexus autonomous engineering workflow engine",
473584
473887
  websiteUrl: PRODUCT_URL
473585
473888
  }, {
@@ -473936,7 +474239,7 @@ var init_client2 = __esm(() => {
473936
474239
  const client = new Client({
473937
474240
  name: "ur",
473938
474241
  title: "UR",
473939
- version: "1.85.1",
474242
+ version: "1.85.2",
473940
474243
  description: "UR-Nexus autonomous engineering workflow engine",
473941
474244
  websiteUrl: PRODUCT_URL
473942
474245
  }, {
@@ -484897,7 +485200,7 @@ function Feedback({
484897
485200
  platform: env2.platform,
484898
485201
  gitRepo: envInfo.isGit,
484899
485202
  terminal: env2.terminal,
484900
- version: "1.85.1",
485203
+ version: "1.85.2",
484901
485204
  transcript: normalizeMessagesForAPI(messages),
484902
485205
  errors: sanitizedErrors,
484903
485206
  lastApiRequest: getLastAPIRequest(),
@@ -485087,7 +485390,7 @@ function Feedback({
485087
485390
  ", ",
485088
485391
  env2.terminal,
485089
485392
  ", v",
485090
- "1.85.1"
485393
+ "1.85.2"
485091
485394
  ]
485092
485395
  }, undefined, true, undefined, this)
485093
485396
  ]
@@ -485193,7 +485496,7 @@ ${sanitizedDescription}
485193
485496
  ` + `**Environment Info**
485194
485497
  ` + `- Platform: ${env2.platform}
485195
485498
  ` + `- Terminal: ${env2.terminal}
485196
- ` + `- Version: ${"1.85.1"}
485499
+ ` + `- Version: ${"1.85.2"}
485197
485500
  ` + `- Feedback ID: ${feedbackId}
485198
485501
  ` + `
485199
485502
  **Errors**
@@ -488303,7 +488606,7 @@ function buildPrimarySection() {
488303
488606
  }, undefined, false, undefined, this);
488304
488607
  return [{
488305
488608
  label: "Version",
488306
- value: "1.85.1"
488609
+ value: "1.85.2"
488307
488610
  }, {
488308
488611
  label: "Session name",
488309
488612
  value: nameValue
@@ -491817,7 +492120,7 @@ function Config({
491817
492120
  }
491818
492121
  }, undefined, false, undefined, this)
491819
492122
  }, undefined, false, undefined, this) : showSubmenu === "ChannelDowngrade" ? /* @__PURE__ */ jsx_dev_runtime176.jsxDEV(ChannelDowngradeDialog, {
491820
- currentVersion: "1.85.1",
492123
+ currentVersion: "1.85.2",
491821
492124
  onChoice: (choice) => {
491822
492125
  setShowSubmenu(null);
491823
492126
  setTabsHidden(false);
@@ -491829,7 +492132,7 @@ function Config({
491829
492132
  autoUpdatesChannel: "stable"
491830
492133
  };
491831
492134
  if (choice === "stay") {
491832
- newSettings.minimumVersion = "1.85.1";
492135
+ newSettings.minimumVersion = "1.85.2";
491833
492136
  }
491834
492137
  updateSettingsForSource("userSettings", newSettings);
491835
492138
  setSettingsData((prev_27) => ({
@@ -500146,7 +500449,7 @@ function HelpV2(t0) {
500146
500449
  let t6;
500147
500450
  if ($2[31] !== tabs) {
500148
500451
  t6 = /* @__PURE__ */ jsx_dev_runtime203.jsxDEV(Tabs, {
500149
- title: `UR v${"1.85.1"}`,
500452
+ title: `UR v${"1.85.2"}`,
500150
500453
  color: "professionalBlue",
500151
500454
  defaultTab: "general",
500152
500455
  children: tabs
@@ -501080,7 +501383,7 @@ function buildToolUseContext(tools, readFileStateCache, toolPermissionContext, a
501080
501383
  async function handleInitialize(options2) {
501081
501384
  return {
501082
501385
  name: "UR",
501083
- version: "1.85.1",
501386
+ version: "1.85.2",
501084
501387
  protocolVersion: "0.1.0",
501085
501388
  workspaceRoot: options2.cwd,
501086
501389
  capabilities: {
@@ -518213,7 +518516,7 @@ function getAllReleaseNotes(changelogContent = getStoredChangelogFromMemory()) {
518213
518516
  return [];
518214
518517
  }
518215
518518
  }
518216
- async function checkForReleaseNotes(lastSeenVersion, currentVersion = "1.85.1") {
518519
+ async function checkForReleaseNotes(lastSeenVersion, currentVersion = "1.85.2") {
518217
518520
  if (process.env.USER_TYPE === "ant") {
518218
518521
  const changelog = "";
518219
518522
  if (changelog) {
@@ -518240,7 +518543,7 @@ async function checkForReleaseNotes(lastSeenVersion, currentVersion = "1.85.1")
518240
518543
  releaseNotes
518241
518544
  };
518242
518545
  }
518243
- function checkForReleaseNotesSync(lastSeenVersion, currentVersion = "1.85.1") {
518546
+ function checkForReleaseNotesSync(lastSeenVersion, currentVersion = "1.85.2") {
518244
518547
  if (process.env.USER_TYPE === "ant") {
518245
518548
  const changelog = "";
518246
518549
  if (changelog) {
@@ -521148,7 +521451,7 @@ function getRecentActivitySync() {
521148
521451
  return cachedActivity;
521149
521452
  }
521150
521453
  function getLogoDisplayData() {
521151
- const version2 = process.env.DEMO_VERSION ?? "1.85.1";
521454
+ const version2 = process.env.DEMO_VERSION ?? "1.85.2";
521152
521455
  const serverUrl = getDirectConnectServerUrl();
521153
521456
  const displayPath = process.env.DEMO_VERSION ? "/code/ur" : getDisplayPath(getCwd());
521154
521457
  const cwd2 = serverUrl ? `${displayPath} in ${serverUrl.replace(/^https?:\/\//, "")}` : displayPath;
@@ -522036,7 +522339,7 @@ function LogoV2() {
522036
522339
  if ($2[2] === Symbol.for("react.memo_cache_sentinel")) {
522037
522340
  t2 = () => {
522038
522341
  const currentConfig = getGlobalConfig();
522039
- if (currentConfig.lastReleaseNotesSeen === "1.85.1") {
522342
+ if (currentConfig.lastReleaseNotesSeen === "1.85.2") {
522040
522343
  return;
522041
522344
  }
522042
522345
  saveGlobalConfig(_temp327);
@@ -522724,12 +523027,12 @@ function LogoV2() {
522724
523027
  return t41;
522725
523028
  }
522726
523029
  function _temp327(current) {
522727
- if (current.lastReleaseNotesSeen === "1.85.1") {
523030
+ if (current.lastReleaseNotesSeen === "1.85.2") {
522728
523031
  return current;
522729
523032
  }
522730
523033
  return {
522731
523034
  ...current,
522732
- lastReleaseNotesSeen: "1.85.1"
523035
+ lastReleaseNotesSeen: "1.85.2"
522733
523036
  };
522734
523037
  }
522735
523038
  function _temp240(s_0) {
@@ -538822,7 +539125,7 @@ function compileAgenticCiWorkflow(specName = "default", options2 = {}) {
538822
539125
  if (spec.name !== specName) {
538823
539126
  throw new Error("Agentic CI workflow spec name does not match");
538824
539127
  }
538825
- const packageVersion = options2.packageVersion ?? (typeof MACRO !== "undefined" ? "1.85.1" : "1.85.1");
539128
+ const packageVersion = options2.packageVersion ?? (typeof MACRO !== "undefined" ? "1.85.2" : "1.85.2");
538826
539129
  if (!/^\d+\.\d+\.\d+(?:-[0-9A-Za-z.-]+)?$/.test(packageVersion)) {
538827
539130
  throw new Error("invalid ur-agent package version");
538828
539131
  }
@@ -539818,7 +540121,7 @@ runner; \`ur trigger\` is the inbound parser that decides what to run.
539818
540121
  path: ".github/workflows/ur.yml",
539819
540122
  root: "project",
539820
540123
  content: compileAgenticCiWorkflow("default", {
539821
- packageVersion: typeof MACRO !== "undefined" ? "1.85.1" : "1.85.1"
540124
+ packageVersion: typeof MACRO !== "undefined" ? "1.85.2" : "1.85.2"
539822
540125
  })
539823
540126
  },
539824
540127
  {
@@ -539881,7 +540184,7 @@ function value(tokens, flag) {
539881
540184
  return index2 >= 0 ? tokens[index2 + 1] : undefined;
539882
540185
  }
539883
540186
  function cliVersion() {
539884
- return typeof MACRO !== "undefined" ? "1.85.1" : "1.85.1";
540187
+ return typeof MACRO !== "undefined" ? "1.85.2" : "1.85.2";
539885
540188
  }
539886
540189
  function workflowPath(cwd2) {
539887
540190
  return join158(cwd2, ".github", "workflows", "ur-agentic-ci.yml");
@@ -540790,7 +541093,7 @@ function formatA2AV1AgentCard(options2 = {}, pretty = true) {
540790
541093
  var urVersion, researchSnapshotDate = "2026-08-10", coverage2, priorityRoadmap;
540791
541094
  var init_trends = __esm(() => {
540792
541095
  init_a2aCardSignature();
540793
- urVersion = typeof MACRO !== "undefined" ? "1.85.1" : "1.85.1";
541096
+ urVersion = typeof MACRO !== "undefined" ? "1.85.2" : "1.85.2";
540794
541097
  coverage2 = [
540795
541098
  {
540796
541099
  id: "local-runtime",
@@ -546523,7 +546826,7 @@ function createAcpStdioApp(deps) {
546523
546826
  }
546524
546827
  },
546525
546828
  authMethods: [],
546526
- agentInfo: { name: "UR-Nexus", version: "1.85.1" }
546829
+ agentInfo: { name: "UR-Nexus", version: "1.85.2" }
546527
546830
  })).onRequest("authenticate", () => ({})).onRequest("session/new", async (context6) => {
546528
546831
  const result = runtime2.newSession(context6.params.cwd, context6.params.mcpServers, context6.params.additionalDirectories);
546529
546832
  await runtime2.announce({
@@ -546620,7 +546923,7 @@ function createAcpStdioAgent(deps) {
546620
546923
  }
546621
546924
  },
546622
546925
  authMethods: [],
546623
- agentInfo: { name: "UR-Nexus", version: "1.85.1" }
546926
+ agentInfo: { name: "UR-Nexus", version: "1.85.2" }
546624
546927
  });
546625
546928
  return;
546626
546929
  case "authenticate":
@@ -760635,7 +760938,7 @@ async function captureMemoryDiagnostics(trigger2, dumpNumber = 0) {
760635
760938
  smapsRollup,
760636
760939
  platform: process.platform,
760637
760940
  nodeVersion: process.version,
760638
- ccVersion: "1.85.1"
760941
+ ccVersion: "1.85.2"
760639
760942
  };
760640
760943
  }
760641
760944
  async function performHeapDump(trigger2 = "manual", dumpNumber = 0) {
@@ -761224,7 +761527,7 @@ var init_bridge_kick = __esm(() => {
761224
761527
  var call153 = async () => {
761225
761528
  return {
761226
761529
  type: "text",
761227
- value: "1.85.1"
761530
+ value: "1.85.2"
761228
761531
  };
761229
761532
  }, version2, version_default;
761230
761533
  var init_version = __esm(() => {
@@ -764217,6 +764520,7 @@ function ProviderFirstModelPicker({
764217
764520
  onSelect,
764218
764521
  onCancel,
764219
764522
  onTaskSelect,
764523
+ continueAfterTaskSelect = false,
764220
764524
  isStandaloneCommand,
764221
764525
  headerText
764222
764526
  }) {
@@ -764536,6 +764840,13 @@ function ProviderFirstModelPicker({
764536
764840
  taskKind: selectedOption.taskKind,
764537
764841
  purpose: selectedOption.purpose
764538
764842
  });
764843
+ if (continueAfterTaskSelect) {
764844
+ setSelectedProvider(null);
764845
+ setModelOptions([]);
764846
+ setFocusedModelValue(null);
764847
+ setProviderWarning("NVIDIA Special task mode is ready. Now choose the provider and model UR should use for ordinary agent conversations.");
764848
+ setStep("provider");
764849
+ }
764539
764850
  return;
764540
764851
  }
764541
764852
  const selectedProviderId = selectedProvider?.value;
@@ -764622,6 +764933,9 @@ function ProviderFirstModelPicker({
764622
764933
  }
764623
764934
  setAppState((prev) => ({
764624
764935
  ...prev,
764936
+ mainLoopModel: value2,
764937
+ mainLoopModelForSession: null,
764938
+ nvidiaTaskModel: undefined,
764625
764939
  provider: {
764626
764940
  ...prev.provider ?? {},
764627
764941
  ...savedProviderSettings ?? {
@@ -765459,18 +765773,6 @@ function ModelPickerWrapper(t0) {
765459
765773
  from_model: mainLoopModel,
765460
765774
  to_model: model
765461
765775
  });
765462
- setAppState((prev) => ({
765463
- ...prev,
765464
- mainLoopModel: model,
765465
- mainLoopModelForSession: null,
765466
- ...model && metadata2 ? {
765467
- provider: {
765468
- ...prev.provider,
765469
- active: metadata2.providerId,
765470
- model
765471
- }
765472
- } : {}
765473
- }));
765474
765776
  let message = metadata2 ? `Selected provider: ${source_default.bold(metadata2.providerName)} (${metadata2.accessType})
765475
765777
  Selected model: ${source_default.bold(renderModelLabel(model))}
765476
765778
  Model source: ${metadata2.modelSource}
@@ -765511,9 +765813,12 @@ Runtime backend: ${metadata2.runtimeBackend}` : `Set model to ${source_default.b
765511
765813
  let taskHandler;
765512
765814
  if ($2[17] !== onDone) {
765513
765815
  taskHandler = function handleTaskSelect(selection) {
765816
+ const contract = getNvidiaHostedTaskModelContract(selection.modelId);
765817
+ const required2 = Array.isArray(contract?.requestSchema.required) ? contract.requestSchema.required.filter((value2) => typeof value2 === "string") : [];
765514
765818
  onDone(`Selected NVIDIA Special model: ${source_default.bold(selection.displayName)}
765515
765819
  Purpose: ${selection.purpose}
765516
- The ongoing agent model is unchanged. Describe the matching ${selection.taskKind} job and UR will run it with the exact NVIDIA Special inference contract.`);
765820
+ Required input: ${required2.join(", ") || "none beyond the task description"}
765821
+ NVIDIA Special task mode is active; the ongoing agent model is unchanged. Your next non-command prompt runs this exact NVIDIA inference contract directly. For media inputs, use fields such as \`video_path: /path/file.mp4\` or \`image_path: /path/file.png\`.`);
765517
765822
  };
765518
765823
  $2[17] = onDone;
765519
765824
  $2[18] = taskHandler;
@@ -765660,6 +765965,7 @@ function SetModelAndClose({
765660
765965
  ...prev,
765661
765966
  mainLoopModel: modelValue,
765662
765967
  mainLoopModelForSession: null,
765968
+ nvidiaTaskModel: undefined,
765663
765969
  ...provider ? {
765664
765970
  provider: {
765665
765971
  ...prev.provider ?? {},
@@ -765790,6 +766096,7 @@ var init_model2 = __esm(() => {
765790
766096
  init_providerRegistry();
765791
766097
  init_settings2();
765792
766098
  init_hooks5();
766099
+ init_nvidiaHostedModels();
765793
766100
  import_compiler_runtime242 = __toESM(require_compiler_runtime(), 1);
765794
766101
  React102 = __toESM(require_react(), 1);
765795
766102
  jsx_dev_runtime334 = __toESM(require_jsx_dev_runtime(), 1);
@@ -773182,7 +773489,7 @@ function generateHtmlReport(data, insights) {
773182
773489
  </html>`;
773183
773490
  }
773184
773491
  function buildExportData(data, insights, facets, remoteStats) {
773185
- const version3 = typeof MACRO !== "undefined" ? "1.85.1" : "unknown";
773492
+ const version3 = typeof MACRO !== "undefined" ? "1.85.2" : "unknown";
773186
773493
  const remote_hosts_collected = remoteStats?.hosts.filter((h2) => h2.sessionCount > 0).map((h2) => h2.name);
773187
773494
  const facets_summary = {
773188
773495
  total: facets.size,
@@ -777497,7 +777804,7 @@ var init_sessionStorage = __esm(() => {
777497
777804
  init_settings2();
777498
777805
  init_slowOperations();
777499
777806
  init_uuid();
777500
- VERSION7 = typeof MACRO !== "undefined" ? "1.85.1" : "unknown";
777807
+ VERSION7 = typeof MACRO !== "undefined" ? "1.85.2" : "unknown";
777501
777808
  MAX_TOMBSTONE_REWRITE_BYTES = 50 * 1024 * 1024;
777502
777809
  SKIP_FIRST_PROMPT_PATTERN = /^(?:\s*<[a-z][\w-]*[\s>]|\[Request interrupted by user[^\]]*\])/;
777503
777810
  EPHEMERAL_PROGRESS_TYPES = new Set([
@@ -778712,7 +779019,7 @@ var init_filesystem = __esm(() => {
778712
779019
  });
778713
779020
  getBundledSkillsRoot = memoize_default(function getBundledSkillsRoot2() {
778714
779021
  const nonce = randomBytes23(16).toString("hex");
778715
- return join236(getURTempDir(), "bundled-skills", "1.85.1", nonce);
779022
+ return join236(getURTempDir(), "bundled-skills", "1.85.2", nonce);
778716
779023
  });
778717
779024
  getResolvedWorkingDirPaths = memoize_default(getPathsForPermissionCheck);
778718
779025
  });
@@ -810569,7 +810876,7 @@ function getUserAgent() {
810569
810876
  const clientApp = process.env.UR_AGENT_SDK_CLIENT_APP ? `, client-app/${process.env.UR_AGENT_SDK_CLIENT_APP}` : "";
810570
810877
  const workload = getWorkload();
810571
810878
  const workloadSuffix = workload ? `, workload/${workload}` : "";
810572
- return `ur-cli/${"1.85.1"} (${process.env.USER_TYPE}, ${process.env.UR_CODE_ENTRYPOINT ?? "cli"}${agentSdkVersion}${clientApp}${workloadSuffix})`;
810879
+ return `ur-cli/${"1.85.2"} (${process.env.USER_TYPE}, ${process.env.UR_CODE_ENTRYPOINT ?? "cli"}${agentSdkVersion}${clientApp}${workloadSuffix})`;
810573
810880
  }
810574
810881
  function getMCPUserAgent() {
810575
810882
  const parts = [];
@@ -810583,7 +810890,7 @@ function getMCPUserAgent() {
810583
810890
  parts.push(`client-app/${process.env.UR_AGENT_SDK_CLIENT_APP}`);
810584
810891
  }
810585
810892
  const suffix = parts.length > 0 ? ` (${parts.join(", ")})` : "";
810586
- return `ur/${"1.85.1"}${suffix}`;
810893
+ return `ur/${"1.85.2"}${suffix}`;
810587
810894
  }
810588
810895
  function getWebFetchUserAgent() {
810589
810896
  return `UR-User (${getURCodeUserAgent()})`;
@@ -827753,7 +828060,7 @@ function buildSystemInitMessage(inputs) {
827753
828060
  slash_commands: inputs.commands.filter((c4) => c4.userInvocable !== false).map((c4) => c4.name),
827754
828061
  apiKeySource: getURHQApiKeyWithSource().source,
827755
828062
  betas: getSdkBetas(),
827756
- ur_version: "1.85.1",
828063
+ ur_version: "1.85.2",
827757
828064
  output_style: outputStyle,
827758
828065
  agents: inputs.agents.map((agent2) => agent2.agentType),
827759
828066
  skills: inputs.skills.filter((s) => s.userInvocable !== false).map((skill2) => skill2.name),
@@ -831294,7 +831601,7 @@ var init_useVoiceEnabled = __esm(() => {
831294
831601
  function getSemverPart(version3) {
831295
831602
  return `${import_semver13.major(version3, { loose: true })}.${import_semver13.minor(version3, { loose: true })}.${import_semver13.patch(version3, { loose: true })}`;
831296
831603
  }
831297
- function useUpdateNotification(updatedVersion, initialVersion = "1.85.1") {
831604
+ function useUpdateNotification(updatedVersion, initialVersion = "1.85.2") {
831298
831605
  const [lastNotifiedSemver, setLastNotifiedSemver] = import_react225.useState(() => getSemverPart(initialVersion));
831299
831606
  if (!updatedVersion) {
831300
831607
  return null;
@@ -831343,7 +831650,7 @@ function AutoUpdater({
831343
831650
  return;
831344
831651
  }
831345
831652
  if (false) {}
831346
- const currentVersion = "1.85.1";
831653
+ const currentVersion = "1.85.2";
831347
831654
  const channel = getInitialSettings()?.autoUpdatesChannel ?? "latest";
831348
831655
  let latestVersion = await getLatestVersion(channel);
831349
831656
  const isDisabled = isAutoUpdaterDisabled();
@@ -831572,12 +831879,12 @@ function NativeAutoUpdater({
831572
831879
  logEvent("tengu_native_auto_updater_start", {});
831573
831880
  try {
831574
831881
  const maxVersion = await getMaxVersion();
831575
- if (maxVersion && gt("1.85.1", maxVersion)) {
831882
+ if (maxVersion && gt("1.85.2", maxVersion)) {
831576
831883
  const msg = await getMaxVersionMessage();
831577
831884
  setMaxVersionIssue(msg ?? "affects your version");
831578
831885
  }
831579
831886
  const result = await installLatest(channel);
831580
- const currentVersion = "1.85.1";
831887
+ const currentVersion = "1.85.2";
831581
831888
  const latencyMs = Date.now() - startTime;
831582
831889
  if (result.lockFailed) {
831583
831890
  logEvent("tengu_native_auto_updater_lock_contention", {
@@ -831714,17 +832021,17 @@ function PackageManagerAutoUpdater(t0) {
831714
832021
  const maxVersion = await getMaxVersion();
831715
832022
  if (maxVersion && latest && gt(latest, maxVersion)) {
831716
832023
  logForDebugging(`PackageManagerAutoUpdater: maxVersion ${maxVersion} is set, capping update from ${latest} to ${maxVersion}`);
831717
- if (gte("1.85.1", maxVersion)) {
831718
- logForDebugging(`PackageManagerAutoUpdater: current version ${"1.85.1"} is already at or above maxVersion ${maxVersion}, skipping update`);
832024
+ if (gte("1.85.2", maxVersion)) {
832025
+ logForDebugging(`PackageManagerAutoUpdater: current version ${"1.85.2"} is already at or above maxVersion ${maxVersion}, skipping update`);
831719
832026
  setUpdateAvailable(false);
831720
832027
  return;
831721
832028
  }
831722
832029
  latest = maxVersion;
831723
832030
  }
831724
- const hasUpdate = latest && !gte("1.85.1", latest) && !shouldSkipVersion(latest);
832031
+ const hasUpdate = latest && !gte("1.85.2", latest) && !shouldSkipVersion(latest);
831725
832032
  setUpdateAvailable(!!hasUpdate);
831726
832033
  if (hasUpdate) {
831727
- logForDebugging(`PackageManagerAutoUpdater: Update available ${"1.85.1"} -> ${latest}`);
832034
+ logForDebugging(`PackageManagerAutoUpdater: Update available ${"1.85.2"} -> ${latest}`);
831728
832035
  }
831729
832036
  };
831730
832037
  $2[0] = t1;
@@ -831758,7 +832065,7 @@ function PackageManagerAutoUpdater(t0) {
831758
832065
  wrap: "truncate",
831759
832066
  children: [
831760
832067
  "currentVersion: ",
831761
- "1.85.1"
832068
+ "1.85.2"
831762
832069
  ]
831763
832070
  }, undefined, true, undefined, this);
831764
832071
  $2[3] = verbose;
@@ -842607,7 +842914,7 @@ function buildStatusLineCommandInput(permissionMode, exceeds200kTokens, settings
842607
842914
  project_dir: getOriginalCwd(),
842608
842915
  added_dirs: addedDirs
842609
842916
  },
842610
- version: "1.85.1",
842917
+ version: "1.85.2",
842611
842918
  output_style: {
842612
842919
  name: outputStyleName
842613
842920
  },
@@ -842717,6 +843024,7 @@ function StatusLineInner({
842717
843024
  const setAppState = useSetAppState();
842718
843025
  const settings = useSettings();
842719
843026
  const providerSelection = useAppState((s) => s.provider);
843027
+ const nvidiaTaskModel = useAppState((s) => s.nvidiaTaskModel);
842720
843028
  const [branch2, setBranch] = import_react249.useState(null);
842721
843029
  const [runtimeMs, setRuntimeMs] = import_react249.useState(null);
842722
843030
  const [customStatusReady, setCustomStatusReady] = import_react249.useState(false);
@@ -842742,10 +843050,10 @@ function StatusLineInner({
842742
843050
  const attention = customStatusError ?? taskAttention;
842743
843051
  const terminalSize = React138.useContext(TerminalSizeContext);
842744
843052
  const defaultStatusLineText = buildDefaultStatusBar({
842745
- version: "1.85.1",
842746
- providerLabel: providerRuntime.providerLabel,
842747
- authMode: providerRuntime.authLabel,
842748
- model: renderModelName(mainLoopModel) || providerRuntime.model || "",
843053
+ version: "1.85.2",
843054
+ providerLabel: nvidiaTaskModel ? "NVIDIA Special" : providerRuntime.providerLabel,
843055
+ authMode: nvidiaTaskModel ? "API key" : providerRuntime.authLabel,
843056
+ model: nvidiaTaskModel ?? (renderModelName(mainLoopModel) || providerRuntime.model || ""),
842749
843057
  mode: permissionMode,
842750
843058
  branch: branch2,
842751
843059
  taskRunningCount: taskSummary.running,
@@ -851858,6 +852166,144 @@ var init_processUserInput = __esm(() => {
851858
852166
  init_processTextPrompt();
851859
852167
  });
851860
852168
 
852169
+ // src/services/providers/nvidiaDirectTask.ts
852170
+ function parseJsonObject2(value2, label) {
852171
+ let parsed;
852172
+ try {
852173
+ parsed = JSON.parse(value2);
852174
+ } catch (error61) {
852175
+ throw new Error(`${label} must be valid JSON: ${error61 instanceof Error ? error61.message : String(error61)}`);
852176
+ }
852177
+ if (!parsed || typeof parsed !== "object" || Array.isArray(parsed)) {
852178
+ throw new Error(`${label} must contain a JSON object.`);
852179
+ }
852180
+ return parsed;
852181
+ }
852182
+ function assignConvenienceValue(request, key, value2) {
852183
+ if (key in STRING_FIELDS && typeof value2 === "string") {
852184
+ request[STRING_FIELDS[key]] = value2;
852185
+ return true;
852186
+ }
852187
+ if (key in NUMBER_FIELDS && typeof value2 === "number" && Number.isFinite(value2)) {
852188
+ request[NUMBER_FIELDS[key]] = value2;
852189
+ return true;
852190
+ }
852191
+ if (key === "passages" && Array.isArray(value2)) {
852192
+ request.passages = value2.filter((item) => typeof item === "string");
852193
+ return true;
852194
+ }
852195
+ if (key === "payload" && value2 && typeof value2 === "object" && !Array.isArray(value2)) {
852196
+ request.payload = value2;
852197
+ return true;
852198
+ }
852199
+ return false;
852200
+ }
852201
+ function parseNvidiaDirectTaskInput(model, input2) {
852202
+ const trimmed = input2.trim();
852203
+ const request = { model };
852204
+ if (trimmed.startsWith("{")) {
852205
+ const object2 = parseJsonObject2(trimmed, "NVIDIA Special input");
852206
+ const recognized = [];
852207
+ for (const [key, value2] of Object.entries(object2)) {
852208
+ if (assignConvenienceValue(request, key, value2))
852209
+ recognized.push(key);
852210
+ }
852211
+ if (recognized.length === 0)
852212
+ request.payload = object2;
852213
+ else {
852214
+ const exactPayload = Object.fromEntries(Object.entries(object2).filter(([key]) => !recognized.includes(key)));
852215
+ if (Object.keys(exactPayload).length > 0) {
852216
+ request.payload = { ...request.payload, ...exactPayload };
852217
+ }
852218
+ }
852219
+ return request;
852220
+ }
852221
+ const lines = trimmed.split(/\r?\n/u);
852222
+ const freeText3 = [];
852223
+ let recognizedField = false;
852224
+ for (const line of lines) {
852225
+ const match = line.match(/^\s*([a-z][a-z0-9_]*)\s*[:=]\s*(.*?)\s*$/iu);
852226
+ if (!match) {
852227
+ freeText3.push(line);
852228
+ continue;
852229
+ }
852230
+ const key = match[1].toLowerCase();
852231
+ const rawValue = match[2];
852232
+ if (key === "payload_json") {
852233
+ request.payload = parseJsonObject2(rawValue, "payload_json");
852234
+ recognizedField = true;
852235
+ } else if (key === "passages") {
852236
+ const parsed = JSON.parse(rawValue);
852237
+ if (!Array.isArray(parsed) || !parsed.every((item) => typeof item === "string")) {
852238
+ throw new Error("passages must be a JSON array of strings.");
852239
+ }
852240
+ request.passages = parsed;
852241
+ recognizedField = true;
852242
+ } else if (key in STRING_FIELDS) {
852243
+ request[STRING_FIELDS[key]] = rawValue;
852244
+ recognizedField = true;
852245
+ } else if (key in NUMBER_FIELDS) {
852246
+ const number4 = Number(rawValue);
852247
+ if (!Number.isFinite(number4))
852248
+ throw new Error(`${key} must be a number.`);
852249
+ request[NUMBER_FIELDS[key]] = number4;
852250
+ recognizedField = true;
852251
+ } else {
852252
+ freeText3.push(line);
852253
+ }
852254
+ }
852255
+ if (!recognizedField)
852256
+ request.prompt = trimmed;
852257
+ else if (!request.prompt && freeText3.join(`
852258
+ `).trim()) {
852259
+ request.prompt = freeText3.join(`
852260
+ `).trim();
852261
+ }
852262
+ return request;
852263
+ }
852264
+ async function runNvidiaDirectTask(model, input2, options5) {
852265
+ return runNvidiaHostedTask(parseNvidiaDirectTaskInput(model, input2), options5);
852266
+ }
852267
+ function formatNvidiaDirectTaskResult(result) {
852268
+ const lines = [
852269
+ `NVIDIA Special completed ${result.taskKind} with ${result.model}.`
852270
+ ];
852271
+ if (result.text)
852272
+ lines.push(result.text);
852273
+ if (result.artifacts?.length) {
852274
+ lines.push("Artifacts:", ...result.artifacts.map((artifact) => `- ${artifact.label}: ${artifact.path} (${artifact.mediaType})`));
852275
+ } else if (result.outputPath) {
852276
+ lines.push(`Artifact: ${result.outputPath}${result.mediaType ? ` (${result.mediaType})` : ""}`);
852277
+ }
852278
+ if (result.seed !== undefined)
852279
+ lines.push(`Seed: ${result.seed}`);
852280
+ return lines.join(`
852281
+ `);
852282
+ }
852283
+ var STRING_FIELDS, NUMBER_FIELDS;
852284
+ var init_nvidiaDirectTask = __esm(() => {
852285
+ init_nvidiaTaskRuntime();
852286
+ STRING_FIELDS = {
852287
+ prompt: "prompt",
852288
+ image_path: "imagePath",
852289
+ input_path: "inputPath",
852290
+ audio_path: "audioPath",
852291
+ video_path: "videoPath",
852292
+ reference_audio_path: "referenceAudioPath",
852293
+ diarization_path: "diarizationPath",
852294
+ output_path: "outputPath",
852295
+ query: "query"
852296
+ };
852297
+ NUMBER_FIELDS = {
852298
+ width: "width",
852299
+ height: "height",
852300
+ steps: "steps",
852301
+ seed: "seed",
852302
+ cfg_scale: "cfgScale",
852303
+ max_tokens: "maxTokens"
852304
+ };
852305
+ });
852306
+
851861
852307
  // src/utils/handlePromptSubmit.ts
851862
852308
  function exit2() {
851863
852309
  gracefulShutdownSync(0);
@@ -851882,6 +852328,8 @@ async function handlePromptSubmit(params) {
851882
852328
  onBeforeQuery,
851883
852329
  canUseTool,
851884
852330
  queuedCommands,
852331
+ addNotification,
852332
+ setMessages,
851885
852333
  uuid: uuid3,
851886
852334
  skipSlashCommands
851887
852335
  } = params;
@@ -851905,7 +852353,9 @@ async function handlePromptSubmit(params) {
851905
852353
  onBeforeQuery,
851906
852354
  resetHistory,
851907
852355
  canUseTool,
851908
- onInputChange
852356
+ onInputChange,
852357
+ addNotification,
852358
+ setMessages
851909
852359
  });
851910
852360
  return;
851911
852361
  }
@@ -852040,7 +852490,9 @@ async function handlePromptSubmit(params) {
852040
852490
  onBeforeQuery,
852041
852491
  resetHistory,
852042
852492
  canUseTool,
852043
- onInputChange
852493
+ onInputChange,
852494
+ addNotification,
852495
+ setMessages
852044
852496
  });
852045
852497
  }
852046
852498
  async function executeUserInput(params) {
@@ -852059,7 +852511,9 @@ async function executeUserInput(params) {
852059
852511
  onBeforeQuery,
852060
852512
  resetHistory,
852061
852513
  canUseTool,
852062
- queuedCommands
852514
+ queuedCommands,
852515
+ addNotification,
852516
+ setMessages
852063
852517
  } = params;
852064
852518
  const abortController = createAbortController();
852065
852519
  setAbortController(abortController);
@@ -852074,6 +852528,48 @@ async function executeUserInput(params) {
852074
852528
  if (reservationToken === undefined) {
852075
852529
  throw new Error("Prompt dispatch could not reserve the active query slot.");
852076
852530
  }
852531
+ const firstCommand = queuedCommands?.[0];
852532
+ const firstCommandInput = typeof firstCommand?.value === "string" ? firstCommand.value : undefined;
852533
+ const nvidiaTaskModel = makeContext().getAppState().nvidiaTaskModel;
852534
+ const isDirectNvidiaTask = Boolean(nvidiaTaskModel) && firstCommand?.mode === "prompt" && firstCommandInput !== undefined && !firstCommandInput.trimStart().startsWith("/");
852535
+ if (isDirectNvidiaTask && firstCommand && firstCommandInput !== undefined && nvidiaTaskModel) {
852536
+ const input2 = firstCommandInput.trim();
852537
+ let responseText2;
852538
+ try {
852539
+ const result = await runNvidiaDirectTask(nvidiaTaskModel, input2, {
852540
+ apiKey: getProviderApiKey("nvidia-special") ?? "",
852541
+ cwd: getCwd(),
852542
+ signal: abortController.signal
852543
+ });
852544
+ responseText2 = formatNvidiaDirectTaskResult(result);
852545
+ } catch (error61) {
852546
+ responseText2 = `NVIDIA Special could not run ${nvidiaTaskModel}: ${error61 instanceof Error ? error61.message : String(error61)}`;
852547
+ }
852548
+ const userMessage = createUserMessage({
852549
+ content: input2,
852550
+ uuid: firstCommand.uuid
852551
+ });
852552
+ const assistantMessage = createAssistantMessage({ content: responseText2 });
852553
+ if (setMessages) {
852554
+ setMessages((previous) => [...previous, userMessage, assistantMessage]);
852555
+ } else {
852556
+ addNotification?.({
852557
+ key: `nvidia-special-${assistantMessage.uuid}`,
852558
+ text: responseText2,
852559
+ priority: "immediate"
852560
+ });
852561
+ }
852562
+ for (const command8 of queuedCommands?.slice(1) ?? [])
852563
+ enqueue(command8);
852564
+ resetHistory();
852565
+ setToolJSX({
852566
+ jsx: null,
852567
+ shouldHidePromptInput: false,
852568
+ clearLocalJSX: true
852569
+ });
852570
+ setAbortController(null);
852571
+ return;
852572
+ }
852077
852573
  queryCheckpoint("query_process_user_input_start");
852078
852574
  const newMessages = [];
852079
852575
  let shouldQuery = false;
@@ -852198,6 +852694,10 @@ var init_handlePromptSubmit = __esm(() => {
852198
852694
  init_model();
852199
852695
  init_processUserInput();
852200
852696
  init_queryProfiler();
852697
+ init_providerCredentials();
852698
+ init_nvidiaDirectTask();
852699
+ init_cwd2();
852700
+ init_messages();
852201
852701
  init_workloadContext();
852202
852702
  init_taskListRunContext();
852203
852703
  init_tasks();
@@ -855133,7 +855633,7 @@ async function submitTranscriptShare(messages, trigger2, appearanceId) {
855133
855633
  } catch {}
855134
855634
  const data = {
855135
855635
  trigger: trigger2,
855136
- version: "1.85.1",
855636
+ version: "1.85.2",
855137
855637
  platform: process.platform,
855138
855638
  transcript,
855139
855639
  subagentTranscripts: Object.keys(subagentTranscripts).length > 0 ? subagentTranscripts : undefined,
@@ -867515,7 +868015,7 @@ function WelcomeV2() {
867515
868015
  dimColor: true,
867516
868016
  children: [
867517
868017
  "v",
867518
- "1.85.1"
868018
+ "1.85.2"
867519
868019
  ]
867520
868020
  }, undefined, true, undefined, this)
867521
868021
  ]
@@ -868761,7 +869261,7 @@ function completeOnboarding() {
868761
869261
  saveGlobalConfig((current) => ({
868762
869262
  ...current,
868763
869263
  hasCompletedOnboarding: true,
868764
- lastOnboardingVersion: "1.85.1"
869264
+ lastOnboardingVersion: "1.85.2"
868765
869265
  }));
868766
869266
  }
868767
869267
  function showDialog(root2, renderer) {
@@ -873758,7 +874258,7 @@ function appendToLog(path28, message) {
873758
874258
  cwd: getFsImplementation().cwd(),
873759
874259
  userType: process.env.USER_TYPE,
873760
874260
  sessionId: getSessionId(),
873761
- version: "1.85.1"
874261
+ version: "1.85.2"
873762
874262
  };
873763
874263
  getLogWriter(path28).write(messageWithTimestamp);
873764
874264
  }
@@ -877921,8 +878421,8 @@ async function getEnvLessBridgeConfig() {
877921
878421
  }
877922
878422
  async function checkEnvLessBridgeMinVersion() {
877923
878423
  const cfg = await getEnvLessBridgeConfig();
877924
- if (cfg.min_version && lt("1.85.1", cfg.min_version)) {
877925
- return `Your version of UR (${"1.85.1"}) is too old for Remote Control.
878424
+ if (cfg.min_version && lt("1.85.2", cfg.min_version)) {
878425
+ return `Your version of UR (${"1.85.2"}) is too old for Remote Control.
877926
878426
  Version ${cfg.min_version} or higher is required. Run \`ur update\` to update.`;
877927
878427
  }
877928
878428
  return null;
@@ -878396,7 +878896,7 @@ async function initBridgeCore(params) {
878396
878896
  const rawApi = createBridgeApiClient({
878397
878897
  baseUrl,
878398
878898
  getAccessToken,
878399
- runnerVersion: "1.85.1",
878899
+ runnerVersion: "1.85.2",
878400
878900
  onDebug: logForDebugging,
878401
878901
  onAuth401,
878402
878902
  getTrustedDeviceToken
@@ -891838,7 +892338,7 @@ function getAgUiCapabilities() {
891838
892338
  name: "UR-Nexus",
891839
892339
  type: "ur-nexus",
891840
892340
  description: "Provider-flexible, local-first autonomous engineering workflow agent.",
891841
- version: "1.85.1",
892341
+ version: "1.85.2",
891842
892342
  provider: "UR",
891843
892343
  documentationUrl: "https://github.com/Maitham16/UR/blob/master/docs/AG_UI.md"
891844
892344
  },
@@ -892658,7 +893158,7 @@ function createMCPServer(cwd4, debug2, verbose) {
892658
893158
  };
892659
893159
  const server2 = new Server({
892660
893160
  name: "ur-nexus",
892661
- version: "1.85.1"
893161
+ version: "1.85.2"
892662
893162
  }, {
892663
893163
  capabilities: {
892664
893164
  tools: {}
@@ -893861,7 +894361,7 @@ function thrownResponse(error61) {
893861
894361
  }
893862
894362
  async function createUrMcp2026Runtime(options5) {
893863
894363
  const server2 = createMCPServer(options5.cwd, options5.debug === true, options5.verbose === true);
893864
- const client2 = new Client({ name: "ur-mcp-2026-adapter", version: "1.85.1" }, { capabilities: {} });
894364
+ const client2 = new Client({ name: "ur-mcp-2026-adapter", version: "1.85.2" }, { capabilities: {} });
893865
894365
  const [clientTransport, serverTransport] = createLinkedTransportPair();
893866
894366
  try {
893867
894367
  await server2.connect(serverTransport);
@@ -893872,7 +894372,7 @@ async function createUrMcp2026Runtime(options5) {
893872
894372
  }
893873
894373
  const runtime2 = new Mcp2026Runtime({
893874
894374
  cwd: options5.cwd,
893875
- version: "1.85.1",
894375
+ version: "1.85.2",
893876
894376
  backend: {
893877
894377
  listTools: async () => {
893878
894378
  const listed = await client2.listTools();
@@ -896762,7 +897262,7 @@ async function update() {
896762
897262
  logEvent("tengu_update_check", {});
896763
897263
  const diagnostic2 = await getDoctorDiagnostic();
896764
897264
  const result = await checkUpgradeStatus({
896765
- currentVersion: "1.85.1",
897265
+ currentVersion: "1.85.2",
896766
897266
  packageName: UR_AGENT_PACKAGE_NAME,
896767
897267
  installationType: diagnostic2.installationType,
896768
897268
  latestVersion: () => getLatestNpmPackageVersion(UR_AGENT_PACKAGE_NAME)
@@ -897798,6 +898298,7 @@ ${inputPrompt}` : mainThreadAgentDefinition.initialPrompt;
897798
898298
  }
897799
898299
  }
897800
898300
  let effectiveModel = userSpecifiedModel;
898301
+ let startupNvidiaTaskModel;
897801
898302
  if (!effectiveModel && mainThreadAgentDefinition?.model && mainThreadAgentDefinition.model !== "inherit") {
897802
898303
  effectiveModel = parseUserSpecifiedModel(mainThreadAgentDefinition.model);
897803
898304
  }
@@ -897946,11 +898447,15 @@ ${customInstructions}` : customInstructions;
897946
898447
  if (requiresStartupModelSelection) {
897947
898448
  const selectedModel = await showSetupDialog(root2, (done) => /* @__PURE__ */ jsx_dev_runtime483.jsxDEV(ProviderFirstModelPicker, {
897948
898449
  initial: null,
897949
- headerText: "Choose a provider and model for this workspace. The validated choice is saved locally before the first session starts.",
898450
+ headerText: "Choose an ordinary agent provider/model for this workspace. You may also activate an NVIDIA Special one-shot task first; UR will then return here for the ordinary agent model.",
897950
898451
  onSelect: (model) => {
897951
898452
  if (model)
897952
898453
  done(model);
897953
- }
898454
+ },
898455
+ onTaskSelect: (selection) => {
898456
+ startupNvidiaTaskModel = selection.modelId;
898457
+ },
898458
+ continueAfterTaskSelect: true
897954
898459
  }, undefined, false, undefined, this));
897955
898460
  effectiveModel = selectedModel;
897956
898461
  setMainLoopModelOverride(selectedModel);
@@ -898090,7 +898595,7 @@ ${customInstructions}` : customInstructions;
898090
898595
  }
898091
898596
  }
898092
898597
  logForDiagnosticsNoPII("info", "started", {
898093
- version: "1.85.1",
898598
+ version: "1.85.2",
898094
898599
  is_native_binary: isInBundledMode()
898095
898600
  });
898096
898601
  registerCleanup(async () => {
@@ -898402,6 +898907,7 @@ ${customInstructions}` : customInstructions;
898402
898907
  verbose: verbose ?? getGlobalConfig().verbose ?? false,
898403
898908
  mainLoopModel: initialMainLoopModel,
898404
898909
  mainLoopModelForSession: null,
898910
+ ...startupNvidiaTaskModel ? { nvidiaTaskModel: startupNvidiaTaskModel } : {},
898405
898911
  isBriefOnly: initialIsBriefOnly,
898406
898912
  expandedView: getGlobalConfig().showSpinnerTree ? "teammates" : getGlobalConfig().showExpandedTodos ? "tasks" : "none",
898407
898913
  showTeammateMessagePreview: isAgentSwarmsEnabled() ? false : undefined,
@@ -898877,7 +899383,7 @@ Usage: ur --remote "your task description"`, () => gracefulShutdown(1));
898877
899383
  pendingHookMessages
898878
899384
  }, renderAndRun);
898879
899385
  }
898880
- }).version("1.85.1 (UR-Nexus)", "-v, --version", "Output the version number");
899386
+ }).version("1.85.2 (UR-Nexus)", "-v, --version", "Output the version number");
898881
899387
  program2.option("-w, --worktree [name]", "Create a new git worktree for this session (optionally specify a name)");
898882
899388
  program2.option("--tmux", "Create a tmux session for the worktree (requires --worktree). Uses iTerm2 native panes when available; use --tmux=classic for traditional tmux.");
898883
899389
  if (canUserConfigureAdvisor()) {
@@ -900004,7 +900510,7 @@ if (false) {}
900004
900510
  async function main2() {
900005
900511
  const args = process.argv.slice(2);
900006
900512
  if (args.length === 1 && (args[0] === "--version" || args[0] === "-v" || args[0] === "-V")) {
900007
- console.log(`${"1.85.1"} (UR-Nexus)`);
900513
+ console.log(`${"1.85.2"} (UR-Nexus)`);
900008
900514
  return;
900009
900515
  }
900010
900516
  if (args[0] === "a2a" && args[1] === "serve" && !args.includes("--help") && !args.includes("-h")) {