ur-agent 1.27.3 → 1.27.4
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 +115 -79
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -56168,16 +56168,28 @@ async function createURHQSubscriptionClient(providerId, options) {
|
|
|
56168
56168
|
};
|
|
56169
56169
|
}
|
|
56170
56170
|
const messagesAPI = {
|
|
56171
|
-
|
|
56172
|
-
|
|
56173
|
-
|
|
56171
|
+
create(params, options2) {
|
|
56172
|
+
if (params.stream) {
|
|
56173
|
+
const requestPromise = doRequest(params, options2?.headers);
|
|
56174
|
+
return {
|
|
56175
|
+
async withResponse() {
|
|
56176
|
+
const { response, data } = await requestPromise;
|
|
56177
|
+
return {
|
|
56178
|
+
data,
|
|
56179
|
+
response,
|
|
56180
|
+
request_id: data.id
|
|
56181
|
+
};
|
|
56182
|
+
}
|
|
56183
|
+
};
|
|
56184
|
+
}
|
|
56185
|
+
return doRequest(params, options2?.headers).then(({ response, data }) => ({
|
|
56174
56186
|
...data,
|
|
56175
56187
|
withResponse: () => ({
|
|
56176
56188
|
data,
|
|
56177
56189
|
response,
|
|
56178
56190
|
request_id: data.id
|
|
56179
56191
|
})
|
|
56180
|
-
};
|
|
56192
|
+
}));
|
|
56181
56193
|
},
|
|
56182
56194
|
async countTokens(params) {
|
|
56183
56195
|
return {
|
|
@@ -56245,16 +56257,28 @@ async function createOpenRouterClient(options) {
|
|
|
56245
56257
|
};
|
|
56246
56258
|
}
|
|
56247
56259
|
const messagesAPI = {
|
|
56248
|
-
|
|
56249
|
-
|
|
56250
|
-
|
|
56260
|
+
create(params, options2) {
|
|
56261
|
+
if (params.stream) {
|
|
56262
|
+
const requestPromise = doRequest(params, options2?.headers);
|
|
56263
|
+
return {
|
|
56264
|
+
async withResponse() {
|
|
56265
|
+
const { response, data } = await requestPromise;
|
|
56266
|
+
return {
|
|
56267
|
+
data,
|
|
56268
|
+
response,
|
|
56269
|
+
request_id: response.data?.id ?? response.headers?.["x-request-id"] ?? randomUUID4()
|
|
56270
|
+
};
|
|
56271
|
+
}
|
|
56272
|
+
};
|
|
56273
|
+
}
|
|
56274
|
+
return doRequest(params, options2?.headers).then(({ response, data }) => ({
|
|
56251
56275
|
...data,
|
|
56252
56276
|
withResponse: () => ({
|
|
56253
56277
|
data,
|
|
56254
56278
|
response,
|
|
56255
56279
|
request_id: response.data?.id ?? response.headers?.["x-request-id"] ?? randomUUID4()
|
|
56256
56280
|
})
|
|
56257
|
-
};
|
|
56281
|
+
}));
|
|
56258
56282
|
},
|
|
56259
56283
|
async countTokens(params) {
|
|
56260
56284
|
return {
|
|
@@ -56299,16 +56323,28 @@ async function createStandardAPIClient(options) {
|
|
|
56299
56323
|
return { response, data: parseAPIResponse(providerId, response.data) };
|
|
56300
56324
|
}
|
|
56301
56325
|
const messagesAPI = {
|
|
56302
|
-
|
|
56303
|
-
|
|
56304
|
-
|
|
56326
|
+
create(params, options2) {
|
|
56327
|
+
if (params.stream) {
|
|
56328
|
+
const requestPromise = doRequest(params, options2?.headers);
|
|
56329
|
+
return {
|
|
56330
|
+
async withResponse() {
|
|
56331
|
+
const { response, data } = await requestPromise;
|
|
56332
|
+
return {
|
|
56333
|
+
data,
|
|
56334
|
+
response,
|
|
56335
|
+
request_id: response.data?.id ?? response.headers?.["x-request-id"] ?? randomUUID5()
|
|
56336
|
+
};
|
|
56337
|
+
}
|
|
56338
|
+
};
|
|
56339
|
+
}
|
|
56340
|
+
return doRequest(params, options2?.headers).then(({ response, data }) => ({
|
|
56305
56341
|
...data,
|
|
56306
56342
|
withResponse: () => ({
|
|
56307
56343
|
data,
|
|
56308
56344
|
response,
|
|
56309
56345
|
request_id: response.data?.id ?? response.headers?.["x-request-id"] ?? randomUUID5()
|
|
56310
56346
|
})
|
|
56311
|
-
};
|
|
56347
|
+
}));
|
|
56312
56348
|
},
|
|
56313
56349
|
async countTokens(params) {
|
|
56314
56350
|
return {
|
|
@@ -68242,7 +68278,7 @@ var init_auth = __esm(() => {
|
|
|
68242
68278
|
|
|
68243
68279
|
// src/utils/userAgent.ts
|
|
68244
68280
|
function getURCodeUserAgent() {
|
|
68245
|
-
return `ur/${"1.27.
|
|
68281
|
+
return `ur/${"1.27.4"}`;
|
|
68246
68282
|
}
|
|
68247
68283
|
|
|
68248
68284
|
// src/utils/workloadContext.ts
|
|
@@ -68264,7 +68300,7 @@ function getUserAgent() {
|
|
|
68264
68300
|
const clientApp = process.env.UR_AGENT_SDK_CLIENT_APP ? `, client-app/${process.env.UR_AGENT_SDK_CLIENT_APP}` : "";
|
|
68265
68301
|
const workload = getWorkload();
|
|
68266
68302
|
const workloadSuffix = workload ? `, workload/${workload}` : "";
|
|
68267
|
-
return `ur-cli/${"1.27.
|
|
68303
|
+
return `ur-cli/${"1.27.4"} (${process.env.USER_TYPE}, ${process.env.UR_CODE_ENTRYPOINT ?? "cli"}${agentSdkVersion}${clientApp}${workloadSuffix})`;
|
|
68268
68304
|
}
|
|
68269
68305
|
function getMCPUserAgent() {
|
|
68270
68306
|
const parts = [];
|
|
@@ -68278,7 +68314,7 @@ function getMCPUserAgent() {
|
|
|
68278
68314
|
parts.push(`client-app/${process.env.UR_AGENT_SDK_CLIENT_APP}`);
|
|
68279
68315
|
}
|
|
68280
68316
|
const suffix = parts.length > 0 ? ` (${parts.join(", ")})` : "";
|
|
68281
|
-
return `ur/${"1.27.
|
|
68317
|
+
return `ur/${"1.27.4"}${suffix}`;
|
|
68282
68318
|
}
|
|
68283
68319
|
function getWebFetchUserAgent() {
|
|
68284
68320
|
return `UR-User (${getURCodeUserAgent()})`;
|
|
@@ -68416,7 +68452,7 @@ var init_user = __esm(() => {
|
|
|
68416
68452
|
deviceId,
|
|
68417
68453
|
sessionId: getSessionId(),
|
|
68418
68454
|
email: getEmail(),
|
|
68419
|
-
appVersion: "1.27.
|
|
68455
|
+
appVersion: "1.27.4",
|
|
68420
68456
|
platform: getHostPlatformForAnalytics(),
|
|
68421
68457
|
organizationUuid,
|
|
68422
68458
|
accountUuid,
|
|
@@ -74933,7 +74969,7 @@ var init_metadata = __esm(() => {
|
|
|
74933
74969
|
COMPOUND_OPERATOR_REGEX = /\s*(?:&&|\|\||[;|])\s*/;
|
|
74934
74970
|
WHITESPACE_REGEX = /\s+/;
|
|
74935
74971
|
getVersionBase = memoize_default(() => {
|
|
74936
|
-
const match = "1.27.
|
|
74972
|
+
const match = "1.27.4".match(/^\d+\.\d+\.\d+(?:-[a-z]+)?/);
|
|
74937
74973
|
return match ? match[0] : undefined;
|
|
74938
74974
|
});
|
|
74939
74975
|
buildEnvContext = memoize_default(async () => {
|
|
@@ -74973,7 +75009,7 @@ var init_metadata = __esm(() => {
|
|
|
74973
75009
|
isGithubAction: isEnvTruthy(process.env.GITHUB_ACTIONS),
|
|
74974
75010
|
isURCodeAction: isEnvTruthy(process.env.UR_CODE_ACTION),
|
|
74975
75011
|
isURAiAuth: isURAISubscriber2(),
|
|
74976
|
-
version: "1.27.
|
|
75012
|
+
version: "1.27.4",
|
|
74977
75013
|
versionBase: getVersionBase(),
|
|
74978
75014
|
buildTime: "",
|
|
74979
75015
|
deploymentEnvironment: env2.detectDeploymentEnvironment(),
|
|
@@ -75643,7 +75679,7 @@ function initialize1PEventLogging() {
|
|
|
75643
75679
|
const platform2 = getPlatform();
|
|
75644
75680
|
const attributes = {
|
|
75645
75681
|
[import_semantic_conventions4.ATTR_SERVICE_NAME]: "ur",
|
|
75646
|
-
[import_semantic_conventions4.ATTR_SERVICE_VERSION]: "1.27.
|
|
75682
|
+
[import_semantic_conventions4.ATTR_SERVICE_VERSION]: "1.27.4"
|
|
75647
75683
|
};
|
|
75648
75684
|
if (platform2 === "wsl") {
|
|
75649
75685
|
const wslVersion = getWslVersion();
|
|
@@ -75670,7 +75706,7 @@ function initialize1PEventLogging() {
|
|
|
75670
75706
|
})
|
|
75671
75707
|
]
|
|
75672
75708
|
});
|
|
75673
|
-
firstPartyEventLogger = firstPartyEventLoggerProvider.getLogger("com.urhq.ur.events", "1.27.
|
|
75709
|
+
firstPartyEventLogger = firstPartyEventLoggerProvider.getLogger("com.urhq.ur.events", "1.27.4");
|
|
75674
75710
|
}
|
|
75675
75711
|
async function reinitialize1PEventLoggingIfConfigChanged() {
|
|
75676
75712
|
if (!is1PEventLoggingEnabled() || !firstPartyEventLoggerProvider) {
|
|
@@ -80967,7 +81003,7 @@ function formatAgentTrendReport(report = buildAgentTrendReport()) {
|
|
|
80967
81003
|
function formatA2AAgentCard(options = {}, pretty = true) {
|
|
80968
81004
|
return JSON.stringify(buildA2AAgentCard(options), null, pretty ? 2 : 0);
|
|
80969
81005
|
}
|
|
80970
|
-
var urVersion = "1.27.
|
|
81006
|
+
var urVersion = "1.27.4", coverage, priorityRoadmap;
|
|
80971
81007
|
var init_trends = __esm(() => {
|
|
80972
81008
|
coverage = [
|
|
80973
81009
|
{
|
|
@@ -82959,7 +82995,7 @@ function getAttributionHeader(fingerprint) {
|
|
|
82959
82995
|
if (!isAttributionHeaderEnabled()) {
|
|
82960
82996
|
return "";
|
|
82961
82997
|
}
|
|
82962
|
-
const version2 = `${"1.27.
|
|
82998
|
+
const version2 = `${"1.27.4"}.${fingerprint}`;
|
|
82963
82999
|
const entrypoint = process.env.UR_CODE_ENTRYPOINT ?? "unknown";
|
|
82964
83000
|
const cch = "";
|
|
82965
83001
|
const workload = getWorkload();
|
|
@@ -190628,7 +190664,7 @@ function getTelemetryAttributes() {
|
|
|
190628
190664
|
attributes["session.id"] = sessionId;
|
|
190629
190665
|
}
|
|
190630
190666
|
if (shouldIncludeAttribute("OTEL_METRICS_INCLUDE_VERSION")) {
|
|
190631
|
-
attributes["app.version"] = "1.27.
|
|
190667
|
+
attributes["app.version"] = "1.27.4";
|
|
190632
190668
|
}
|
|
190633
190669
|
const oauthAccount = getOauthAccountInfo();
|
|
190634
190670
|
if (oauthAccount) {
|
|
@@ -226030,7 +226066,7 @@ function getInstallationEnv() {
|
|
|
226030
226066
|
return;
|
|
226031
226067
|
}
|
|
226032
226068
|
function getURCodeVersion() {
|
|
226033
|
-
return "1.27.
|
|
226069
|
+
return "1.27.4";
|
|
226034
226070
|
}
|
|
226035
226071
|
async function getInstalledVSCodeExtensionVersion(command) {
|
|
226036
226072
|
const { stdout } = await execFileNoThrow(command, ["--list-extensions", "--show-versions"], {
|
|
@@ -228869,7 +228905,7 @@ async function setupSdkMcpClients(sdkMcpConfigs, sendMcpMessage) {
|
|
|
228869
228905
|
const client2 = new Client({
|
|
228870
228906
|
name: "ur",
|
|
228871
228907
|
title: "UR",
|
|
228872
|
-
version: "1.27.
|
|
228908
|
+
version: "1.27.4",
|
|
228873
228909
|
description: "UR-AGENT autonomous engineering workflow engine",
|
|
228874
228910
|
websiteUrl: PRODUCT_URL
|
|
228875
228911
|
}, {
|
|
@@ -229223,7 +229259,7 @@ var init_client5 = __esm(() => {
|
|
|
229223
229259
|
const client2 = new Client({
|
|
229224
229260
|
name: "ur",
|
|
229225
229261
|
title: "UR",
|
|
229226
|
-
version: "1.27.
|
|
229262
|
+
version: "1.27.4",
|
|
229227
229263
|
description: "UR-AGENT autonomous engineering workflow engine",
|
|
229228
229264
|
websiteUrl: PRODUCT_URL
|
|
229229
229265
|
}, {
|
|
@@ -239036,9 +239072,9 @@ async function assertMinVersion() {
|
|
|
239036
239072
|
if (false) {}
|
|
239037
239073
|
try {
|
|
239038
239074
|
const versionConfig = await getDynamicConfig_BLOCKS_ON_INIT("tengu_version_config", { minVersion: "0.0.0" });
|
|
239039
|
-
if (versionConfig.minVersion && lt("1.27.
|
|
239075
|
+
if (versionConfig.minVersion && lt("1.27.4", versionConfig.minVersion)) {
|
|
239040
239076
|
console.error(`
|
|
239041
|
-
It looks like your version of UR (${"1.27.
|
|
239077
|
+
It looks like your version of UR (${"1.27.4"}) needs an update.
|
|
239042
239078
|
A newer version (${versionConfig.minVersion} or higher) is required to continue.
|
|
239043
239079
|
|
|
239044
239080
|
To update, please run:
|
|
@@ -239254,7 +239290,7 @@ async function installGlobalPackage(specificVersion) {
|
|
|
239254
239290
|
logError2(new AutoUpdaterError("Another process is currently installing an update"));
|
|
239255
239291
|
logEvent("tengu_auto_updater_lock_contention", {
|
|
239256
239292
|
pid: process.pid,
|
|
239257
|
-
currentVersion: "1.27.
|
|
239293
|
+
currentVersion: "1.27.4"
|
|
239258
239294
|
});
|
|
239259
239295
|
return "in_progress";
|
|
239260
239296
|
}
|
|
@@ -239263,7 +239299,7 @@ async function installGlobalPackage(specificVersion) {
|
|
|
239263
239299
|
if (!env2.isRunningWithBun() && env2.isNpmFromWindowsPath()) {
|
|
239264
239300
|
logError2(new Error("Windows NPM detected in WSL environment"));
|
|
239265
239301
|
logEvent("tengu_auto_updater_windows_npm_in_wsl", {
|
|
239266
|
-
currentVersion: "1.27.
|
|
239302
|
+
currentVersion: "1.27.4"
|
|
239267
239303
|
});
|
|
239268
239304
|
console.error(`
|
|
239269
239305
|
Error: Windows NPM detected in WSL
|
|
@@ -239798,7 +239834,7 @@ function detectLinuxGlobPatternWarnings() {
|
|
|
239798
239834
|
}
|
|
239799
239835
|
async function getDoctorDiagnostic() {
|
|
239800
239836
|
const installationType = await getCurrentInstallationType();
|
|
239801
|
-
const version2 = typeof MACRO !== "undefined" ? "1.27.
|
|
239837
|
+
const version2 = typeof MACRO !== "undefined" ? "1.27.4" : "unknown";
|
|
239802
239838
|
const installationPath = await getInstallationPath();
|
|
239803
239839
|
const invokedBinary = getInvokedBinary();
|
|
239804
239840
|
const multipleInstallations = await detectMultipleInstallations();
|
|
@@ -240733,8 +240769,8 @@ async function updateLatest(channelOrVersion, forceReinstall = false) {
|
|
|
240733
240769
|
const maxVersion = await getMaxVersion();
|
|
240734
240770
|
if (maxVersion && gt(version2, maxVersion)) {
|
|
240735
240771
|
logForDebugging(`Native installer: maxVersion ${maxVersion} is set, capping update from ${version2} to ${maxVersion}`);
|
|
240736
|
-
if (gte("1.27.
|
|
240737
|
-
logForDebugging(`Native installer: current version ${"1.27.
|
|
240772
|
+
if (gte("1.27.4", maxVersion)) {
|
|
240773
|
+
logForDebugging(`Native installer: current version ${"1.27.4"} is already at or above maxVersion ${maxVersion}, skipping update`);
|
|
240738
240774
|
logEvent("tengu_native_update_skipped_max_version", {
|
|
240739
240775
|
latency_ms: Date.now() - startTime,
|
|
240740
240776
|
max_version: maxVersion,
|
|
@@ -240745,7 +240781,7 @@ async function updateLatest(channelOrVersion, forceReinstall = false) {
|
|
|
240745
240781
|
version2 = maxVersion;
|
|
240746
240782
|
}
|
|
240747
240783
|
}
|
|
240748
|
-
if (!forceReinstall && version2 === "1.27.
|
|
240784
|
+
if (!forceReinstall && version2 === "1.27.4" && await versionIsAvailable(version2) && await isPossibleURBinary(executablePath)) {
|
|
240749
240785
|
logForDebugging(`Found ${version2} at ${executablePath}, skipping install`);
|
|
240750
240786
|
logEvent("tengu_native_update_complete", {
|
|
240751
240787
|
latency_ms: Date.now() - startTime,
|
|
@@ -337657,7 +337693,7 @@ function Feedback({
|
|
|
337657
337693
|
platform: env2.platform,
|
|
337658
337694
|
gitRepo: envInfo.isGit,
|
|
337659
337695
|
terminal: env2.terminal,
|
|
337660
|
-
version: "1.27.
|
|
337696
|
+
version: "1.27.4",
|
|
337661
337697
|
transcript: normalizeMessagesForAPI(messages),
|
|
337662
337698
|
errors: sanitizedErrors,
|
|
337663
337699
|
lastApiRequest: getLastAPIRequest(),
|
|
@@ -337849,7 +337885,7 @@ function Feedback({
|
|
|
337849
337885
|
", ",
|
|
337850
337886
|
env2.terminal,
|
|
337851
337887
|
", v",
|
|
337852
|
-
"1.27.
|
|
337888
|
+
"1.27.4"
|
|
337853
337889
|
]
|
|
337854
337890
|
}, undefined, true, undefined, this)
|
|
337855
337891
|
]
|
|
@@ -337955,7 +337991,7 @@ ${sanitizedDescription}
|
|
|
337955
337991
|
` + `**Environment Info**
|
|
337956
337992
|
` + `- Platform: ${env2.platform}
|
|
337957
337993
|
` + `- Terminal: ${env2.terminal}
|
|
337958
|
-
` + `- Version: ${"1.27.
|
|
337994
|
+
` + `- Version: ${"1.27.4"}
|
|
337959
337995
|
` + `- Feedback ID: ${feedbackId}
|
|
337960
337996
|
` + `
|
|
337961
337997
|
**Errors**
|
|
@@ -341066,7 +341102,7 @@ function buildPrimarySection() {
|
|
|
341066
341102
|
}, undefined, false, undefined, this);
|
|
341067
341103
|
return [{
|
|
341068
341104
|
label: "Version",
|
|
341069
|
-
value: "1.27.
|
|
341105
|
+
value: "1.27.4"
|
|
341070
341106
|
}, {
|
|
341071
341107
|
label: "Session name",
|
|
341072
341108
|
value: nameValue
|
|
@@ -344372,7 +344408,7 @@ function Config({
|
|
|
344372
344408
|
}
|
|
344373
344409
|
}, undefined, false, undefined, this)
|
|
344374
344410
|
}, undefined, false, undefined, this) : showSubmenu === "ChannelDowngrade" ? /* @__PURE__ */ jsx_dev_runtime177.jsxDEV(ChannelDowngradeDialog, {
|
|
344375
|
-
currentVersion: "1.27.
|
|
344411
|
+
currentVersion: "1.27.4",
|
|
344376
344412
|
onChoice: (choice) => {
|
|
344377
344413
|
setShowSubmenu(null);
|
|
344378
344414
|
setTabsHidden(false);
|
|
@@ -344384,7 +344420,7 @@ function Config({
|
|
|
344384
344420
|
autoUpdatesChannel: "stable"
|
|
344385
344421
|
};
|
|
344386
344422
|
if (choice === "stay") {
|
|
344387
|
-
newSettings.minimumVersion = "1.27.
|
|
344423
|
+
newSettings.minimumVersion = "1.27.4";
|
|
344388
344424
|
}
|
|
344389
344425
|
updateSettingsForSource("userSettings", newSettings);
|
|
344390
344426
|
setSettingsData((prev_27) => ({
|
|
@@ -352454,7 +352490,7 @@ function HelpV2(t0) {
|
|
|
352454
352490
|
let t6;
|
|
352455
352491
|
if ($3[31] !== tabs) {
|
|
352456
352492
|
t6 = /* @__PURE__ */ jsx_dev_runtime204.jsxDEV(Tabs, {
|
|
352457
|
-
title: `UR v${"1.27.
|
|
352493
|
+
title: `UR v${"1.27.4"}`,
|
|
352458
352494
|
color: "professionalBlue",
|
|
352459
352495
|
defaultTab: "general",
|
|
352460
352496
|
children: tabs
|
|
@@ -372556,7 +372592,7 @@ function getAllReleaseNotes(changelogContent = getStoredChangelogFromMemory()) {
|
|
|
372556
372592
|
return [];
|
|
372557
372593
|
}
|
|
372558
372594
|
}
|
|
372559
|
-
async function checkForReleaseNotes(lastSeenVersion, currentVersion = "1.27.
|
|
372595
|
+
async function checkForReleaseNotes(lastSeenVersion, currentVersion = "1.27.4") {
|
|
372560
372596
|
if (process.env.USER_TYPE === "ant") {
|
|
372561
372597
|
const changelog = "";
|
|
372562
372598
|
if (changelog) {
|
|
@@ -372583,7 +372619,7 @@ async function checkForReleaseNotes(lastSeenVersion, currentVersion = "1.27.3")
|
|
|
372583
372619
|
releaseNotes
|
|
372584
372620
|
};
|
|
372585
372621
|
}
|
|
372586
|
-
function checkForReleaseNotesSync(lastSeenVersion, currentVersion = "1.27.
|
|
372622
|
+
function checkForReleaseNotesSync(lastSeenVersion, currentVersion = "1.27.4") {
|
|
372587
372623
|
if (process.env.USER_TYPE === "ant") {
|
|
372588
372624
|
const changelog = "";
|
|
372589
372625
|
if (changelog) {
|
|
@@ -373753,7 +373789,7 @@ function getRecentActivitySync() {
|
|
|
373753
373789
|
return cachedActivity;
|
|
373754
373790
|
}
|
|
373755
373791
|
function getLogoDisplayData() {
|
|
373756
|
-
const version2 = process.env.DEMO_VERSION ?? "1.27.
|
|
373792
|
+
const version2 = process.env.DEMO_VERSION ?? "1.27.4";
|
|
373757
373793
|
const serverUrl = getDirectConnectServerUrl();
|
|
373758
373794
|
const displayPath = process.env.DEMO_VERSION ? "/code/ur" : getDisplayPath(getCwd2());
|
|
373759
373795
|
const cwd2 = serverUrl ? `${displayPath} in ${serverUrl.replace(/^https?:\/\//, "")}` : displayPath;
|
|
@@ -374542,7 +374578,7 @@ function LogoV2() {
|
|
|
374542
374578
|
if ($3[2] === Symbol.for("react.memo_cache_sentinel")) {
|
|
374543
374579
|
t2 = () => {
|
|
374544
374580
|
const currentConfig = getGlobalConfig();
|
|
374545
|
-
if (currentConfig.lastReleaseNotesSeen === "1.27.
|
|
374581
|
+
if (currentConfig.lastReleaseNotesSeen === "1.27.4") {
|
|
374546
374582
|
return;
|
|
374547
374583
|
}
|
|
374548
374584
|
saveGlobalConfig(_temp326);
|
|
@@ -375227,12 +375263,12 @@ function LogoV2() {
|
|
|
375227
375263
|
return t41;
|
|
375228
375264
|
}
|
|
375229
375265
|
function _temp326(current) {
|
|
375230
|
-
if (current.lastReleaseNotesSeen === "1.27.
|
|
375266
|
+
if (current.lastReleaseNotesSeen === "1.27.4") {
|
|
375231
375267
|
return current;
|
|
375232
375268
|
}
|
|
375233
375269
|
return {
|
|
375234
375270
|
...current,
|
|
375235
|
-
lastReleaseNotesSeen: "1.27.
|
|
375271
|
+
lastReleaseNotesSeen: "1.27.4"
|
|
375236
375272
|
};
|
|
375237
375273
|
}
|
|
375238
375274
|
function _temp243(s_0) {
|
|
@@ -392221,7 +392257,7 @@ function buildToolUseContext(tools, readFileStateCache) {
|
|
|
392221
392257
|
async function handleInitialize() {
|
|
392222
392258
|
return {
|
|
392223
392259
|
name: "ur-agent",
|
|
392224
|
-
version: "1.27.
|
|
392260
|
+
version: "1.27.4",
|
|
392225
392261
|
protocolVersion: "0.1.0"
|
|
392226
392262
|
};
|
|
392227
392263
|
}
|
|
@@ -591215,7 +591251,7 @@ async function captureMemoryDiagnostics(trigger2, dumpNumber = 0) {
|
|
|
591215
591251
|
smapsRollup,
|
|
591216
591252
|
platform: process.platform,
|
|
591217
591253
|
nodeVersion: process.version,
|
|
591218
|
-
ccVersion: "1.27.
|
|
591254
|
+
ccVersion: "1.27.4"
|
|
591219
591255
|
};
|
|
591220
591256
|
}
|
|
591221
591257
|
async function performHeapDump(trigger2 = "manual", dumpNumber = 0) {
|
|
@@ -591801,7 +591837,7 @@ var init_bridge_kick = __esm(() => {
|
|
|
591801
591837
|
var call136 = async () => {
|
|
591802
591838
|
return {
|
|
591803
591839
|
type: "text",
|
|
591804
|
-
value: "1.27.
|
|
591840
|
+
value: "1.27.4"
|
|
591805
591841
|
};
|
|
591806
591842
|
}, version2, version_default;
|
|
591807
591843
|
var init_version = __esm(() => {
|
|
@@ -601720,7 +601756,7 @@ function generateHtmlReport(data, insights) {
|
|
|
601720
601756
|
</html>`;
|
|
601721
601757
|
}
|
|
601722
601758
|
function buildExportData(data, insights, facets, remoteStats) {
|
|
601723
|
-
const version3 = typeof MACRO !== "undefined" ? "1.27.
|
|
601759
|
+
const version3 = typeof MACRO !== "undefined" ? "1.27.4" : "unknown";
|
|
601724
601760
|
const remote_hosts_collected = remoteStats?.hosts.filter((h2) => h2.sessionCount > 0).map((h2) => h2.name);
|
|
601725
601761
|
const facets_summary = {
|
|
601726
601762
|
total: facets.size,
|
|
@@ -605997,7 +606033,7 @@ var init_sessionStorage = __esm(() => {
|
|
|
605997
606033
|
init_settings2();
|
|
605998
606034
|
init_slowOperations();
|
|
605999
606035
|
init_uuid();
|
|
606000
|
-
VERSION5 = typeof MACRO !== "undefined" ? "1.27.
|
|
606036
|
+
VERSION5 = typeof MACRO !== "undefined" ? "1.27.4" : "unknown";
|
|
606001
606037
|
MAX_TOMBSTONE_REWRITE_BYTES = 50 * 1024 * 1024;
|
|
606002
606038
|
SKIP_FIRST_PROMPT_PATTERN = /^(?:\s*<[a-z][\w-]*[\s>]|\[Request interrupted by user[^\]]*\])/;
|
|
606003
606039
|
EPHEMERAL_PROGRESS_TYPES = new Set([
|
|
@@ -607202,7 +607238,7 @@ var init_filesystem = __esm(() => {
|
|
|
607202
607238
|
});
|
|
607203
607239
|
getBundledSkillsRoot = memoize_default(function getBundledSkillsRoot2() {
|
|
607204
607240
|
const nonce = randomBytes18(16).toString("hex");
|
|
607205
|
-
return join200(getURTempDir(), "bundled-skills", "1.27.
|
|
607241
|
+
return join200(getURTempDir(), "bundled-skills", "1.27.4", nonce);
|
|
607206
607242
|
});
|
|
607207
607243
|
getResolvedWorkingDirPaths = memoize_default(getPathsForPermissionCheck);
|
|
607208
607244
|
});
|
|
@@ -613492,7 +613528,7 @@ function computeFingerprint(messageText, version3) {
|
|
|
613492
613528
|
}
|
|
613493
613529
|
function computeFingerprintFromMessages(messages) {
|
|
613494
613530
|
const firstMessageText = extractFirstMessageText(messages);
|
|
613495
|
-
return computeFingerprint(firstMessageText, "1.27.
|
|
613531
|
+
return computeFingerprint(firstMessageText, "1.27.4");
|
|
613496
613532
|
}
|
|
613497
613533
|
var FINGERPRINT_SALT = "59cf53e54c78";
|
|
613498
613534
|
var init_fingerprint = () => {};
|
|
@@ -615358,7 +615394,7 @@ async function sideQuery(opts) {
|
|
|
615358
615394
|
betas.push(STRUCTURED_OUTPUTS_BETA_HEADER);
|
|
615359
615395
|
}
|
|
615360
615396
|
const messageText = extractFirstUserMessageText(messages);
|
|
615361
|
-
const fingerprint = computeFingerprint(messageText, "1.27.
|
|
615397
|
+
const fingerprint = computeFingerprint(messageText, "1.27.4");
|
|
615362
615398
|
const attributionHeader = getAttributionHeader(fingerprint);
|
|
615363
615399
|
const systemBlocks = [
|
|
615364
615400
|
attributionHeader ? { type: "text", text: attributionHeader } : null,
|
|
@@ -620095,7 +620131,7 @@ function buildSystemInitMessage(inputs) {
|
|
|
620095
620131
|
slash_commands: inputs.commands.filter((c4) => c4.userInvocable !== false).map((c4) => c4.name),
|
|
620096
620132
|
apiKeySource: getURHQApiKeyWithSource().source,
|
|
620097
620133
|
betas: getSdkBetas(),
|
|
620098
|
-
ur_version: "1.27.
|
|
620134
|
+
ur_version: "1.27.4",
|
|
620099
620135
|
output_style: outputStyle2,
|
|
620100
620136
|
agents: inputs.agents.map((agent) => agent.agentType),
|
|
620101
620137
|
skills: inputs.skills.filter((s) => s.userInvocable !== false).map((skill2) => skill2.name),
|
|
@@ -634723,7 +634759,7 @@ var init_useVoiceEnabled = __esm(() => {
|
|
|
634723
634759
|
function getSemverPart(version3) {
|
|
634724
634760
|
return `${import_semver13.major(version3, { loose: true })}.${import_semver13.minor(version3, { loose: true })}.${import_semver13.patch(version3, { loose: true })}`;
|
|
634725
634761
|
}
|
|
634726
|
-
function useUpdateNotification(updatedVersion, initialVersion = "1.27.
|
|
634762
|
+
function useUpdateNotification(updatedVersion, initialVersion = "1.27.4") {
|
|
634727
634763
|
const [lastNotifiedSemver, setLastNotifiedSemver] = import_react226.useState(() => getSemverPart(initialVersion));
|
|
634728
634764
|
if (!updatedVersion) {
|
|
634729
634765
|
return null;
|
|
@@ -634772,7 +634808,7 @@ function AutoUpdater({
|
|
|
634772
634808
|
return;
|
|
634773
634809
|
}
|
|
634774
634810
|
if (false) {}
|
|
634775
|
-
const currentVersion = "1.27.
|
|
634811
|
+
const currentVersion = "1.27.4";
|
|
634776
634812
|
const channel = getInitialSettings()?.autoUpdatesChannel ?? "latest";
|
|
634777
634813
|
let latestVersion = await getLatestVersion(channel);
|
|
634778
634814
|
const isDisabled = isAutoUpdaterDisabled();
|
|
@@ -635001,12 +635037,12 @@ function NativeAutoUpdater({
|
|
|
635001
635037
|
logEvent("tengu_native_auto_updater_start", {});
|
|
635002
635038
|
try {
|
|
635003
635039
|
const maxVersion = await getMaxVersion();
|
|
635004
|
-
if (maxVersion && gt("1.27.
|
|
635040
|
+
if (maxVersion && gt("1.27.4", maxVersion)) {
|
|
635005
635041
|
const msg = await getMaxVersionMessage();
|
|
635006
635042
|
setMaxVersionIssue(msg ?? "affects your version");
|
|
635007
635043
|
}
|
|
635008
635044
|
const result = await installLatest(channel);
|
|
635009
|
-
const currentVersion = "1.27.
|
|
635045
|
+
const currentVersion = "1.27.4";
|
|
635010
635046
|
const latencyMs = Date.now() - startTime;
|
|
635011
635047
|
if (result.lockFailed) {
|
|
635012
635048
|
logEvent("tengu_native_auto_updater_lock_contention", {
|
|
@@ -635143,17 +635179,17 @@ function PackageManagerAutoUpdater(t0) {
|
|
|
635143
635179
|
const maxVersion = await getMaxVersion();
|
|
635144
635180
|
if (maxVersion && latest && gt(latest, maxVersion)) {
|
|
635145
635181
|
logForDebugging(`PackageManagerAutoUpdater: maxVersion ${maxVersion} is set, capping update from ${latest} to ${maxVersion}`);
|
|
635146
|
-
if (gte("1.27.
|
|
635147
|
-
logForDebugging(`PackageManagerAutoUpdater: current version ${"1.27.
|
|
635182
|
+
if (gte("1.27.4", maxVersion)) {
|
|
635183
|
+
logForDebugging(`PackageManagerAutoUpdater: current version ${"1.27.4"} is already at or above maxVersion ${maxVersion}, skipping update`);
|
|
635148
635184
|
setUpdateAvailable(false);
|
|
635149
635185
|
return;
|
|
635150
635186
|
}
|
|
635151
635187
|
latest = maxVersion;
|
|
635152
635188
|
}
|
|
635153
|
-
const hasUpdate = latest && !gte("1.27.
|
|
635189
|
+
const hasUpdate = latest && !gte("1.27.4", latest) && !shouldSkipVersion(latest);
|
|
635154
635190
|
setUpdateAvailable(!!hasUpdate);
|
|
635155
635191
|
if (hasUpdate) {
|
|
635156
|
-
logForDebugging(`PackageManagerAutoUpdater: Update available ${"1.27.
|
|
635192
|
+
logForDebugging(`PackageManagerAutoUpdater: Update available ${"1.27.4"} -> ${latest}`);
|
|
635157
635193
|
}
|
|
635158
635194
|
};
|
|
635159
635195
|
$3[0] = t1;
|
|
@@ -635187,7 +635223,7 @@ function PackageManagerAutoUpdater(t0) {
|
|
|
635187
635223
|
wrap: "truncate",
|
|
635188
635224
|
children: [
|
|
635189
635225
|
"currentVersion: ",
|
|
635190
|
-
"1.27.
|
|
635226
|
+
"1.27.4"
|
|
635191
635227
|
]
|
|
635192
635228
|
}, undefined, true, undefined, this);
|
|
635193
635229
|
$3[3] = verbose;
|
|
@@ -647633,7 +647669,7 @@ function buildStatusLineCommandInput(permissionMode, exceeds200kTokens, settings
|
|
|
647633
647669
|
project_dir: getOriginalCwd(),
|
|
647634
647670
|
added_dirs: addedDirs
|
|
647635
647671
|
},
|
|
647636
|
-
version: "1.27.
|
|
647672
|
+
version: "1.27.4",
|
|
647637
647673
|
output_style: {
|
|
647638
647674
|
name: outputStyleName
|
|
647639
647675
|
},
|
|
@@ -647708,7 +647744,7 @@ function StatusLineInner({
|
|
|
647708
647744
|
const taskValues = Object.values(tasks2);
|
|
647709
647745
|
const taskRunningCount = taskValues.filter((task2) => task2.status === "running" || task2.status === "pending").length;
|
|
647710
647746
|
const defaultStatusLineText = buildDefaultStatusBar({
|
|
647711
|
-
version: "1.27.
|
|
647747
|
+
version: "1.27.4",
|
|
647712
647748
|
providerLabel: providerRuntime.providerLabel,
|
|
647713
647749
|
authMode: providerRuntime.authLabel,
|
|
647714
647750
|
model: providerRuntime.model ?? renderModelName(mainLoopModel),
|
|
@@ -659194,7 +659230,7 @@ async function submitTranscriptShare(messages, trigger2, appearanceId) {
|
|
|
659194
659230
|
} catch {}
|
|
659195
659231
|
const data = {
|
|
659196
659232
|
trigger: trigger2,
|
|
659197
|
-
version: "1.27.
|
|
659233
|
+
version: "1.27.4",
|
|
659198
659234
|
platform: process.platform,
|
|
659199
659235
|
transcript,
|
|
659200
659236
|
subagentTranscripts: Object.keys(subagentTranscripts).length > 0 ? subagentTranscripts : undefined,
|
|
@@ -671076,7 +671112,7 @@ function WelcomeV2() {
|
|
|
671076
671112
|
dimColor: true,
|
|
671077
671113
|
children: [
|
|
671078
671114
|
"v",
|
|
671079
|
-
"1.27.
|
|
671115
|
+
"1.27.4"
|
|
671080
671116
|
]
|
|
671081
671117
|
}, undefined, true, undefined, this)
|
|
671082
671118
|
]
|
|
@@ -672336,7 +672372,7 @@ function completeOnboarding() {
|
|
|
672336
672372
|
saveGlobalConfig((current) => ({
|
|
672337
672373
|
...current,
|
|
672338
672374
|
hasCompletedOnboarding: true,
|
|
672339
|
-
lastOnboardingVersion: "1.27.
|
|
672375
|
+
lastOnboardingVersion: "1.27.4"
|
|
672340
672376
|
}));
|
|
672341
672377
|
}
|
|
672342
672378
|
function showDialog(root2, renderer) {
|
|
@@ -677437,7 +677473,7 @@ function appendToLog(path24, message) {
|
|
|
677437
677473
|
cwd: getFsImplementation().cwd(),
|
|
677438
677474
|
userType: process.env.USER_TYPE,
|
|
677439
677475
|
sessionId: getSessionId(),
|
|
677440
|
-
version: "1.27.
|
|
677476
|
+
version: "1.27.4"
|
|
677441
677477
|
};
|
|
677442
677478
|
getLogWriter(path24).write(messageWithTimestamp);
|
|
677443
677479
|
}
|
|
@@ -681531,8 +681567,8 @@ async function getEnvLessBridgeConfig() {
|
|
|
681531
681567
|
}
|
|
681532
681568
|
async function checkEnvLessBridgeMinVersion() {
|
|
681533
681569
|
const cfg = await getEnvLessBridgeConfig();
|
|
681534
|
-
if (cfg.min_version && lt("1.27.
|
|
681535
|
-
return `Your version of UR (${"1.27.
|
|
681570
|
+
if (cfg.min_version && lt("1.27.4", cfg.min_version)) {
|
|
681571
|
+
return `Your version of UR (${"1.27.4"}) is too old for Remote Control.
|
|
681536
681572
|
Version ${cfg.min_version} or higher is required. Run \`ur update\` to update.`;
|
|
681537
681573
|
}
|
|
681538
681574
|
return null;
|
|
@@ -682006,7 +682042,7 @@ async function initBridgeCore(params) {
|
|
|
682006
682042
|
const rawApi = createBridgeApiClient({
|
|
682007
682043
|
baseUrl,
|
|
682008
682044
|
getAccessToken,
|
|
682009
|
-
runnerVersion: "1.27.
|
|
682045
|
+
runnerVersion: "1.27.4",
|
|
682010
682046
|
onDebug: logForDebugging,
|
|
682011
682047
|
onAuth401,
|
|
682012
682048
|
getTrustedDeviceToken
|
|
@@ -687687,7 +687723,7 @@ async function startMCPServer(cwd3, debug2, verbose) {
|
|
|
687687
687723
|
setCwd(cwd3);
|
|
687688
687724
|
const server2 = new Server({
|
|
687689
687725
|
name: "ur/tengu",
|
|
687690
|
-
version: "1.27.
|
|
687726
|
+
version: "1.27.4"
|
|
687691
687727
|
}, {
|
|
687692
687728
|
capabilities: {
|
|
687693
687729
|
tools: {}
|
|
@@ -689500,7 +689536,7 @@ async function update() {
|
|
|
689500
689536
|
logEvent("tengu_update_check", {});
|
|
689501
689537
|
const diagnostic = await getDoctorDiagnostic();
|
|
689502
689538
|
const result = await checkUpgradeStatus({
|
|
689503
|
-
currentVersion: "1.27.
|
|
689539
|
+
currentVersion: "1.27.4",
|
|
689504
689540
|
packageName: UR_AGENT_PACKAGE_NAME,
|
|
689505
689541
|
installationType: diagnostic.installationType,
|
|
689506
689542
|
latestVersion: () => getLatestNpmPackageVersion(UR_AGENT_PACKAGE_NAME)
|
|
@@ -690746,7 +690782,7 @@ ${customInstructions}` : customInstructions;
|
|
|
690746
690782
|
}
|
|
690747
690783
|
}
|
|
690748
690784
|
logForDiagnosticsNoPII("info", "started", {
|
|
690749
|
-
version: "1.27.
|
|
690785
|
+
version: "1.27.4",
|
|
690750
690786
|
is_native_binary: isInBundledMode()
|
|
690751
690787
|
});
|
|
690752
690788
|
registerCleanup(async () => {
|
|
@@ -691530,7 +691566,7 @@ Usage: ur --remote "your task description"`, () => gracefulShutdown(1));
|
|
|
691530
691566
|
pendingHookMessages
|
|
691531
691567
|
}, renderAndRun);
|
|
691532
691568
|
}
|
|
691533
|
-
}).version("1.27.
|
|
691569
|
+
}).version("1.27.4 (UR-AGENT)", "-v, --version", "Output the version number");
|
|
691534
691570
|
program2.option("-w, --worktree [name]", "Create a new git worktree for this session (optionally specify a name)");
|
|
691535
691571
|
program2.option("--tmux", "Create a tmux session for the worktree (requires --worktree). Uses iTerm2 native panes when available; use --tmux=classic for traditional tmux.");
|
|
691536
691572
|
if (canUserConfigureAdvisor()) {
|
|
@@ -692407,7 +692443,7 @@ if (false) {}
|
|
|
692407
692443
|
async function main2() {
|
|
692408
692444
|
const args = process.argv.slice(2);
|
|
692409
692445
|
if (args.length === 1 && (args[0] === "--version" || args[0] === "-v" || args[0] === "-V")) {
|
|
692410
|
-
console.log(`${"1.27.
|
|
692446
|
+
console.log(`${"1.27.4"} (UR-AGENT)`);
|
|
692411
692447
|
return;
|
|
692412
692448
|
}
|
|
692413
692449
|
if (args[0] === "a2a" && args[1] === "serve" && !args.includes("--help") && !args.includes("-h")) {
|
package/package.json
CHANGED