ur-agent 1.37.0 → 1.37.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
@@ -70876,7 +70876,7 @@ var init_auth = __esm(() => {
70876
70876
 
70877
70877
  // src/utils/userAgent.ts
70878
70878
  function getURCodeUserAgent() {
70879
- return `ur/${"1.37.0"}`;
70879
+ return `ur/${"1.37.2"}`;
70880
70880
  }
70881
70881
 
70882
70882
  // src/utils/workloadContext.ts
@@ -70898,7 +70898,7 @@ function getUserAgent() {
70898
70898
  const clientApp = process.env.UR_AGENT_SDK_CLIENT_APP ? `, client-app/${process.env.UR_AGENT_SDK_CLIENT_APP}` : "";
70899
70899
  const workload = getWorkload();
70900
70900
  const workloadSuffix = workload ? `, workload/${workload}` : "";
70901
- return `ur-cli/${"1.37.0"} (${process.env.USER_TYPE}, ${process.env.UR_CODE_ENTRYPOINT ?? "cli"}${agentSdkVersion}${clientApp}${workloadSuffix})`;
70901
+ return `ur-cli/${"1.37.2"} (${process.env.USER_TYPE}, ${process.env.UR_CODE_ENTRYPOINT ?? "cli"}${agentSdkVersion}${clientApp}${workloadSuffix})`;
70902
70902
  }
70903
70903
  function getMCPUserAgent() {
70904
70904
  const parts = [];
@@ -70912,7 +70912,7 @@ function getMCPUserAgent() {
70912
70912
  parts.push(`client-app/${process.env.UR_AGENT_SDK_CLIENT_APP}`);
70913
70913
  }
70914
70914
  const suffix = parts.length > 0 ? ` (${parts.join(", ")})` : "";
70915
- return `ur/${"1.37.0"}${suffix}`;
70915
+ return `ur/${"1.37.2"}${suffix}`;
70916
70916
  }
70917
70917
  function getWebFetchUserAgent() {
70918
70918
  return `UR-User (${getURCodeUserAgent()})`;
@@ -71050,7 +71050,7 @@ var init_user = __esm(() => {
71050
71050
  deviceId,
71051
71051
  sessionId: getSessionId(),
71052
71052
  email: getEmail(),
71053
- appVersion: "1.37.0",
71053
+ appVersion: "1.37.2",
71054
71054
  platform: getHostPlatformForAnalytics(),
71055
71055
  organizationUuid,
71056
71056
  accountUuid,
@@ -77567,7 +77567,7 @@ var init_metadata = __esm(() => {
77567
77567
  COMPOUND_OPERATOR_REGEX = /\s*(?:&&|\|\||[;|])\s*/;
77568
77568
  WHITESPACE_REGEX = /\s+/;
77569
77569
  getVersionBase = memoize_default(() => {
77570
- const match = "1.37.0".match(/^\d+\.\d+\.\d+(?:-[a-z]+)?/);
77570
+ const match = "1.37.2".match(/^\d+\.\d+\.\d+(?:-[a-z]+)?/);
77571
77571
  return match ? match[0] : undefined;
77572
77572
  });
77573
77573
  buildEnvContext = memoize_default(async () => {
@@ -77607,7 +77607,7 @@ var init_metadata = __esm(() => {
77607
77607
  isGithubAction: isEnvTruthy(process.env.GITHUB_ACTIONS),
77608
77608
  isURCodeAction: isEnvTruthy(process.env.UR_CODE_ACTION),
77609
77609
  isURAiAuth: isURAISubscriber2(),
77610
- version: "1.37.0",
77610
+ version: "1.37.2",
77611
77611
  versionBase: getVersionBase(),
77612
77612
  buildTime: "",
77613
77613
  deploymentEnvironment: env2.detectDeploymentEnvironment(),
@@ -78277,7 +78277,7 @@ function initialize1PEventLogging() {
78277
78277
  const platform2 = getPlatform();
78278
78278
  const attributes = {
78279
78279
  [import_semantic_conventions4.ATTR_SERVICE_NAME]: "ur",
78280
- [import_semantic_conventions4.ATTR_SERVICE_VERSION]: "1.37.0"
78280
+ [import_semantic_conventions4.ATTR_SERVICE_VERSION]: "1.37.2"
78281
78281
  };
78282
78282
  if (platform2 === "wsl") {
78283
78283
  const wslVersion = getWslVersion();
@@ -78304,7 +78304,7 @@ function initialize1PEventLogging() {
78304
78304
  })
78305
78305
  ]
78306
78306
  });
78307
- firstPartyEventLogger = firstPartyEventLoggerProvider.getLogger("com.urhq.ur.events", "1.37.0");
78307
+ firstPartyEventLogger = firstPartyEventLoggerProvider.getLogger("com.urhq.ur.events", "1.37.2");
78308
78308
  }
78309
78309
  async function reinitialize1PEventLoggingIfConfigChanged() {
78310
78310
  if (!is1PEventLoggingEnabled() || !firstPartyEventLoggerProvider) {
@@ -83601,7 +83601,7 @@ function formatAgentTrendReport(report = buildAgentTrendReport()) {
83601
83601
  function formatA2AAgentCard(options = {}, pretty = true) {
83602
83602
  return JSON.stringify(buildA2AAgentCard(options), null, pretty ? 2 : 0);
83603
83603
  }
83604
- var urVersion = "1.37.0", coverage, priorityRoadmap;
83604
+ var urVersion = "1.37.2", coverage, priorityRoadmap;
83605
83605
  var init_trends = __esm(() => {
83606
83606
  coverage = [
83607
83607
  {
@@ -85594,7 +85594,7 @@ function getAttributionHeader(fingerprint) {
85594
85594
  if (!isAttributionHeaderEnabled()) {
85595
85595
  return "";
85596
85596
  }
85597
- const version2 = `${"1.37.0"}.${fingerprint}`;
85597
+ const version2 = `${"1.37.2"}.${fingerprint}`;
85598
85598
  const entrypoint = process.env.UR_CODE_ENTRYPOINT ?? "unknown";
85599
85599
  const cch = "";
85600
85600
  const workload = getWorkload();
@@ -193455,7 +193455,7 @@ function getTelemetryAttributes() {
193455
193455
  attributes["session.id"] = sessionId;
193456
193456
  }
193457
193457
  if (shouldIncludeAttribute("OTEL_METRICS_INCLUDE_VERSION")) {
193458
- attributes["app.version"] = "1.37.0";
193458
+ attributes["app.version"] = "1.37.2";
193459
193459
  }
193460
193460
  const oauthAccount = getOauthAccountInfo();
193461
193461
  if (oauthAccount) {
@@ -228840,7 +228840,7 @@ function getInstallationEnv() {
228840
228840
  return;
228841
228841
  }
228842
228842
  function getURCodeVersion() {
228843
- return "1.37.0";
228843
+ return "1.37.2";
228844
228844
  }
228845
228845
  async function getInstalledVSCodeExtensionVersion(command) {
228846
228846
  const { stdout } = await execFileNoThrow(command, ["--list-extensions", "--show-versions"], {
@@ -231679,7 +231679,7 @@ async function setupSdkMcpClients(sdkMcpConfigs, sendMcpMessage) {
231679
231679
  const client2 = new Client({
231680
231680
  name: "ur",
231681
231681
  title: "UR",
231682
- version: "1.37.0",
231682
+ version: "1.37.2",
231683
231683
  description: "UR-AGENT autonomous engineering workflow engine",
231684
231684
  websiteUrl: PRODUCT_URL
231685
231685
  }, {
@@ -232033,7 +232033,7 @@ var init_client5 = __esm(() => {
232033
232033
  const client2 = new Client({
232034
232034
  name: "ur",
232035
232035
  title: "UR",
232036
- version: "1.37.0",
232036
+ version: "1.37.2",
232037
232037
  description: "UR-AGENT autonomous engineering workflow engine",
232038
232038
  websiteUrl: PRODUCT_URL
232039
232039
  }, {
@@ -241847,9 +241847,9 @@ async function assertMinVersion() {
241847
241847
  if (false) {}
241848
241848
  try {
241849
241849
  const versionConfig = await getDynamicConfig_BLOCKS_ON_INIT("tengu_version_config", { minVersion: "0.0.0" });
241850
- if (versionConfig.minVersion && lt("1.37.0", versionConfig.minVersion)) {
241850
+ if (versionConfig.minVersion && lt("1.37.2", versionConfig.minVersion)) {
241851
241851
  console.error(`
241852
- It looks like your version of UR (${"1.37.0"}) needs an update.
241852
+ It looks like your version of UR (${"1.37.2"}) needs an update.
241853
241853
  A newer version (${versionConfig.minVersion} or higher) is required to continue.
241854
241854
 
241855
241855
  To update, please run:
@@ -242065,7 +242065,7 @@ async function installGlobalPackage(specificVersion) {
242065
242065
  logError2(new AutoUpdaterError("Another process is currently installing an update"));
242066
242066
  logEvent("tengu_auto_updater_lock_contention", {
242067
242067
  pid: process.pid,
242068
- currentVersion: "1.37.0"
242068
+ currentVersion: "1.37.2"
242069
242069
  });
242070
242070
  return "in_progress";
242071
242071
  }
@@ -242074,7 +242074,7 @@ async function installGlobalPackage(specificVersion) {
242074
242074
  if (!env2.isRunningWithBun() && env2.isNpmFromWindowsPath()) {
242075
242075
  logError2(new Error("Windows NPM detected in WSL environment"));
242076
242076
  logEvent("tengu_auto_updater_windows_npm_in_wsl", {
242077
- currentVersion: "1.37.0"
242077
+ currentVersion: "1.37.2"
242078
242078
  });
242079
242079
  console.error(`
242080
242080
  Error: Windows NPM detected in WSL
@@ -242609,7 +242609,7 @@ function detectLinuxGlobPatternWarnings() {
242609
242609
  }
242610
242610
  async function getDoctorDiagnostic() {
242611
242611
  const installationType = await getCurrentInstallationType();
242612
- const version2 = typeof MACRO !== "undefined" ? "1.37.0" : "unknown";
242612
+ const version2 = typeof MACRO !== "undefined" ? "1.37.2" : "unknown";
242613
242613
  const installationPath = await getInstallationPath();
242614
242614
  const invokedBinary = getInvokedBinary();
242615
242615
  const multipleInstallations = await detectMultipleInstallations();
@@ -243544,8 +243544,8 @@ async function updateLatest(channelOrVersion, forceReinstall = false) {
243544
243544
  const maxVersion = await getMaxVersion();
243545
243545
  if (maxVersion && gt(version2, maxVersion)) {
243546
243546
  logForDebugging(`Native installer: maxVersion ${maxVersion} is set, capping update from ${version2} to ${maxVersion}`);
243547
- if (gte("1.37.0", maxVersion)) {
243548
- logForDebugging(`Native installer: current version ${"1.37.0"} is already at or above maxVersion ${maxVersion}, skipping update`);
243547
+ if (gte("1.37.2", maxVersion)) {
243548
+ logForDebugging(`Native installer: current version ${"1.37.2"} is already at or above maxVersion ${maxVersion}, skipping update`);
243549
243549
  logEvent("tengu_native_update_skipped_max_version", {
243550
243550
  latency_ms: Date.now() - startTime,
243551
243551
  max_version: maxVersion,
@@ -243556,7 +243556,7 @@ async function updateLatest(channelOrVersion, forceReinstall = false) {
243556
243556
  version2 = maxVersion;
243557
243557
  }
243558
243558
  }
243559
- if (!forceReinstall && version2 === "1.37.0" && await versionIsAvailable(version2) && await isPossibleURBinary(executablePath)) {
243559
+ if (!forceReinstall && version2 === "1.37.2" && await versionIsAvailable(version2) && await isPossibleURBinary(executablePath)) {
243560
243560
  logForDebugging(`Found ${version2} at ${executablePath}, skipping install`);
243561
243561
  logEvent("tengu_native_update_complete", {
243562
243562
  latency_ms: Date.now() - startTime,
@@ -340486,7 +340486,7 @@ function Feedback({
340486
340486
  platform: env2.platform,
340487
340487
  gitRepo: envInfo.isGit,
340488
340488
  terminal: env2.terminal,
340489
- version: "1.37.0",
340489
+ version: "1.37.2",
340490
340490
  transcript: normalizeMessagesForAPI(messages),
340491
340491
  errors: sanitizedErrors,
340492
340492
  lastApiRequest: getLastAPIRequest(),
@@ -340678,7 +340678,7 @@ function Feedback({
340678
340678
  ", ",
340679
340679
  env2.terminal,
340680
340680
  ", v",
340681
- "1.37.0"
340681
+ "1.37.2"
340682
340682
  ]
340683
340683
  }, undefined, true, undefined, this)
340684
340684
  ]
@@ -340784,7 +340784,7 @@ ${sanitizedDescription}
340784
340784
  ` + `**Environment Info**
340785
340785
  ` + `- Platform: ${env2.platform}
340786
340786
  ` + `- Terminal: ${env2.terminal}
340787
- ` + `- Version: ${"1.37.0"}
340787
+ ` + `- Version: ${"1.37.2"}
340788
340788
  ` + `- Feedback ID: ${feedbackId}
340789
340789
  ` + `
340790
340790
  **Errors**
@@ -343895,7 +343895,7 @@ function buildPrimarySection() {
343895
343895
  }, undefined, false, undefined, this);
343896
343896
  return [{
343897
343897
  label: "Version",
343898
- value: "1.37.0"
343898
+ value: "1.37.2"
343899
343899
  }, {
343900
343900
  label: "Session name",
343901
343901
  value: nameValue
@@ -347196,7 +347196,7 @@ function Config({
347196
347196
  }
347197
347197
  }, undefined, false, undefined, this)
347198
347198
  }, undefined, false, undefined, this) : showSubmenu === "ChannelDowngrade" ? /* @__PURE__ */ jsx_dev_runtime177.jsxDEV(ChannelDowngradeDialog, {
347199
- currentVersion: "1.37.0",
347199
+ currentVersion: "1.37.2",
347200
347200
  onChoice: (choice) => {
347201
347201
  setShowSubmenu(null);
347202
347202
  setTabsHidden(false);
@@ -347208,7 +347208,7 @@ function Config({
347208
347208
  autoUpdatesChannel: "stable"
347209
347209
  };
347210
347210
  if (choice === "stay") {
347211
- newSettings.minimumVersion = "1.37.0";
347211
+ newSettings.minimumVersion = "1.37.2";
347212
347212
  }
347213
347213
  updateSettingsForSource("userSettings", newSettings);
347214
347214
  setSettingsData((prev_27) => ({
@@ -355278,7 +355278,7 @@ function HelpV2(t0) {
355278
355278
  let t6;
355279
355279
  if ($3[31] !== tabs) {
355280
355280
  t6 = /* @__PURE__ */ jsx_dev_runtime204.jsxDEV(Tabs, {
355281
- title: `UR v${"1.37.0"}`,
355281
+ title: `UR v${"1.37.2"}`,
355282
355282
  color: "professionalBlue",
355283
355283
  defaultTab: "general",
355284
355284
  children: tabs
@@ -356024,7 +356024,7 @@ function buildToolUseContext(tools, readFileStateCache) {
356024
356024
  async function handleInitialize(options2) {
356025
356025
  return {
356026
356026
  name: "ur-agent",
356027
- version: "1.37.0",
356027
+ version: "1.37.2",
356028
356028
  protocolVersion: "0.1.0",
356029
356029
  workspaceRoot: options2.cwd,
356030
356030
  capabilities: {
@@ -376166,7 +376166,7 @@ function getAllReleaseNotes(changelogContent = getStoredChangelogFromMemory()) {
376166
376166
  return [];
376167
376167
  }
376168
376168
  }
376169
- async function checkForReleaseNotes(lastSeenVersion, currentVersion = "1.37.0") {
376169
+ async function checkForReleaseNotes(lastSeenVersion, currentVersion = "1.37.2") {
376170
376170
  if (process.env.USER_TYPE === "ant") {
376171
376171
  const changelog = "";
376172
376172
  if (changelog) {
@@ -376193,7 +376193,7 @@ async function checkForReleaseNotes(lastSeenVersion, currentVersion = "1.37.0")
376193
376193
  releaseNotes
376194
376194
  };
376195
376195
  }
376196
- function checkForReleaseNotesSync(lastSeenVersion, currentVersion = "1.37.0") {
376196
+ function checkForReleaseNotesSync(lastSeenVersion, currentVersion = "1.37.2") {
376197
376197
  if (process.env.USER_TYPE === "ant") {
376198
376198
  const changelog = "";
376199
376199
  if (changelog) {
@@ -377363,7 +377363,7 @@ function getRecentActivitySync() {
377363
377363
  return cachedActivity;
377364
377364
  }
377365
377365
  function getLogoDisplayData() {
377366
- const version2 = process.env.DEMO_VERSION ?? "1.37.0";
377366
+ const version2 = process.env.DEMO_VERSION ?? "1.37.2";
377367
377367
  const serverUrl = getDirectConnectServerUrl();
377368
377368
  const displayPath = process.env.DEMO_VERSION ? "/code/ur" : getDisplayPath(getCwd2());
377369
377369
  const cwd2 = serverUrl ? `${displayPath} in ${serverUrl.replace(/^https?:\/\//, "")}` : displayPath;
@@ -378152,7 +378152,7 @@ function LogoV2() {
378152
378152
  if ($3[2] === Symbol.for("react.memo_cache_sentinel")) {
378153
378153
  t2 = () => {
378154
378154
  const currentConfig2 = getGlobalConfig();
378155
- if (currentConfig2.lastReleaseNotesSeen === "1.37.0") {
378155
+ if (currentConfig2.lastReleaseNotesSeen === "1.37.2") {
378156
378156
  return;
378157
378157
  }
378158
378158
  saveGlobalConfig(_temp326);
@@ -378837,12 +378837,12 @@ function LogoV2() {
378837
378837
  return t41;
378838
378838
  }
378839
378839
  function _temp326(current) {
378840
- if (current.lastReleaseNotesSeen === "1.37.0") {
378840
+ if (current.lastReleaseNotesSeen === "1.37.2") {
378841
378841
  return current;
378842
378842
  }
378843
378843
  return {
378844
378844
  ...current,
378845
- lastReleaseNotesSeen: "1.37.0"
378845
+ lastReleaseNotesSeen: "1.37.2"
378846
378846
  };
378847
378847
  }
378848
378848
  function _temp243(s_0) {
@@ -594737,7 +594737,7 @@ async function captureMemoryDiagnostics(trigger2, dumpNumber = 0) {
594737
594737
  smapsRollup,
594738
594738
  platform: process.platform,
594739
594739
  nodeVersion: process.version,
594740
- ccVersion: "1.37.0"
594740
+ ccVersion: "1.37.2"
594741
594741
  };
594742
594742
  }
594743
594743
  async function performHeapDump(trigger2 = "manual", dumpNumber = 0) {
@@ -595323,7 +595323,7 @@ var init_bridge_kick = __esm(() => {
595323
595323
  var call137 = async () => {
595324
595324
  return {
595325
595325
  type: "text",
595326
- value: "1.37.0"
595326
+ value: "1.37.2"
595327
595327
  };
595328
595328
  }, version2, version_default;
595329
595329
  var init_version = __esm(() => {
@@ -605403,7 +605403,7 @@ function generateHtmlReport(data, insights) {
605403
605403
  </html>`;
605404
605404
  }
605405
605405
  function buildExportData(data, insights, facets, remoteStats) {
605406
- const version3 = typeof MACRO !== "undefined" ? "1.37.0" : "unknown";
605406
+ const version3 = typeof MACRO !== "undefined" ? "1.37.2" : "unknown";
605407
605407
  const remote_hosts_collected = remoteStats?.hosts.filter((h2) => h2.sessionCount > 0).map((h2) => h2.name);
605408
605408
  const facets_summary = {
605409
605409
  total: facets.size,
@@ -609683,7 +609683,7 @@ var init_sessionStorage = __esm(() => {
609683
609683
  init_settings2();
609684
609684
  init_slowOperations();
609685
609685
  init_uuid();
609686
- VERSION5 = typeof MACRO !== "undefined" ? "1.37.0" : "unknown";
609686
+ VERSION5 = typeof MACRO !== "undefined" ? "1.37.2" : "unknown";
609687
609687
  MAX_TOMBSTONE_REWRITE_BYTES = 50 * 1024 * 1024;
609688
609688
  SKIP_FIRST_PROMPT_PATTERN = /^(?:\s*<[a-z][\w-]*[\s>]|\[Request interrupted by user[^\]]*\])/;
609689
609689
  EPHEMERAL_PROGRESS_TYPES = new Set([
@@ -610888,7 +610888,7 @@ var init_filesystem = __esm(() => {
610888
610888
  });
610889
610889
  getBundledSkillsRoot = memoize_default(function getBundledSkillsRoot2() {
610890
610890
  const nonce = randomBytes18(16).toString("hex");
610891
- return join200(getURTempDir(), "bundled-skills", "1.37.0", nonce);
610891
+ return join200(getURTempDir(), "bundled-skills", "1.37.2", nonce);
610892
610892
  });
610893
610893
  getResolvedWorkingDirPaths = memoize_default(getPathsForPermissionCheck);
610894
610894
  });
@@ -617177,7 +617177,7 @@ function computeFingerprint(messageText2, version3) {
617177
617177
  }
617178
617178
  function computeFingerprintFromMessages(messages) {
617179
617179
  const firstMessageText = extractFirstMessageText(messages);
617180
- return computeFingerprint(firstMessageText, "1.37.0");
617180
+ return computeFingerprint(firstMessageText, "1.37.2");
617181
617181
  }
617182
617182
  var FINGERPRINT_SALT = "59cf53e54c78";
617183
617183
  var init_fingerprint = () => {};
@@ -619051,7 +619051,7 @@ async function sideQuery(opts) {
619051
619051
  betas.push(STRUCTURED_OUTPUTS_BETA_HEADER);
619052
619052
  }
619053
619053
  const messageText2 = extractFirstUserMessageText(messages);
619054
- const fingerprint = computeFingerprint(messageText2, "1.37.0");
619054
+ const fingerprint = computeFingerprint(messageText2, "1.37.2");
619055
619055
  const attributionHeader = getAttributionHeader(fingerprint);
619056
619056
  const systemBlocks = [
619057
619057
  attributionHeader ? { type: "text", text: attributionHeader } : null,
@@ -623788,7 +623788,7 @@ function buildSystemInitMessage(inputs) {
623788
623788
  slash_commands: inputs.commands.filter((c4) => c4.userInvocable !== false).map((c4) => c4.name),
623789
623789
  apiKeySource: getURHQApiKeyWithSource().source,
623790
623790
  betas: getSdkBetas(),
623791
- ur_version: "1.37.0",
623791
+ ur_version: "1.37.2",
623792
623792
  output_style: outputStyle2,
623793
623793
  agents: inputs.agents.map((agent) => agent.agentType),
623794
623794
  skills: inputs.skills.filter((s) => s.userInvocable !== false).map((skill2) => skill2.name),
@@ -638416,7 +638416,7 @@ var init_useVoiceEnabled = __esm(() => {
638416
638416
  function getSemverPart(version3) {
638417
638417
  return `${import_semver13.major(version3, { loose: true })}.${import_semver13.minor(version3, { loose: true })}.${import_semver13.patch(version3, { loose: true })}`;
638418
638418
  }
638419
- function useUpdateNotification(updatedVersion, initialVersion = "1.37.0") {
638419
+ function useUpdateNotification(updatedVersion, initialVersion = "1.37.2") {
638420
638420
  const [lastNotifiedSemver, setLastNotifiedSemver] = import_react226.useState(() => getSemverPart(initialVersion));
638421
638421
  if (!updatedVersion) {
638422
638422
  return null;
@@ -638465,7 +638465,7 @@ function AutoUpdater({
638465
638465
  return;
638466
638466
  }
638467
638467
  if (false) {}
638468
- const currentVersion = "1.37.0";
638468
+ const currentVersion = "1.37.2";
638469
638469
  const channel = getInitialSettings()?.autoUpdatesChannel ?? "latest";
638470
638470
  let latestVersion = await getLatestVersion(channel);
638471
638471
  const isDisabled = isAutoUpdaterDisabled();
@@ -638694,12 +638694,12 @@ function NativeAutoUpdater({
638694
638694
  logEvent("tengu_native_auto_updater_start", {});
638695
638695
  try {
638696
638696
  const maxVersion = await getMaxVersion();
638697
- if (maxVersion && gt("1.37.0", maxVersion)) {
638697
+ if (maxVersion && gt("1.37.2", maxVersion)) {
638698
638698
  const msg = await getMaxVersionMessage();
638699
638699
  setMaxVersionIssue(msg ?? "affects your version");
638700
638700
  }
638701
638701
  const result = await installLatest(channel);
638702
- const currentVersion = "1.37.0";
638702
+ const currentVersion = "1.37.2";
638703
638703
  const latencyMs = Date.now() - startTime;
638704
638704
  if (result.lockFailed) {
638705
638705
  logEvent("tengu_native_auto_updater_lock_contention", {
@@ -638836,17 +638836,17 @@ function PackageManagerAutoUpdater(t0) {
638836
638836
  const maxVersion = await getMaxVersion();
638837
638837
  if (maxVersion && latest && gt(latest, maxVersion)) {
638838
638838
  logForDebugging(`PackageManagerAutoUpdater: maxVersion ${maxVersion} is set, capping update from ${latest} to ${maxVersion}`);
638839
- if (gte("1.37.0", maxVersion)) {
638840
- logForDebugging(`PackageManagerAutoUpdater: current version ${"1.37.0"} is already at or above maxVersion ${maxVersion}, skipping update`);
638839
+ if (gte("1.37.2", maxVersion)) {
638840
+ logForDebugging(`PackageManagerAutoUpdater: current version ${"1.37.2"} is already at or above maxVersion ${maxVersion}, skipping update`);
638841
638841
  setUpdateAvailable(false);
638842
638842
  return;
638843
638843
  }
638844
638844
  latest = maxVersion;
638845
638845
  }
638846
- const hasUpdate = latest && !gte("1.37.0", latest) && !shouldSkipVersion(latest);
638846
+ const hasUpdate = latest && !gte("1.37.2", latest) && !shouldSkipVersion(latest);
638847
638847
  setUpdateAvailable(!!hasUpdate);
638848
638848
  if (hasUpdate) {
638849
- logForDebugging(`PackageManagerAutoUpdater: Update available ${"1.37.0"} -> ${latest}`);
638849
+ logForDebugging(`PackageManagerAutoUpdater: Update available ${"1.37.2"} -> ${latest}`);
638850
638850
  }
638851
638851
  };
638852
638852
  $3[0] = t1;
@@ -638880,7 +638880,7 @@ function PackageManagerAutoUpdater(t0) {
638880
638880
  wrap: "truncate",
638881
638881
  children: [
638882
638882
  "currentVersion: ",
638883
- "1.37.0"
638883
+ "1.37.2"
638884
638884
  ]
638885
638885
  }, undefined, true, undefined, this);
638886
638886
  $3[3] = verbose;
@@ -651332,7 +651332,7 @@ function buildStatusLineCommandInput(permissionMode, exceeds200kTokens, settings
651332
651332
  project_dir: getOriginalCwd(),
651333
651333
  added_dirs: addedDirs
651334
651334
  },
651335
- version: "1.37.0",
651335
+ version: "1.37.2",
651336
651336
  output_style: {
651337
651337
  name: outputStyleName
651338
651338
  },
@@ -651415,7 +651415,7 @@ function StatusLineInner({
651415
651415
  const taskValues = Object.values(tasks2);
651416
651416
  const taskRunningCount = taskValues.filter((task2) => task2.status === "running" || task2.status === "pending").length;
651417
651417
  const defaultStatusLineText = buildDefaultStatusBar({
651418
- version: "1.37.0",
651418
+ version: "1.37.2",
651419
651419
  providerLabel: providerRuntime.providerLabel,
651420
651420
  authMode: providerRuntime.authLabel,
651421
651421
  model: providerRuntime.model ?? renderModelName(mainLoopModel),
@@ -662903,7 +662903,7 @@ async function submitTranscriptShare(messages, trigger2, appearanceId) {
662903
662903
  } catch {}
662904
662904
  const data = {
662905
662905
  trigger: trigger2,
662906
- version: "1.37.0",
662906
+ version: "1.37.2",
662907
662907
  platform: process.platform,
662908
662908
  transcript,
662909
662909
  subagentTranscripts: Object.keys(subagentTranscripts).length > 0 ? subagentTranscripts : undefined,
@@ -674787,7 +674787,7 @@ function WelcomeV2() {
674787
674787
  dimColor: true,
674788
674788
  children: [
674789
674789
  "v",
674790
- "1.37.0"
674790
+ "1.37.2"
674791
674791
  ]
674792
674792
  }, undefined, true, undefined, this)
674793
674793
  ]
@@ -676047,7 +676047,7 @@ function completeOnboarding() {
676047
676047
  saveGlobalConfig((current) => ({
676048
676048
  ...current,
676049
676049
  hasCompletedOnboarding: true,
676050
- lastOnboardingVersion: "1.37.0"
676050
+ lastOnboardingVersion: "1.37.2"
676051
676051
  }));
676052
676052
  }
676053
676053
  function showDialog(root2, renderer) {
@@ -681084,7 +681084,7 @@ function appendToLog(path24, message) {
681084
681084
  cwd: getFsImplementation().cwd(),
681085
681085
  userType: process.env.USER_TYPE,
681086
681086
  sessionId: getSessionId(),
681087
- version: "1.37.0"
681087
+ version: "1.37.2"
681088
681088
  };
681089
681089
  getLogWriter(path24).write(messageWithTimestamp);
681090
681090
  }
@@ -685178,8 +685178,8 @@ async function getEnvLessBridgeConfig() {
685178
685178
  }
685179
685179
  async function checkEnvLessBridgeMinVersion() {
685180
685180
  const cfg = await getEnvLessBridgeConfig();
685181
- if (cfg.min_version && lt("1.37.0", cfg.min_version)) {
685182
- return `Your version of UR (${"1.37.0"}) is too old for Remote Control.
685181
+ if (cfg.min_version && lt("1.37.2", cfg.min_version)) {
685182
+ return `Your version of UR (${"1.37.2"}) is too old for Remote Control.
685183
685183
  Version ${cfg.min_version} or higher is required. Run \`ur update\` to update.`;
685184
685184
  }
685185
685185
  return null;
@@ -685653,7 +685653,7 @@ async function initBridgeCore(params) {
685653
685653
  const rawApi = createBridgeApiClient({
685654
685654
  baseUrl,
685655
685655
  getAccessToken,
685656
- runnerVersion: "1.37.0",
685656
+ runnerVersion: "1.37.2",
685657
685657
  onDebug: logForDebugging,
685658
685658
  onAuth401,
685659
685659
  getTrustedDeviceToken
@@ -691335,7 +691335,7 @@ async function startMCPServer(cwd3, debug2, verbose) {
691335
691335
  setCwd(cwd3);
691336
691336
  const server2 = new Server({
691337
691337
  name: "ur/tengu",
691338
- version: "1.37.0"
691338
+ version: "1.37.2"
691339
691339
  }, {
691340
691340
  capabilities: {
691341
691341
  tools: {}
@@ -691875,6 +691875,8 @@ var init_mcp5 = __esm(() => {
691875
691875
  var exports_providers = {};
691876
691876
  __export(exports_providers, {
691877
691877
  providerStatusHandler: () => providerStatusHandler,
691878
+ providerSelectModelHandler: () => providerSelectModelHandler,
691879
+ providerModelsHandler: () => providerModelsHandler,
691878
691880
  providerListHandler: () => providerListHandler,
691879
691881
  providerDoctorHandler: () => providerDoctorHandler,
691880
691882
  providerAuthHandler: () => providerAuthHandler,
@@ -691918,6 +691920,68 @@ async function providerDoctorHandler(providerArg, options2 = {}) {
691918
691920
  writeOutput(formatProviderDoctor(result, Boolean(options2.json)));
691919
691921
  process.exit(result.ok ? 0 : 1);
691920
691922
  }
691923
+ async function providerModelsHandler(providerArg, options2 = {}) {
691924
+ const settings = getInitialSettings();
691925
+ const active = getActiveProviderSettings(settings).active ?? "ollama";
691926
+ const provider = providerArg ? resolveProviderId(providerArg) : active;
691927
+ if (!provider) {
691928
+ writeError(`Unknown provider "${providerArg}". Run: ur provider list`);
691929
+ process.exit(1);
691930
+ }
691931
+ const result = await listModelsForProviderWithSource(provider, { settings });
691932
+ const definition = getProviderDefinition(provider);
691933
+ const payload = {
691934
+ provider,
691935
+ displayName: definition.displayName,
691936
+ source: result.source,
691937
+ warning: result.warning,
691938
+ models: result.models
691939
+ };
691940
+ if (options2.json) {
691941
+ writeOutput(JSON.stringify(payload, null, 2));
691942
+ } else {
691943
+ const warning = result.warning ? [`Warning: ${result.warning}`] : [];
691944
+ writeOutput([
691945
+ `Provider: ${definition.displayName} (${provider})`,
691946
+ `Model source: ${result.source}`,
691947
+ ...warning,
691948
+ ...result.models.map((model) => `${model.id}${model.isDefault ? " (default)" : ""} - ${model.description}`)
691949
+ ].join(`
691950
+ `));
691951
+ }
691952
+ process.exit(result.models.length > 0 ? 0 : 1);
691953
+ }
691954
+ async function providerSelectModelHandler(providerArg, values2, options2 = {}) {
691955
+ const model = Array.isArray(values2) ? values2.join(" ") : values2;
691956
+ const provider = resolveProviderId(providerArg);
691957
+ if (!provider) {
691958
+ const message = `Unknown provider "${providerArg}". Run: ur provider list`;
691959
+ if (options2.json)
691960
+ writeOutput(JSON.stringify({ ok: false, message }, null, 2));
691961
+ else
691962
+ writeError(message);
691963
+ process.exit(1);
691964
+ }
691965
+ const settings = getInitialSettings();
691966
+ const discovered = await listModelsForProviderWithSource(provider, { settings });
691967
+ const result = setProviderModel(provider, model, {
691968
+ availableModels: discovered.models,
691969
+ modelSource: discovered.source
691970
+ });
691971
+ if (options2.json) {
691972
+ writeOutput(JSON.stringify({
691973
+ ...result,
691974
+ warning: discovered.warning
691975
+ }, null, 2));
691976
+ } else if (result.ok) {
691977
+ writeOutput(result.message);
691978
+ if (discovered.warning)
691979
+ writeError(`Warning: ${discovered.warning}`);
691980
+ } else {
691981
+ writeError(result.message);
691982
+ }
691983
+ process.exit(result.ok ? 0 : 1);
691984
+ }
691921
691985
  async function providerAuthHandler(alias2, options2 = {}) {
691922
691986
  const result = await launchProviderAuth(alias2, {
691923
691987
  deviceAuth: options2.deviceAuth,
@@ -693313,7 +693377,7 @@ async function update() {
693313
693377
  logEvent("tengu_update_check", {});
693314
693378
  const diagnostic = await getDoctorDiagnostic();
693315
693379
  const result = await checkUpgradeStatus({
693316
- currentVersion: "1.37.0",
693380
+ currentVersion: "1.37.2",
693317
693381
  packageName: UR_AGENT_PACKAGE_NAME,
693318
693382
  installationType: diagnostic.installationType,
693319
693383
  latestVersion: () => getLatestNpmPackageVersion(UR_AGENT_PACKAGE_NAME)
@@ -694559,7 +694623,7 @@ ${customInstructions}` : customInstructions;
694559
694623
  }
694560
694624
  }
694561
694625
  logForDiagnosticsNoPII("info", "started", {
694562
- version: "1.37.0",
694626
+ version: "1.37.2",
694563
694627
  is_native_binary: isInBundledMode()
694564
694628
  });
694565
694629
  registerCleanup(async () => {
@@ -695345,7 +695409,7 @@ Usage: ur --remote "your task description"`, () => gracefulShutdown(1));
695345
695409
  pendingHookMessages
695346
695410
  }, renderAndRun);
695347
695411
  }
695348
- }).version("1.37.0 (UR-AGENT)", "-v, --version", "Output the version number");
695412
+ }).version("1.37.2 (UR-AGENT)", "-v, --version", "Output the version number");
695349
695413
  program2.option("-w, --worktree [name]", "Create a new git worktree for this session (optionally specify a name)");
695350
695414
  program2.option("--tmux", "Create a tmux session for the worktree (requires --worktree). Uses iTerm2 native panes when available; use --tmux=classic for traditional tmux.");
695351
695415
  if (canUserConfigureAdvisor()) {
@@ -695512,6 +695576,18 @@ Usage: ur --remote "your task description"`, () => gracefulShutdown(1));
695512
695576
  } = await Promise.resolve().then(() => (init_providers2(), exports_providers));
695513
695577
  await providerDoctorHandler2(providerArg, options2);
695514
695578
  });
695579
+ provider.command("models [provider]").description("List models available for a provider").option("--json", "Output as JSON").action(async (providerArg, options2) => {
695580
+ const {
695581
+ providerModelsHandler: providerModelsHandler2
695582
+ } = await Promise.resolve().then(() => (init_providers2(), exports_providers));
695583
+ await providerModelsHandler2(providerArg, options2);
695584
+ });
695585
+ provider.command("select-model <provider> <model...>").description("Select a provider-scoped model").option("--json", "Output as JSON").action(async (providerArg, model, options2) => {
695586
+ const {
695587
+ providerSelectModelHandler: providerSelectModelHandler2
695588
+ } = await Promise.resolve().then(() => (init_providers2(), exports_providers));
695589
+ await providerSelectModelHandler2(providerArg, model, options2);
695590
+ });
695515
695591
  const configCmd = program2.command("config").description("Manage safe UR-AGENT settings").configureHelp(createSortedHelpConfig());
695516
695592
  configCmd.command("set <key> <value...>").description("Set a safe non-secret setting: provider, provider.fallback, provider.command_path, model, or base_url").action(async (key, value) => {
695517
695593
  const {
@@ -696248,7 +696324,7 @@ if (false) {}
696248
696324
  async function main2() {
696249
696325
  const args = process.argv.slice(2);
696250
696326
  if (args.length === 1 && (args[0] === "--version" || args[0] === "-v" || args[0] === "-V")) {
696251
- console.log(`${"1.37.0"} (UR-AGENT)`);
696327
+ console.log(`${"1.37.2"} (UR-AGENT)`);
696252
696328
  return;
696253
696329
  }
696254
696330
  if (args[0] === "a2a" && args[1] === "serve" && !args.includes("--help") && !args.includes("-h")) {
@@ -44,6 +44,7 @@ Provider configuration commands:
44
44
  ur provider list
45
45
  ur provider doctor
46
46
  ur provider status
47
+ ur provider models [provider] --json
47
48
  ur config set provider ollama
48
49
  ur config set provider openai-api
49
50
  ur config set provider anthropic-api
@@ -53,6 +54,7 @@ ur config set provider openai-compatible
53
54
  ur provider doctor agy
54
55
  ur config set provider.fallback ollama
55
56
  ur config set model <model>
57
+ ur provider select-model <provider> <model> --json
56
58
  ur config set base_url <url>
57
59
  ```
58
60