ur-agent 1.33.0 → 1.35.0

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
@@ -51616,7 +51616,6 @@ __export(exports_providerRegistry, {
51616
51616
  isProviderRuntimeSelectable: () => isProviderRuntimeSelectable,
51617
51617
  isProviderId: () => isProviderId,
51618
51618
  isModelSupportedByProvider: () => isModelSupportedByProvider,
51619
- isExternalBridgeEnabled: () => isExternalBridgeEnabled,
51620
51619
  getValidModelIdsForProvider: () => getValidModelIdsForProvider,
51621
51620
  getRuntimeProviderId: () => getRuntimeProviderId,
51622
51621
  getProviderStatus: () => getProviderStatus,
@@ -51635,8 +51634,6 @@ __export(exports_providerRegistry, {
51635
51634
  formatProviderList: () => formatProviderList,
51636
51635
  formatProviderDoctor: () => formatProviderDoctor,
51637
51636
  formatInvalidProviderModelMessage: () => formatInvalidProviderModelMessage,
51638
- externalAppProviderBridgeEnabled: () => externalAppProviderBridgeEnabled,
51639
- enableExternalBridge: () => enableExternalBridge,
51640
51637
  doctorProvider: () => doctorProvider,
51641
51638
  doctorActiveProvider: () => doctorActiveProvider,
51642
51639
  credentialTypeLabel: () => credentialTypeLabel,
@@ -51774,41 +51771,6 @@ function credentialTypeLabel(type) {
51774
51771
  return "OpenAI-compatible endpoint";
51775
51772
  }
51776
51773
  }
51777
- function externalAppProviderBridgeEnabled(env4 = process.env) {
51778
- return env4.UR_ENABLE_EXTERNAL_APP_PROVIDERS === "1";
51779
- }
51780
- function isExternalBridgeEnabled(providerId, env4 = process.env, settings = getInitialSettings()) {
51781
- if (externalAppProviderBridgeEnabled(env4)) {
51782
- return true;
51783
- }
51784
- const provider = resolveProviderId(providerId);
51785
- const enabled = settings.provider?.enabledExternalBridges;
51786
- return Boolean(provider && Array.isArray(enabled) && enabled.includes(provider));
51787
- }
51788
- function enableExternalBridge(providerId) {
51789
- const provider = resolveProviderId(providerId);
51790
- if (!provider) {
51791
- return { ok: false, message: `Unknown provider "${providerId}". Run: ur provider list` };
51792
- }
51793
- if (getProviderDefinition(provider).runtimeKind !== "external-app") {
51794
- return { ok: true, message: `${provider} does not require an external-app opt-in.` };
51795
- }
51796
- const settings = getInitialSettings();
51797
- const current = settings.provider?.enabledExternalBridges ?? [];
51798
- if (current.includes(provider)) {
51799
- return { ok: true, message: `${provider} is already enabled.` };
51800
- }
51801
- const result = updateSettingsForSource("userSettings", {
51802
- provider: {
51803
- ...settings.provider ?? {},
51804
- enabledExternalBridges: [...current, provider]
51805
- }
51806
- });
51807
- if (result.error) {
51808
- return { ok: false, message: `Failed to persist opt-in: ${result.error.message}` };
51809
- }
51810
- return { ok: true, message: `Enabled ${provider} for this account.` };
51811
- }
51812
51774
  function getProviderRuntimeKind(providerId) {
51813
51775
  const provider = resolveProviderId(providerId);
51814
51776
  return provider ? getProviderDefinition(provider).runtimeKind : "unknown";
@@ -51818,24 +51780,16 @@ function getProviderRuntimeBlockReason(providerId, env4 = process.env, settings
51818
51780
  if (!provider) {
51819
51781
  return `Unknown provider "${providerId}". Run: ur provider list`;
51820
51782
  }
51821
- const definition = getProviderDefinition(provider);
51822
51783
  if (provider === "subscription") {
51823
- return `Provider "subscription" represents subscription login, but no independent subscription runtime is configured. UR will not fake subscription models or call provider apps by default. Choose a local, server, or API provider with /model.`;
51824
- }
51825
- if (definition.runtimeKind !== "external-app") {
51826
- return null;
51827
- }
51828
- if (isExternalBridgeEnabled(provider, env4, settings)) {
51829
- return null;
51784
+ return `Provider "subscription" is an internal placeholder. Choose a specific subscription (codex-cli, claude-code-cli, gemini-cli, antigravity-cli) or an API/local/server provider with /model.`;
51830
51785
  }
51831
- return `Provider "${provider}" uses an external app bridge (${definition.displayName}). Connect it once with \`ur connect ${provider}\` (or set UR_ENABLE_EXTERNAL_APP_PROVIDERS=1) to enable it. Otherwise choose an API/local/server provider such as openai-api, anthropic-api, gemini-api, openrouter, ollama, lmstudio, llama.cpp, or vllm.`;
51786
+ return null;
51832
51787
  }
51833
51788
  function isProviderRuntimeSelectable(providerId, env4 = process.env) {
51834
51789
  return getProviderRuntimeBlockReason(providerId, env4) === null;
51835
51790
  }
51836
- function listProviders(options = {}) {
51837
- const includeExternal = options.includeExternalAppBridges ?? externalAppProviderBridgeEnabled(options.env ?? process.env);
51838
- return PROVIDER_IDS.map((id) => PROVIDERS[id]).filter((provider) => includeExternal || provider.runtimeKind !== "external-app");
51791
+ function listProviders(_options = {}) {
51792
+ return PROVIDER_IDS.map((id) => PROVIDERS[id]).filter((provider) => provider.id !== "subscription");
51839
51793
  }
51840
51794
  function hasSecretLikeValue(value) {
51841
51795
  const trimmed = value.trim();
@@ -69518,7 +69472,7 @@ var init_auth = __esm(() => {
69518
69472
 
69519
69473
  // src/utils/userAgent.ts
69520
69474
  function getURCodeUserAgent() {
69521
- return `ur/${"1.33.0"}`;
69475
+ return `ur/${"1.35.0"}`;
69522
69476
  }
69523
69477
 
69524
69478
  // src/utils/workloadContext.ts
@@ -69540,7 +69494,7 @@ function getUserAgent() {
69540
69494
  const clientApp = process.env.UR_AGENT_SDK_CLIENT_APP ? `, client-app/${process.env.UR_AGENT_SDK_CLIENT_APP}` : "";
69541
69495
  const workload = getWorkload();
69542
69496
  const workloadSuffix = workload ? `, workload/${workload}` : "";
69543
- return `ur-cli/${"1.33.0"} (${process.env.USER_TYPE}, ${process.env.UR_CODE_ENTRYPOINT ?? "cli"}${agentSdkVersion}${clientApp}${workloadSuffix})`;
69497
+ return `ur-cli/${"1.35.0"} (${process.env.USER_TYPE}, ${process.env.UR_CODE_ENTRYPOINT ?? "cli"}${agentSdkVersion}${clientApp}${workloadSuffix})`;
69544
69498
  }
69545
69499
  function getMCPUserAgent() {
69546
69500
  const parts = [];
@@ -69554,7 +69508,7 @@ function getMCPUserAgent() {
69554
69508
  parts.push(`client-app/${process.env.UR_AGENT_SDK_CLIENT_APP}`);
69555
69509
  }
69556
69510
  const suffix = parts.length > 0 ? ` (${parts.join(", ")})` : "";
69557
- return `ur/${"1.33.0"}${suffix}`;
69511
+ return `ur/${"1.35.0"}${suffix}`;
69558
69512
  }
69559
69513
  function getWebFetchUserAgent() {
69560
69514
  return `UR-User (${getURCodeUserAgent()})`;
@@ -69692,7 +69646,7 @@ var init_user = __esm(() => {
69692
69646
  deviceId,
69693
69647
  sessionId: getSessionId(),
69694
69648
  email: getEmail(),
69695
- appVersion: "1.33.0",
69649
+ appVersion: "1.35.0",
69696
69650
  platform: getHostPlatformForAnalytics(),
69697
69651
  organizationUuid,
69698
69652
  accountUuid,
@@ -76209,7 +76163,7 @@ var init_metadata = __esm(() => {
76209
76163
  COMPOUND_OPERATOR_REGEX = /\s*(?:&&|\|\||[;|])\s*/;
76210
76164
  WHITESPACE_REGEX = /\s+/;
76211
76165
  getVersionBase = memoize_default(() => {
76212
- const match = "1.33.0".match(/^\d+\.\d+\.\d+(?:-[a-z]+)?/);
76166
+ const match = "1.35.0".match(/^\d+\.\d+\.\d+(?:-[a-z]+)?/);
76213
76167
  return match ? match[0] : undefined;
76214
76168
  });
76215
76169
  buildEnvContext = memoize_default(async () => {
@@ -76249,7 +76203,7 @@ var init_metadata = __esm(() => {
76249
76203
  isGithubAction: isEnvTruthy(process.env.GITHUB_ACTIONS),
76250
76204
  isURCodeAction: isEnvTruthy(process.env.UR_CODE_ACTION),
76251
76205
  isURAiAuth: isURAISubscriber2(),
76252
- version: "1.33.0",
76206
+ version: "1.35.0",
76253
76207
  versionBase: getVersionBase(),
76254
76208
  buildTime: "",
76255
76209
  deploymentEnvironment: env2.detectDeploymentEnvironment(),
@@ -76919,7 +76873,7 @@ function initialize1PEventLogging() {
76919
76873
  const platform2 = getPlatform();
76920
76874
  const attributes = {
76921
76875
  [import_semantic_conventions4.ATTR_SERVICE_NAME]: "ur",
76922
- [import_semantic_conventions4.ATTR_SERVICE_VERSION]: "1.33.0"
76876
+ [import_semantic_conventions4.ATTR_SERVICE_VERSION]: "1.35.0"
76923
76877
  };
76924
76878
  if (platform2 === "wsl") {
76925
76879
  const wslVersion = getWslVersion();
@@ -76946,7 +76900,7 @@ function initialize1PEventLogging() {
76946
76900
  })
76947
76901
  ]
76948
76902
  });
76949
- firstPartyEventLogger = firstPartyEventLoggerProvider.getLogger("com.urhq.ur.events", "1.33.0");
76903
+ firstPartyEventLogger = firstPartyEventLoggerProvider.getLogger("com.urhq.ur.events", "1.35.0");
76950
76904
  }
76951
76905
  async function reinitialize1PEventLoggingIfConfigChanged() {
76952
76906
  if (!is1PEventLoggingEnabled() || !firstPartyEventLoggerProvider) {
@@ -82243,7 +82197,7 @@ function formatAgentTrendReport(report = buildAgentTrendReport()) {
82243
82197
  function formatA2AAgentCard(options = {}, pretty = true) {
82244
82198
  return JSON.stringify(buildA2AAgentCard(options), null, pretty ? 2 : 0);
82245
82199
  }
82246
- var urVersion = "1.33.0", coverage, priorityRoadmap;
82200
+ var urVersion = "1.35.0", coverage, priorityRoadmap;
82247
82201
  var init_trends = __esm(() => {
82248
82202
  coverage = [
82249
82203
  {
@@ -84236,7 +84190,7 @@ function getAttributionHeader(fingerprint) {
84236
84190
  if (!isAttributionHeaderEnabled()) {
84237
84191
  return "";
84238
84192
  }
84239
- const version2 = `${"1.33.0"}.${fingerprint}`;
84193
+ const version2 = `${"1.35.0"}.${fingerprint}`;
84240
84194
  const entrypoint = process.env.UR_CODE_ENTRYPOINT ?? "unknown";
84241
84195
  const cch = "";
84242
84196
  const workload = getWorkload();
@@ -191890,7 +191844,7 @@ function getTelemetryAttributes() {
191890
191844
  attributes["session.id"] = sessionId;
191891
191845
  }
191892
191846
  if (shouldIncludeAttribute("OTEL_METRICS_INCLUDE_VERSION")) {
191893
- attributes["app.version"] = "1.33.0";
191847
+ attributes["app.version"] = "1.35.0";
191894
191848
  }
191895
191849
  const oauthAccount = getOauthAccountInfo();
191896
191850
  if (oauthAccount) {
@@ -227275,7 +227229,7 @@ function getInstallationEnv() {
227275
227229
  return;
227276
227230
  }
227277
227231
  function getURCodeVersion() {
227278
- return "1.33.0";
227232
+ return "1.35.0";
227279
227233
  }
227280
227234
  async function getInstalledVSCodeExtensionVersion(command) {
227281
227235
  const { stdout } = await execFileNoThrow(command, ["--list-extensions", "--show-versions"], {
@@ -230114,7 +230068,7 @@ async function setupSdkMcpClients(sdkMcpConfigs, sendMcpMessage) {
230114
230068
  const client2 = new Client({
230115
230069
  name: "ur",
230116
230070
  title: "UR",
230117
- version: "1.33.0",
230071
+ version: "1.35.0",
230118
230072
  description: "UR-AGENT autonomous engineering workflow engine",
230119
230073
  websiteUrl: PRODUCT_URL
230120
230074
  }, {
@@ -230468,7 +230422,7 @@ var init_client5 = __esm(() => {
230468
230422
  const client2 = new Client({
230469
230423
  name: "ur",
230470
230424
  title: "UR",
230471
- version: "1.33.0",
230425
+ version: "1.35.0",
230472
230426
  description: "UR-AGENT autonomous engineering workflow engine",
230473
230427
  websiteUrl: PRODUCT_URL
230474
230428
  }, {
@@ -240282,9 +240236,9 @@ async function assertMinVersion() {
240282
240236
  if (false) {}
240283
240237
  try {
240284
240238
  const versionConfig = await getDynamicConfig_BLOCKS_ON_INIT("tengu_version_config", { minVersion: "0.0.0" });
240285
- if (versionConfig.minVersion && lt("1.33.0", versionConfig.minVersion)) {
240239
+ if (versionConfig.minVersion && lt("1.35.0", versionConfig.minVersion)) {
240286
240240
  console.error(`
240287
- It looks like your version of UR (${"1.33.0"}) needs an update.
240241
+ It looks like your version of UR (${"1.35.0"}) needs an update.
240288
240242
  A newer version (${versionConfig.minVersion} or higher) is required to continue.
240289
240243
 
240290
240244
  To update, please run:
@@ -240500,7 +240454,7 @@ async function installGlobalPackage(specificVersion) {
240500
240454
  logError2(new AutoUpdaterError("Another process is currently installing an update"));
240501
240455
  logEvent("tengu_auto_updater_lock_contention", {
240502
240456
  pid: process.pid,
240503
- currentVersion: "1.33.0"
240457
+ currentVersion: "1.35.0"
240504
240458
  });
240505
240459
  return "in_progress";
240506
240460
  }
@@ -240509,7 +240463,7 @@ async function installGlobalPackage(specificVersion) {
240509
240463
  if (!env2.isRunningWithBun() && env2.isNpmFromWindowsPath()) {
240510
240464
  logError2(new Error("Windows NPM detected in WSL environment"));
240511
240465
  logEvent("tengu_auto_updater_windows_npm_in_wsl", {
240512
- currentVersion: "1.33.0"
240466
+ currentVersion: "1.35.0"
240513
240467
  });
240514
240468
  console.error(`
240515
240469
  Error: Windows NPM detected in WSL
@@ -241044,7 +240998,7 @@ function detectLinuxGlobPatternWarnings() {
241044
240998
  }
241045
240999
  async function getDoctorDiagnostic() {
241046
241000
  const installationType = await getCurrentInstallationType();
241047
- const version2 = typeof MACRO !== "undefined" ? "1.33.0" : "unknown";
241001
+ const version2 = typeof MACRO !== "undefined" ? "1.35.0" : "unknown";
241048
241002
  const installationPath = await getInstallationPath();
241049
241003
  const invokedBinary = getInvokedBinary();
241050
241004
  const multipleInstallations = await detectMultipleInstallations();
@@ -241979,8 +241933,8 @@ async function updateLatest(channelOrVersion, forceReinstall = false) {
241979
241933
  const maxVersion = await getMaxVersion();
241980
241934
  if (maxVersion && gt(version2, maxVersion)) {
241981
241935
  logForDebugging(`Native installer: maxVersion ${maxVersion} is set, capping update from ${version2} to ${maxVersion}`);
241982
- if (gte("1.33.0", maxVersion)) {
241983
- logForDebugging(`Native installer: current version ${"1.33.0"} is already at or above maxVersion ${maxVersion}, skipping update`);
241936
+ if (gte("1.35.0", maxVersion)) {
241937
+ logForDebugging(`Native installer: current version ${"1.35.0"} is already at or above maxVersion ${maxVersion}, skipping update`);
241984
241938
  logEvent("tengu_native_update_skipped_max_version", {
241985
241939
  latency_ms: Date.now() - startTime,
241986
241940
  max_version: maxVersion,
@@ -241991,7 +241945,7 @@ async function updateLatest(channelOrVersion, forceReinstall = false) {
241991
241945
  version2 = maxVersion;
241992
241946
  }
241993
241947
  }
241994
- if (!forceReinstall && version2 === "1.33.0" && await versionIsAvailable(version2) && await isPossibleURBinary(executablePath)) {
241948
+ if (!forceReinstall && version2 === "1.35.0" && await versionIsAvailable(version2) && await isPossibleURBinary(executablePath)) {
241995
241949
  logForDebugging(`Found ${version2} at ${executablePath}, skipping install`);
241996
241950
  logEvent("tengu_native_update_complete", {
241997
241951
  latency_ms: Date.now() - startTime,
@@ -338895,7 +338849,7 @@ function Feedback({
338895
338849
  platform: env2.platform,
338896
338850
  gitRepo: envInfo.isGit,
338897
338851
  terminal: env2.terminal,
338898
- version: "1.33.0",
338852
+ version: "1.35.0",
338899
338853
  transcript: normalizeMessagesForAPI(messages),
338900
338854
  errors: sanitizedErrors,
338901
338855
  lastApiRequest: getLastAPIRequest(),
@@ -339087,7 +339041,7 @@ function Feedback({
339087
339041
  ", ",
339088
339042
  env2.terminal,
339089
339043
  ", v",
339090
- "1.33.0"
339044
+ "1.35.0"
339091
339045
  ]
339092
339046
  }, undefined, true, undefined, this)
339093
339047
  ]
@@ -339193,7 +339147,7 @@ ${sanitizedDescription}
339193
339147
  ` + `**Environment Info**
339194
339148
  ` + `- Platform: ${env2.platform}
339195
339149
  ` + `- Terminal: ${env2.terminal}
339196
- ` + `- Version: ${"1.33.0"}
339150
+ ` + `- Version: ${"1.35.0"}
339197
339151
  ` + `- Feedback ID: ${feedbackId}
339198
339152
  ` + `
339199
339153
  **Errors**
@@ -342304,7 +342258,7 @@ function buildPrimarySection() {
342304
342258
  }, undefined, false, undefined, this);
342305
342259
  return [{
342306
342260
  label: "Version",
342307
- value: "1.33.0"
342261
+ value: "1.35.0"
342308
342262
  }, {
342309
342263
  label: "Session name",
342310
342264
  value: nameValue
@@ -345604,7 +345558,7 @@ function Config({
345604
345558
  }
345605
345559
  }, undefined, false, undefined, this)
345606
345560
  }, undefined, false, undefined, this) : showSubmenu === "ChannelDowngrade" ? /* @__PURE__ */ jsx_dev_runtime177.jsxDEV(ChannelDowngradeDialog, {
345607
- currentVersion: "1.33.0",
345561
+ currentVersion: "1.35.0",
345608
345562
  onChoice: (choice) => {
345609
345563
  setShowSubmenu(null);
345610
345564
  setTabsHidden(false);
@@ -345616,7 +345570,7 @@ function Config({
345616
345570
  autoUpdatesChannel: "stable"
345617
345571
  };
345618
345572
  if (choice === "stay") {
345619
- newSettings.minimumVersion = "1.33.0";
345573
+ newSettings.minimumVersion = "1.35.0";
345620
345574
  }
345621
345575
  updateSettingsForSource("userSettings", newSettings);
345622
345576
  setSettingsData((prev_27) => ({
@@ -353686,7 +353640,7 @@ function HelpV2(t0) {
353686
353640
  let t6;
353687
353641
  if ($3[31] !== tabs) {
353688
353642
  t6 = /* @__PURE__ */ jsx_dev_runtime204.jsxDEV(Tabs, {
353689
- title: `UR v${"1.33.0"}`,
353643
+ title: `UR v${"1.35.0"}`,
353690
353644
  color: "professionalBlue",
353691
353645
  defaultTab: "general",
353692
353646
  children: tabs
@@ -354432,7 +354386,7 @@ function buildToolUseContext(tools, readFileStateCache) {
354432
354386
  async function handleInitialize(options2) {
354433
354387
  return {
354434
354388
  name: "ur-agent",
354435
- version: "1.33.0",
354389
+ version: "1.35.0",
354436
354390
  protocolVersion: "0.1.0",
354437
354391
  workspaceRoot: options2.cwd,
354438
354392
  capabilities: {
@@ -374556,7 +374510,7 @@ function getAllReleaseNotes(changelogContent = getStoredChangelogFromMemory()) {
374556
374510
  return [];
374557
374511
  }
374558
374512
  }
374559
- async function checkForReleaseNotes(lastSeenVersion, currentVersion = "1.33.0") {
374513
+ async function checkForReleaseNotes(lastSeenVersion, currentVersion = "1.35.0") {
374560
374514
  if (process.env.USER_TYPE === "ant") {
374561
374515
  const changelog = "";
374562
374516
  if (changelog) {
@@ -374583,7 +374537,7 @@ async function checkForReleaseNotes(lastSeenVersion, currentVersion = "1.33.0")
374583
374537
  releaseNotes
374584
374538
  };
374585
374539
  }
374586
- function checkForReleaseNotesSync(lastSeenVersion, currentVersion = "1.33.0") {
374540
+ function checkForReleaseNotesSync(lastSeenVersion, currentVersion = "1.35.0") {
374587
374541
  if (process.env.USER_TYPE === "ant") {
374588
374542
  const changelog = "";
374589
374543
  if (changelog) {
@@ -375753,7 +375707,7 @@ function getRecentActivitySync() {
375753
375707
  return cachedActivity;
375754
375708
  }
375755
375709
  function getLogoDisplayData() {
375756
- const version2 = process.env.DEMO_VERSION ?? "1.33.0";
375710
+ const version2 = process.env.DEMO_VERSION ?? "1.35.0";
375757
375711
  const serverUrl = getDirectConnectServerUrl();
375758
375712
  const displayPath = process.env.DEMO_VERSION ? "/code/ur" : getDisplayPath(getCwd2());
375759
375713
  const cwd2 = serverUrl ? `${displayPath} in ${serverUrl.replace(/^https?:\/\//, "")}` : displayPath;
@@ -376542,7 +376496,7 @@ function LogoV2() {
376542
376496
  if ($3[2] === Symbol.for("react.memo_cache_sentinel")) {
376543
376497
  t2 = () => {
376544
376498
  const currentConfig = getGlobalConfig();
376545
- if (currentConfig.lastReleaseNotesSeen === "1.33.0") {
376499
+ if (currentConfig.lastReleaseNotesSeen === "1.35.0") {
376546
376500
  return;
376547
376501
  }
376548
376502
  saveGlobalConfig(_temp326);
@@ -377227,12 +377181,12 @@ function LogoV2() {
377227
377181
  return t41;
377228
377182
  }
377229
377183
  function _temp326(current) {
377230
- if (current.lastReleaseNotesSeen === "1.33.0") {
377184
+ if (current.lastReleaseNotesSeen === "1.35.0") {
377231
377185
  return current;
377232
377186
  }
377233
377187
  return {
377234
377188
  ...current,
377235
- lastReleaseNotesSeen: "1.33.0"
377189
+ lastReleaseNotesSeen: "1.35.0"
377236
377190
  };
377237
377191
  }
377238
377192
  function _temp243(s_0) {
@@ -394465,10 +394419,9 @@ async function connectProvider(provider, keyFlag) {
394465
394419
  if (alias === "provider") {
394466
394420
  return `No official login is configured for ${provider}.`;
394467
394421
  }
394468
- const enabled = enableExternalBridge(provider);
394469
394422
  const result = await launchProviderAuth(alias);
394470
394423
  return `${result.message}
394471
- ${enabled.message} It will run via the official ${def2.displayName} CLI.`;
394424
+ Once logged in, ${def2.displayName} runs via its official CLI. Select it with /model.`;
394472
394425
  }
394473
394426
  if (def2.envKey) {
394474
394427
  const key = keyFlag ?? await readStdinKey();
@@ -407594,7 +407547,7 @@ var init_code_index2 = __esm(() => {
407594
407547
 
407595
407548
  // node_modules/typescript/lib/typescript.js
407596
407549
  var require_typescript2 = __commonJS((exports, module) => {
407597
- var __dirname = "/sessions/confident-pensive-edison/mnt/UR-1.19.0/node_modules/typescript/lib", __filename = "/sessions/confident-pensive-edison/mnt/UR-1.19.0/node_modules/typescript/lib/typescript.js";
407550
+ var __dirname = "/sessions/practical-upbeat-bohr/mnt/UR-1.19.0/node_modules/typescript/lib", __filename = "/sessions/practical-upbeat-bohr/mnt/UR-1.19.0/node_modules/typescript/lib/typescript.js";
407598
407551
  /*! *****************************************************************************
407599
407552
  Copyright (c) Microsoft Corporation. All rights reserved.
407600
407553
  Licensed under the Apache License, Version 2.0 (the "License"); you may not use
@@ -593128,7 +593081,7 @@ async function captureMemoryDiagnostics(trigger2, dumpNumber = 0) {
593128
593081
  smapsRollup,
593129
593082
  platform: process.platform,
593130
593083
  nodeVersion: process.version,
593131
- ccVersion: "1.33.0"
593084
+ ccVersion: "1.35.0"
593132
593085
  };
593133
593086
  }
593134
593087
  async function performHeapDump(trigger2 = "manual", dumpNumber = 0) {
@@ -593714,7 +593667,7 @@ var init_bridge_kick = __esm(() => {
593714
593667
  var call137 = async () => {
593715
593668
  return {
593716
593669
  type: "text",
593717
- value: "1.33.0"
593670
+ value: "1.35.0"
593718
593671
  };
593719
593672
  }, version2, version_default;
593720
593673
  var init_version = __esm(() => {
@@ -596689,6 +596642,10 @@ function ProviderFirstModelPicker({
596689
596642
  setStep("connect");
596690
596643
  return;
596691
596644
  }
596645
+ if (provider.provider.accessType === "subscription") {
596646
+ setProviderWarning(`${provider.label} is not logged in. Sign in with \`ur auth ${authAliasForProvider(provider.value)}\` (uses your own subscription), then reselect.`);
596647
+ return;
596648
+ }
596692
596649
  setProviderWarning(`Provider "${provider.value}" is ${provider.status}: ${provider.statusLabel}. Run \`ur provider doctor ${provider.value}\`, or choose a connected API/local/server provider.`);
596693
596650
  return;
596694
596651
  }
@@ -603780,7 +603737,7 @@ function generateHtmlReport(data, insights) {
603780
603737
  </html>`;
603781
603738
  }
603782
603739
  function buildExportData(data, insights, facets, remoteStats) {
603783
- const version3 = typeof MACRO !== "undefined" ? "1.33.0" : "unknown";
603740
+ const version3 = typeof MACRO !== "undefined" ? "1.35.0" : "unknown";
603784
603741
  const remote_hosts_collected = remoteStats?.hosts.filter((h2) => h2.sessionCount > 0).map((h2) => h2.name);
603785
603742
  const facets_summary = {
603786
603743
  total: facets.size,
@@ -608060,7 +608017,7 @@ var init_sessionStorage = __esm(() => {
608060
608017
  init_settings2();
608061
608018
  init_slowOperations();
608062
608019
  init_uuid();
608063
- VERSION5 = typeof MACRO !== "undefined" ? "1.33.0" : "unknown";
608020
+ VERSION5 = typeof MACRO !== "undefined" ? "1.35.0" : "unknown";
608064
608021
  MAX_TOMBSTONE_REWRITE_BYTES = 50 * 1024 * 1024;
608065
608022
  SKIP_FIRST_PROMPT_PATTERN = /^(?:\s*<[a-z][\w-]*[\s>]|\[Request interrupted by user[^\]]*\])/;
608066
608023
  EPHEMERAL_PROGRESS_TYPES = new Set([
@@ -609265,7 +609222,7 @@ var init_filesystem = __esm(() => {
609265
609222
  });
609266
609223
  getBundledSkillsRoot = memoize_default(function getBundledSkillsRoot2() {
609267
609224
  const nonce = randomBytes18(16).toString("hex");
609268
- return join200(getURTempDir(), "bundled-skills", "1.33.0", nonce);
609225
+ return join200(getURTempDir(), "bundled-skills", "1.35.0", nonce);
609269
609226
  });
609270
609227
  getResolvedWorkingDirPaths = memoize_default(getPathsForPermissionCheck);
609271
609228
  });
@@ -615554,7 +615511,7 @@ function computeFingerprint(messageText2, version3) {
615554
615511
  }
615555
615512
  function computeFingerprintFromMessages(messages) {
615556
615513
  const firstMessageText = extractFirstMessageText(messages);
615557
- return computeFingerprint(firstMessageText, "1.33.0");
615514
+ return computeFingerprint(firstMessageText, "1.35.0");
615558
615515
  }
615559
615516
  var FINGERPRINT_SALT = "59cf53e54c78";
615560
615517
  var init_fingerprint = () => {};
@@ -617421,7 +617378,7 @@ async function sideQuery(opts) {
617421
617378
  betas.push(STRUCTURED_OUTPUTS_BETA_HEADER);
617422
617379
  }
617423
617380
  const messageText2 = extractFirstUserMessageText(messages);
617424
- const fingerprint = computeFingerprint(messageText2, "1.33.0");
617381
+ const fingerprint = computeFingerprint(messageText2, "1.35.0");
617425
617382
  const attributionHeader = getAttributionHeader(fingerprint);
617426
617383
  const systemBlocks = [
617427
617384
  attributionHeader ? { type: "text", text: attributionHeader } : null,
@@ -622158,7 +622115,7 @@ function buildSystemInitMessage(inputs) {
622158
622115
  slash_commands: inputs.commands.filter((c4) => c4.userInvocable !== false).map((c4) => c4.name),
622159
622116
  apiKeySource: getURHQApiKeyWithSource().source,
622160
622117
  betas: getSdkBetas(),
622161
- ur_version: "1.33.0",
622118
+ ur_version: "1.35.0",
622162
622119
  output_style: outputStyle2,
622163
622120
  agents: inputs.agents.map((agent) => agent.agentType),
622164
622121
  skills: inputs.skills.filter((s) => s.userInvocable !== false).map((skill2) => skill2.name),
@@ -636786,7 +636743,7 @@ var init_useVoiceEnabled = __esm(() => {
636786
636743
  function getSemverPart(version3) {
636787
636744
  return `${import_semver13.major(version3, { loose: true })}.${import_semver13.minor(version3, { loose: true })}.${import_semver13.patch(version3, { loose: true })}`;
636788
636745
  }
636789
- function useUpdateNotification(updatedVersion, initialVersion = "1.33.0") {
636746
+ function useUpdateNotification(updatedVersion, initialVersion = "1.35.0") {
636790
636747
  const [lastNotifiedSemver, setLastNotifiedSemver] = import_react226.useState(() => getSemverPart(initialVersion));
636791
636748
  if (!updatedVersion) {
636792
636749
  return null;
@@ -636835,7 +636792,7 @@ function AutoUpdater({
636835
636792
  return;
636836
636793
  }
636837
636794
  if (false) {}
636838
- const currentVersion = "1.33.0";
636795
+ const currentVersion = "1.35.0";
636839
636796
  const channel = getInitialSettings()?.autoUpdatesChannel ?? "latest";
636840
636797
  let latestVersion = await getLatestVersion(channel);
636841
636798
  const isDisabled = isAutoUpdaterDisabled();
@@ -637064,12 +637021,12 @@ function NativeAutoUpdater({
637064
637021
  logEvent("tengu_native_auto_updater_start", {});
637065
637022
  try {
637066
637023
  const maxVersion = await getMaxVersion();
637067
- if (maxVersion && gt("1.33.0", maxVersion)) {
637024
+ if (maxVersion && gt("1.35.0", maxVersion)) {
637068
637025
  const msg = await getMaxVersionMessage();
637069
637026
  setMaxVersionIssue(msg ?? "affects your version");
637070
637027
  }
637071
637028
  const result = await installLatest(channel);
637072
- const currentVersion = "1.33.0";
637029
+ const currentVersion = "1.35.0";
637073
637030
  const latencyMs = Date.now() - startTime;
637074
637031
  if (result.lockFailed) {
637075
637032
  logEvent("tengu_native_auto_updater_lock_contention", {
@@ -637206,17 +637163,17 @@ function PackageManagerAutoUpdater(t0) {
637206
637163
  const maxVersion = await getMaxVersion();
637207
637164
  if (maxVersion && latest && gt(latest, maxVersion)) {
637208
637165
  logForDebugging(`PackageManagerAutoUpdater: maxVersion ${maxVersion} is set, capping update from ${latest} to ${maxVersion}`);
637209
- if (gte("1.33.0", maxVersion)) {
637210
- logForDebugging(`PackageManagerAutoUpdater: current version ${"1.33.0"} is already at or above maxVersion ${maxVersion}, skipping update`);
637166
+ if (gte("1.35.0", maxVersion)) {
637167
+ logForDebugging(`PackageManagerAutoUpdater: current version ${"1.35.0"} is already at or above maxVersion ${maxVersion}, skipping update`);
637211
637168
  setUpdateAvailable(false);
637212
637169
  return;
637213
637170
  }
637214
637171
  latest = maxVersion;
637215
637172
  }
637216
- const hasUpdate = latest && !gte("1.33.0", latest) && !shouldSkipVersion(latest);
637173
+ const hasUpdate = latest && !gte("1.35.0", latest) && !shouldSkipVersion(latest);
637217
637174
  setUpdateAvailable(!!hasUpdate);
637218
637175
  if (hasUpdate) {
637219
- logForDebugging(`PackageManagerAutoUpdater: Update available ${"1.33.0"} -> ${latest}`);
637176
+ logForDebugging(`PackageManagerAutoUpdater: Update available ${"1.35.0"} -> ${latest}`);
637220
637177
  }
637221
637178
  };
637222
637179
  $3[0] = t1;
@@ -637250,7 +637207,7 @@ function PackageManagerAutoUpdater(t0) {
637250
637207
  wrap: "truncate",
637251
637208
  children: [
637252
637209
  "currentVersion: ",
637253
- "1.33.0"
637210
+ "1.35.0"
637254
637211
  ]
637255
637212
  }, undefined, true, undefined, this);
637256
637213
  $3[3] = verbose;
@@ -649701,7 +649658,7 @@ function buildStatusLineCommandInput(permissionMode, exceeds200kTokens, settings
649701
649658
  project_dir: getOriginalCwd(),
649702
649659
  added_dirs: addedDirs
649703
649660
  },
649704
- version: "1.33.0",
649661
+ version: "1.35.0",
649705
649662
  output_style: {
649706
649663
  name: outputStyleName
649707
649664
  },
@@ -649784,7 +649741,7 @@ function StatusLineInner({
649784
649741
  const taskValues = Object.values(tasks2);
649785
649742
  const taskRunningCount = taskValues.filter((task2) => task2.status === "running" || task2.status === "pending").length;
649786
649743
  const defaultStatusLineText = buildDefaultStatusBar({
649787
- version: "1.33.0",
649744
+ version: "1.35.0",
649788
649745
  providerLabel: providerRuntime.providerLabel,
649789
649746
  authMode: providerRuntime.authLabel,
649790
649747
  model: providerRuntime.model ?? renderModelName(mainLoopModel),
@@ -661272,7 +661229,7 @@ async function submitTranscriptShare(messages, trigger2, appearanceId) {
661272
661229
  } catch {}
661273
661230
  const data = {
661274
661231
  trigger: trigger2,
661275
- version: "1.33.0",
661232
+ version: "1.35.0",
661276
661233
  platform: process.platform,
661277
661234
  transcript,
661278
661235
  subagentTranscripts: Object.keys(subagentTranscripts).length > 0 ? subagentTranscripts : undefined,
@@ -673156,7 +673113,7 @@ function WelcomeV2() {
673156
673113
  dimColor: true,
673157
673114
  children: [
673158
673115
  "v",
673159
- "1.33.0"
673116
+ "1.35.0"
673160
673117
  ]
673161
673118
  }, undefined, true, undefined, this)
673162
673119
  ]
@@ -674416,7 +674373,7 @@ function completeOnboarding() {
674416
674373
  saveGlobalConfig((current) => ({
674417
674374
  ...current,
674418
674375
  hasCompletedOnboarding: true,
674419
- lastOnboardingVersion: "1.33.0"
674376
+ lastOnboardingVersion: "1.35.0"
674420
674377
  }));
674421
674378
  }
674422
674379
  function showDialog(root2, renderer) {
@@ -679453,7 +679410,7 @@ function appendToLog(path24, message) {
679453
679410
  cwd: getFsImplementation().cwd(),
679454
679411
  userType: process.env.USER_TYPE,
679455
679412
  sessionId: getSessionId(),
679456
- version: "1.33.0"
679413
+ version: "1.35.0"
679457
679414
  };
679458
679415
  getLogWriter(path24).write(messageWithTimestamp);
679459
679416
  }
@@ -683547,8 +683504,8 @@ async function getEnvLessBridgeConfig() {
683547
683504
  }
683548
683505
  async function checkEnvLessBridgeMinVersion() {
683549
683506
  const cfg = await getEnvLessBridgeConfig();
683550
- if (cfg.min_version && lt("1.33.0", cfg.min_version)) {
683551
- return `Your version of UR (${"1.33.0"}) is too old for Remote Control.
683507
+ if (cfg.min_version && lt("1.35.0", cfg.min_version)) {
683508
+ return `Your version of UR (${"1.35.0"}) is too old for Remote Control.
683552
683509
  Version ${cfg.min_version} or higher is required. Run \`ur update\` to update.`;
683553
683510
  }
683554
683511
  return null;
@@ -684022,7 +683979,7 @@ async function initBridgeCore(params) {
684022
683979
  const rawApi = createBridgeApiClient({
684023
683980
  baseUrl,
684024
683981
  getAccessToken,
684025
- runnerVersion: "1.33.0",
683982
+ runnerVersion: "1.35.0",
684026
683983
  onDebug: logForDebugging,
684027
683984
  onAuth401,
684028
683985
  getTrustedDeviceToken
@@ -689704,7 +689661,7 @@ async function startMCPServer(cwd3, debug2, verbose) {
689704
689661
  setCwd(cwd3);
689705
689662
  const server2 = new Server({
689706
689663
  name: "ur/tengu",
689707
- version: "1.33.0"
689664
+ version: "1.35.0"
689708
689665
  }, {
689709
689666
  capabilities: {
689710
689667
  tools: {}
@@ -691681,7 +691638,7 @@ async function update() {
691681
691638
  logEvent("tengu_update_check", {});
691682
691639
  const diagnostic = await getDoctorDiagnostic();
691683
691640
  const result = await checkUpgradeStatus({
691684
- currentVersion: "1.33.0",
691641
+ currentVersion: "1.35.0",
691685
691642
  packageName: UR_AGENT_PACKAGE_NAME,
691686
691643
  installationType: diagnostic.installationType,
691687
691644
  latestVersion: () => getLatestNpmPackageVersion(UR_AGENT_PACKAGE_NAME)
@@ -692927,7 +692884,7 @@ ${customInstructions}` : customInstructions;
692927
692884
  }
692928
692885
  }
692929
692886
  logForDiagnosticsNoPII("info", "started", {
692930
- version: "1.33.0",
692887
+ version: "1.35.0",
692931
692888
  is_native_binary: isInBundledMode()
692932
692889
  });
692933
692890
  registerCleanup(async () => {
@@ -693713,7 +693670,7 @@ Usage: ur --remote "your task description"`, () => gracefulShutdown(1));
693713
693670
  pendingHookMessages
693714
693671
  }, renderAndRun);
693715
693672
  }
693716
- }).version("1.33.0 (UR-AGENT)", "-v, --version", "Output the version number");
693673
+ }).version("1.35.0 (UR-AGENT)", "-v, --version", "Output the version number");
693717
693674
  program2.option("-w, --worktree [name]", "Create a new git worktree for this session (optionally specify a name)");
693718
693675
  program2.option("--tmux", "Create a tmux session for the worktree (requires --worktree). Uses iTerm2 native panes when available; use --tmux=classic for traditional tmux.");
693719
693676
  if (canUserConfigureAdvisor()) {
@@ -693805,7 +693762,9 @@ Usage: ur --remote "your task description"`, () => gracefulShutdown(1));
693805
693762
  if (false) {}
693806
693763
  if (false) {}
693807
693764
  const auth2 = program2.command("auth").description("Manage authentication").configureHelp(createSortedHelpConfig());
693808
- auth2.command("login").description("Sign in to your URHQ account").option("--email <email>", "Pre-populate email address on the login page").option("--sso", "Force SSO login flow").option("--console", "Use URHQ Console (API usage billing) instead of UR subscription").option("--urai", "Use UR subscription (default)").action(async ({
693765
+ auth2.command("login", {
693766
+ hidden: true
693767
+ }).description("Sign in to your URHQ account").option("--email <email>", "Pre-populate email address on the login page").option("--sso", "Force SSO login flow").option("--console", "Use URHQ Console (API usage billing) instead of UR subscription").option("--urai", "Use UR subscription (default)").action(async ({
693809
693768
  email: email3,
693810
693769
  sso,
693811
693770
  console: useConsole,
@@ -693827,7 +693786,9 @@ Usage: ur --remote "your task description"`, () => gracefulShutdown(1));
693827
693786
  } = await Promise.resolve().then(() => (init_auth6(), exports_auth2));
693828
693787
  await authStatus2(opts);
693829
693788
  });
693830
- auth2.command("logout").description("Log out from your URHQ account").action(async () => {
693789
+ auth2.command("logout", {
693790
+ hidden: true
693791
+ }).description("Log out from your URHQ account").action(async () => {
693831
693792
  const {
693832
693793
  authLogout: authLogout2
693833
693794
  } = await Promise.resolve().then(() => (init_auth6(), exports_auth2));
@@ -693883,6 +693844,10 @@ Usage: ur --remote "your task description"`, () => gracefulShutdown(1));
693883
693844
  } = await Promise.resolve().then(() => (init_providers2(), exports_providers));
693884
693845
  await configSetHandler2(key, value);
693885
693846
  });
693847
+ program2.command("connect [action] [provider]").description("Connect a provider account: subscription login (Codex, Claude, Gemini) or store an API key").option("--key <key>", "API key to store for an API provider").option("--json", "Output as JSON").action(async (action3, providerArg, opts) => {
693848
+ const args = [action3, providerArg, opts.key ? `--key ${quoteLocalCommandArg(opts.key)}` : undefined, opts.json ? "--json" : undefined].filter(Boolean).join(" ");
693849
+ await runLocalTextCommand(() => Promise.resolve().then(() => (init_connect(), exports_connect)), args);
693850
+ });
693886
693851
  const coworkOption = () => new Option("--cowork", "Use cowork_plugins directory").hideHelp();
693887
693852
  const pluginCmd = program2.command("plugin").alias("plugins").description("Manage UR plugins").configureHelp(createSortedHelpConfig());
693888
693853
  pluginCmd.command("validate <path>").description("Validate a plugin or marketplace manifest").addOption(coworkOption()).action(async (manifestPath5, options2) => {
@@ -693958,7 +693923,9 @@ Usage: ur --remote "your task description"`, () => gracefulShutdown(1));
693958
693923
  } = await Promise.resolve().then(() => (init_plugins(), exports_plugins));
693959
693924
  await pluginUpdateHandler2(plugin2, options2);
693960
693925
  });
693961
- program2.command("setup-token").description("Set up a long-lived authentication token (requires UR subscription)").action(async () => {
693926
+ program2.command("setup-token", {
693927
+ hidden: true
693928
+ }).description("Set up a long-lived authentication token (requires UR subscription)").action(async () => {
693962
693929
  const [{
693963
693930
  setupTokenHandler: setupTokenHandler2
693964
693931
  }, {
@@ -694079,8 +694046,8 @@ Usage: ur --remote "your task description"`, () => gracefulShutdown(1));
694079
694046
  const args = [action3, name, opts.objective ? `--objective ${quoteLocalCommandArg(opts.objective)}` : undefined, opts.workflow ? `--workflow ${quoteLocalCommandArg(opts.workflow)}` : undefined, opts.pattern ? `--pattern ${quoteLocalCommandArg(opts.pattern)}` : undefined, opts.note ? `--note ${quoteLocalCommandArg(opts.note)}` : undefined, opts.maxTurns ? `--max-turns ${opts.maxTurns}` : undefined, opts.dryRun ? "--dry-run" : undefined, opts.json ? "--json" : undefined].filter(Boolean).join(" ");
694080
694047
  await runLocalTextCommand(() => Promise.resolve().then(() => (init_goal(), exports_goal)), args);
694081
694048
  });
694082
- program2.command("spec [action] [name] [phase]").alias("specs").description("Spec-driven development: scaffold requirements/design/tasks in .ur/specs and drive execution task-by-task").option("--goal <text>", "Goal text for init").option("--all", "Run all open tasks, not just the next one").option("--dry-run", "Run offline without calling any model").option("--max-turns <n>", "Max agentic turns per task when running").option("--skip-permissions", "Pass --dangerously-skip-permissions to each task (sandboxes only)").option("--json", "Output as JSON").action(async (action3, name, phase, opts) => {
694083
- const args = [action3, name, phase, opts.goal ? `--goal ${quoteLocalCommandArg(opts.goal)}` : undefined, opts.all ? "--all" : undefined, opts.dryRun ? "--dry-run" : undefined, opts.maxTurns ? `--max-turns ${opts.maxTurns}` : undefined, opts.skipPermissions ? "--skip-permissions" : undefined, opts.json ? "--json" : undefined].filter(Boolean).join(" ");
694049
+ program2.command("spec [action] [name] [phase]").alias("specs").description("Spec-driven development: scaffold requirements/design/tasks in .ur/specs and drive execution task-by-task").option("--goal <text>", "Goal text for init").option("--all", "Run all open tasks, not just the next one").option("--dry-run", "Run offline without calling any model").option("--kernel", "Run tasks through the agent kernel loop").option("--max-turns <n>", "Max agentic turns per task when running").option("--skip-permissions", "Pass --dangerously-skip-permissions to each task (sandboxes only)").option("--json", "Output as JSON").action(async (action3, name, phase, opts) => {
694050
+ const args = [action3, name, phase, opts.goal ? `--goal ${quoteLocalCommandArg(opts.goal)}` : undefined, opts.all ? "--all" : undefined, opts.dryRun ? "--dry-run" : undefined, opts.kernel ? "--kernel" : undefined, opts.maxTurns ? `--max-turns ${opts.maxTurns}` : undefined, opts.skipPermissions ? "--skip-permissions" : undefined, opts.json ? "--json" : undefined].filter(Boolean).join(" ");
694084
694051
  await runLocalTextCommand(() => Promise.resolve().then(() => (init_spec2(), exports_spec2)), args);
694085
694052
  });
694086
694053
  program2.command("escalate [action] [task...]").description("Capability-aware local model escalation: run on a fast model and auto-escalate hard work to the oracle").option("--dry-run", "Run offline without calling any model").option("--force-oracle", "Start on the oracle regardless of difficulty").option("--fast <model>", "Pin the fast-tier model (policy)").option("--oracle <model>", "Pin the oracle-tier model (policy)").option("--auto <onoff>", "Enable/disable auto-escalation (policy): on|off").option("--max-turns <n>", "Max agentic turns when running").option("--skip-permissions", "Pass --dangerously-skip-permissions (sandboxes only)").option("--json", "Output as JSON").action(async (action3, task2 = [], opts) => {
@@ -694305,7 +694272,9 @@ ${describeClaims2(result.claims)}`);
694305
694272
  });
694306
694273
  if (false) {}
694307
694274
  if (false) {}
694308
- program2.command("install [target]").description("Install UR native build. Use [target] to specify version (stable, latest, or specific version)").option("--force", "Force installation even if already installed").action(async (target, options2) => {
694275
+ program2.command("install [target]", {
694276
+ hidden: true
694277
+ }).description("Install UR native build. Use [target] to specify version (stable, latest, or specific version)").option("--force", "Force installation even if already installed").action(async (target, options2) => {
694309
694278
  const {
694310
694279
  installHandler: installHandler2
694311
694280
  } = await Promise.resolve().then(() => (init_util4(), exports_util2));
@@ -694596,7 +694565,7 @@ if (false) {}
694596
694565
  async function main2() {
694597
694566
  const args = process.argv.slice(2);
694598
694567
  if (args.length === 1 && (args[0] === "--version" || args[0] === "-v" || args[0] === "-V")) {
694599
- console.log(`${"1.33.0"} (UR-AGENT)`);
694568
+ console.log(`${"1.35.0"} (UR-AGENT)`);
694600
694569
  return;
694601
694570
  }
694602
694571
  if (args[0] === "a2a" && args[1] === "serve" && !args.includes("--help") && !args.includes("-h")) {