ur-agent 1.36.0 → 1.37.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/README.md +26 -15
- package/bin/ur.js +13 -3
- package/dist/cli.js +94 -73
- package/docs/IDE.md +183 -37
- package/documentation/index.html +2 -2
- package/extensions/vscode-ur-inline-diffs/README.md +72 -10
- package/extensions/vscode-ur-inline-diffs/out/extension.js +2333 -0
- package/extensions/vscode-ur-inline-diffs/package.json +174 -7
- package/package.json +2 -2
- package/extensions/vscode-ur-inline-diffs/extension.js +0 -383
package/dist/cli.js
CHANGED
|
@@ -51672,12 +51672,13 @@ function getProviderDefinition(id) {
|
|
|
51672
51672
|
return PROVIDERS[id];
|
|
51673
51673
|
}
|
|
51674
51674
|
function getActiveProviderSettings(settings = getInitialSettings()) {
|
|
51675
|
-
const
|
|
51675
|
+
const effectiveSettings = settings ?? {};
|
|
51676
|
+
const configured = effectiveSettings.provider ?? {};
|
|
51676
51677
|
const active = configured.active ? resolveProviderId(configured.active) ?? DEFAULT_PROVIDER_ID : DEFAULT_PROVIDER_ID;
|
|
51677
51678
|
const fallback = configured.fallback === "disabled" ? "disabled" : configured.fallback ? resolveProviderId(configured.fallback) ?? undefined : undefined;
|
|
51678
51679
|
return {
|
|
51679
51680
|
active,
|
|
51680
|
-
model: configured.model ?? (configured.active ? undefined :
|
|
51681
|
+
model: configured.model ?? (configured.active ? undefined : effectiveSettings.model),
|
|
51681
51682
|
baseUrl: configured.baseUrl,
|
|
51682
51683
|
commandPath: configured.commandPath,
|
|
51683
51684
|
fallback
|
|
@@ -70875,7 +70876,7 @@ var init_auth = __esm(() => {
|
|
|
70875
70876
|
|
|
70876
70877
|
// src/utils/userAgent.ts
|
|
70877
70878
|
function getURCodeUserAgent() {
|
|
70878
|
-
return `ur/${"1.
|
|
70879
|
+
return `ur/${"1.37.0"}`;
|
|
70879
70880
|
}
|
|
70880
70881
|
|
|
70881
70882
|
// src/utils/workloadContext.ts
|
|
@@ -70897,7 +70898,7 @@ function getUserAgent() {
|
|
|
70897
70898
|
const clientApp = process.env.UR_AGENT_SDK_CLIENT_APP ? `, client-app/${process.env.UR_AGENT_SDK_CLIENT_APP}` : "";
|
|
70898
70899
|
const workload = getWorkload();
|
|
70899
70900
|
const workloadSuffix = workload ? `, workload/${workload}` : "";
|
|
70900
|
-
return `ur-cli/${"1.
|
|
70901
|
+
return `ur-cli/${"1.37.0"} (${process.env.USER_TYPE}, ${process.env.UR_CODE_ENTRYPOINT ?? "cli"}${agentSdkVersion}${clientApp}${workloadSuffix})`;
|
|
70901
70902
|
}
|
|
70902
70903
|
function getMCPUserAgent() {
|
|
70903
70904
|
const parts = [];
|
|
@@ -70911,7 +70912,7 @@ function getMCPUserAgent() {
|
|
|
70911
70912
|
parts.push(`client-app/${process.env.UR_AGENT_SDK_CLIENT_APP}`);
|
|
70912
70913
|
}
|
|
70913
70914
|
const suffix = parts.length > 0 ? ` (${parts.join(", ")})` : "";
|
|
70914
|
-
return `ur/${"1.
|
|
70915
|
+
return `ur/${"1.37.0"}${suffix}`;
|
|
70915
70916
|
}
|
|
70916
70917
|
function getWebFetchUserAgent() {
|
|
70917
70918
|
return `UR-User (${getURCodeUserAgent()})`;
|
|
@@ -71049,7 +71050,7 @@ var init_user = __esm(() => {
|
|
|
71049
71050
|
deviceId,
|
|
71050
71051
|
sessionId: getSessionId(),
|
|
71051
71052
|
email: getEmail(),
|
|
71052
|
-
appVersion: "1.
|
|
71053
|
+
appVersion: "1.37.0",
|
|
71053
71054
|
platform: getHostPlatformForAnalytics(),
|
|
71054
71055
|
organizationUuid,
|
|
71055
71056
|
accountUuid,
|
|
@@ -77566,7 +77567,7 @@ var init_metadata = __esm(() => {
|
|
|
77566
77567
|
COMPOUND_OPERATOR_REGEX = /\s*(?:&&|\|\||[;|])\s*/;
|
|
77567
77568
|
WHITESPACE_REGEX = /\s+/;
|
|
77568
77569
|
getVersionBase = memoize_default(() => {
|
|
77569
|
-
const match = "1.
|
|
77570
|
+
const match = "1.37.0".match(/^\d+\.\d+\.\d+(?:-[a-z]+)?/);
|
|
77570
77571
|
return match ? match[0] : undefined;
|
|
77571
77572
|
});
|
|
77572
77573
|
buildEnvContext = memoize_default(async () => {
|
|
@@ -77606,7 +77607,7 @@ var init_metadata = __esm(() => {
|
|
|
77606
77607
|
isGithubAction: isEnvTruthy(process.env.GITHUB_ACTIONS),
|
|
77607
77608
|
isURCodeAction: isEnvTruthy(process.env.UR_CODE_ACTION),
|
|
77608
77609
|
isURAiAuth: isURAISubscriber2(),
|
|
77609
|
-
version: "1.
|
|
77610
|
+
version: "1.37.0",
|
|
77610
77611
|
versionBase: getVersionBase(),
|
|
77611
77612
|
buildTime: "",
|
|
77612
77613
|
deploymentEnvironment: env2.detectDeploymentEnvironment(),
|
|
@@ -78276,7 +78277,7 @@ function initialize1PEventLogging() {
|
|
|
78276
78277
|
const platform2 = getPlatform();
|
|
78277
78278
|
const attributes = {
|
|
78278
78279
|
[import_semantic_conventions4.ATTR_SERVICE_NAME]: "ur",
|
|
78279
|
-
[import_semantic_conventions4.ATTR_SERVICE_VERSION]: "1.
|
|
78280
|
+
[import_semantic_conventions4.ATTR_SERVICE_VERSION]: "1.37.0"
|
|
78280
78281
|
};
|
|
78281
78282
|
if (platform2 === "wsl") {
|
|
78282
78283
|
const wslVersion = getWslVersion();
|
|
@@ -78303,7 +78304,7 @@ function initialize1PEventLogging() {
|
|
|
78303
78304
|
})
|
|
78304
78305
|
]
|
|
78305
78306
|
});
|
|
78306
|
-
firstPartyEventLogger = firstPartyEventLoggerProvider.getLogger("com.urhq.ur.events", "1.
|
|
78307
|
+
firstPartyEventLogger = firstPartyEventLoggerProvider.getLogger("com.urhq.ur.events", "1.37.0");
|
|
78307
78308
|
}
|
|
78308
78309
|
async function reinitialize1PEventLoggingIfConfigChanged() {
|
|
78309
78310
|
if (!is1PEventLoggingEnabled() || !firstPartyEventLoggerProvider) {
|
|
@@ -83600,7 +83601,7 @@ function formatAgentTrendReport(report = buildAgentTrendReport()) {
|
|
|
83600
83601
|
function formatA2AAgentCard(options = {}, pretty = true) {
|
|
83601
83602
|
return JSON.stringify(buildA2AAgentCard(options), null, pretty ? 2 : 0);
|
|
83602
83603
|
}
|
|
83603
|
-
var urVersion = "1.
|
|
83604
|
+
var urVersion = "1.37.0", coverage, priorityRoadmap;
|
|
83604
83605
|
var init_trends = __esm(() => {
|
|
83605
83606
|
coverage = [
|
|
83606
83607
|
{
|
|
@@ -85593,7 +85594,7 @@ function getAttributionHeader(fingerprint) {
|
|
|
85593
85594
|
if (!isAttributionHeaderEnabled()) {
|
|
85594
85595
|
return "";
|
|
85595
85596
|
}
|
|
85596
|
-
const version2 = `${"1.
|
|
85597
|
+
const version2 = `${"1.37.0"}.${fingerprint}`;
|
|
85597
85598
|
const entrypoint = process.env.UR_CODE_ENTRYPOINT ?? "unknown";
|
|
85598
85599
|
const cch = "";
|
|
85599
85600
|
const workload = getWorkload();
|
|
@@ -193454,7 +193455,7 @@ function getTelemetryAttributes() {
|
|
|
193454
193455
|
attributes["session.id"] = sessionId;
|
|
193455
193456
|
}
|
|
193456
193457
|
if (shouldIncludeAttribute("OTEL_METRICS_INCLUDE_VERSION")) {
|
|
193457
|
-
attributes["app.version"] = "1.
|
|
193458
|
+
attributes["app.version"] = "1.37.0";
|
|
193458
193459
|
}
|
|
193459
193460
|
const oauthAccount = getOauthAccountInfo();
|
|
193460
193461
|
if (oauthAccount) {
|
|
@@ -228839,7 +228840,7 @@ function getInstallationEnv() {
|
|
|
228839
228840
|
return;
|
|
228840
228841
|
}
|
|
228841
228842
|
function getURCodeVersion() {
|
|
228842
|
-
return "1.
|
|
228843
|
+
return "1.37.0";
|
|
228843
228844
|
}
|
|
228844
228845
|
async function getInstalledVSCodeExtensionVersion(command) {
|
|
228845
228846
|
const { stdout } = await execFileNoThrow(command, ["--list-extensions", "--show-versions"], {
|
|
@@ -231678,7 +231679,7 @@ async function setupSdkMcpClients(sdkMcpConfigs, sendMcpMessage) {
|
|
|
231678
231679
|
const client2 = new Client({
|
|
231679
231680
|
name: "ur",
|
|
231680
231681
|
title: "UR",
|
|
231681
|
-
version: "1.
|
|
231682
|
+
version: "1.37.0",
|
|
231682
231683
|
description: "UR-AGENT autonomous engineering workflow engine",
|
|
231683
231684
|
websiteUrl: PRODUCT_URL
|
|
231684
231685
|
}, {
|
|
@@ -232032,7 +232033,7 @@ var init_client5 = __esm(() => {
|
|
|
232032
232033
|
const client2 = new Client({
|
|
232033
232034
|
name: "ur",
|
|
232034
232035
|
title: "UR",
|
|
232035
|
-
version: "1.
|
|
232036
|
+
version: "1.37.0",
|
|
232036
232037
|
description: "UR-AGENT autonomous engineering workflow engine",
|
|
232037
232038
|
websiteUrl: PRODUCT_URL
|
|
232038
232039
|
}, {
|
|
@@ -241846,9 +241847,9 @@ async function assertMinVersion() {
|
|
|
241846
241847
|
if (false) {}
|
|
241847
241848
|
try {
|
|
241848
241849
|
const versionConfig = await getDynamicConfig_BLOCKS_ON_INIT("tengu_version_config", { minVersion: "0.0.0" });
|
|
241849
|
-
if (versionConfig.minVersion && lt("1.
|
|
241850
|
+
if (versionConfig.minVersion && lt("1.37.0", versionConfig.minVersion)) {
|
|
241850
241851
|
console.error(`
|
|
241851
|
-
It looks like your version of UR (${"1.
|
|
241852
|
+
It looks like your version of UR (${"1.37.0"}) needs an update.
|
|
241852
241853
|
A newer version (${versionConfig.minVersion} or higher) is required to continue.
|
|
241853
241854
|
|
|
241854
241855
|
To update, please run:
|
|
@@ -242064,7 +242065,7 @@ async function installGlobalPackage(specificVersion) {
|
|
|
242064
242065
|
logError2(new AutoUpdaterError("Another process is currently installing an update"));
|
|
242065
242066
|
logEvent("tengu_auto_updater_lock_contention", {
|
|
242066
242067
|
pid: process.pid,
|
|
242067
|
-
currentVersion: "1.
|
|
242068
|
+
currentVersion: "1.37.0"
|
|
242068
242069
|
});
|
|
242069
242070
|
return "in_progress";
|
|
242070
242071
|
}
|
|
@@ -242073,7 +242074,7 @@ async function installGlobalPackage(specificVersion) {
|
|
|
242073
242074
|
if (!env2.isRunningWithBun() && env2.isNpmFromWindowsPath()) {
|
|
242074
242075
|
logError2(new Error("Windows NPM detected in WSL environment"));
|
|
242075
242076
|
logEvent("tengu_auto_updater_windows_npm_in_wsl", {
|
|
242076
|
-
currentVersion: "1.
|
|
242077
|
+
currentVersion: "1.37.0"
|
|
242077
242078
|
});
|
|
242078
242079
|
console.error(`
|
|
242079
242080
|
Error: Windows NPM detected in WSL
|
|
@@ -242608,7 +242609,7 @@ function detectLinuxGlobPatternWarnings() {
|
|
|
242608
242609
|
}
|
|
242609
242610
|
async function getDoctorDiagnostic() {
|
|
242610
242611
|
const installationType = await getCurrentInstallationType();
|
|
242611
|
-
const version2 = typeof MACRO !== "undefined" ? "1.
|
|
242612
|
+
const version2 = typeof MACRO !== "undefined" ? "1.37.0" : "unknown";
|
|
242612
242613
|
const installationPath = await getInstallationPath();
|
|
242613
242614
|
const invokedBinary = getInvokedBinary();
|
|
242614
242615
|
const multipleInstallations = await detectMultipleInstallations();
|
|
@@ -243543,8 +243544,8 @@ async function updateLatest(channelOrVersion, forceReinstall = false) {
|
|
|
243543
243544
|
const maxVersion = await getMaxVersion();
|
|
243544
243545
|
if (maxVersion && gt(version2, maxVersion)) {
|
|
243545
243546
|
logForDebugging(`Native installer: maxVersion ${maxVersion} is set, capping update from ${version2} to ${maxVersion}`);
|
|
243546
|
-
if (gte("1.
|
|
243547
|
-
logForDebugging(`Native installer: current version ${"1.
|
|
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`);
|
|
243548
243549
|
logEvent("tengu_native_update_skipped_max_version", {
|
|
243549
243550
|
latency_ms: Date.now() - startTime,
|
|
243550
243551
|
max_version: maxVersion,
|
|
@@ -243555,7 +243556,7 @@ async function updateLatest(channelOrVersion, forceReinstall = false) {
|
|
|
243555
243556
|
version2 = maxVersion;
|
|
243556
243557
|
}
|
|
243557
243558
|
}
|
|
243558
|
-
if (!forceReinstall && version2 === "1.
|
|
243559
|
+
if (!forceReinstall && version2 === "1.37.0" && await versionIsAvailable(version2) && await isPossibleURBinary(executablePath)) {
|
|
243559
243560
|
logForDebugging(`Found ${version2} at ${executablePath}, skipping install`);
|
|
243560
243561
|
logEvent("tengu_native_update_complete", {
|
|
243561
243562
|
latency_ms: Date.now() - startTime,
|
|
@@ -340485,7 +340486,7 @@ function Feedback({
|
|
|
340485
340486
|
platform: env2.platform,
|
|
340486
340487
|
gitRepo: envInfo.isGit,
|
|
340487
340488
|
terminal: env2.terminal,
|
|
340488
|
-
version: "1.
|
|
340489
|
+
version: "1.37.0",
|
|
340489
340490
|
transcript: normalizeMessagesForAPI(messages),
|
|
340490
340491
|
errors: sanitizedErrors,
|
|
340491
340492
|
lastApiRequest: getLastAPIRequest(),
|
|
@@ -340677,7 +340678,7 @@ function Feedback({
|
|
|
340677
340678
|
", ",
|
|
340678
340679
|
env2.terminal,
|
|
340679
340680
|
", v",
|
|
340680
|
-
"1.
|
|
340681
|
+
"1.37.0"
|
|
340681
340682
|
]
|
|
340682
340683
|
}, undefined, true, undefined, this)
|
|
340683
340684
|
]
|
|
@@ -340783,7 +340784,7 @@ ${sanitizedDescription}
|
|
|
340783
340784
|
` + `**Environment Info**
|
|
340784
340785
|
` + `- Platform: ${env2.platform}
|
|
340785
340786
|
` + `- Terminal: ${env2.terminal}
|
|
340786
|
-
` + `- Version: ${"1.
|
|
340787
|
+
` + `- Version: ${"1.37.0"}
|
|
340787
340788
|
` + `- Feedback ID: ${feedbackId}
|
|
340788
340789
|
` + `
|
|
340789
340790
|
**Errors**
|
|
@@ -343894,7 +343895,7 @@ function buildPrimarySection() {
|
|
|
343894
343895
|
}, undefined, false, undefined, this);
|
|
343895
343896
|
return [{
|
|
343896
343897
|
label: "Version",
|
|
343897
|
-
value: "1.
|
|
343898
|
+
value: "1.37.0"
|
|
343898
343899
|
}, {
|
|
343899
343900
|
label: "Session name",
|
|
343900
343901
|
value: nameValue
|
|
@@ -347195,7 +347196,7 @@ function Config({
|
|
|
347195
347196
|
}
|
|
347196
347197
|
}, undefined, false, undefined, this)
|
|
347197
347198
|
}, undefined, false, undefined, this) : showSubmenu === "ChannelDowngrade" ? /* @__PURE__ */ jsx_dev_runtime177.jsxDEV(ChannelDowngradeDialog, {
|
|
347198
|
-
currentVersion: "1.
|
|
347199
|
+
currentVersion: "1.37.0",
|
|
347199
347200
|
onChoice: (choice) => {
|
|
347200
347201
|
setShowSubmenu(null);
|
|
347201
347202
|
setTabsHidden(false);
|
|
@@ -347207,7 +347208,7 @@ function Config({
|
|
|
347207
347208
|
autoUpdatesChannel: "stable"
|
|
347208
347209
|
};
|
|
347209
347210
|
if (choice === "stay") {
|
|
347210
|
-
newSettings.minimumVersion = "1.
|
|
347211
|
+
newSettings.minimumVersion = "1.37.0";
|
|
347211
347212
|
}
|
|
347212
347213
|
updateSettingsForSource("userSettings", newSettings);
|
|
347213
347214
|
setSettingsData((prev_27) => ({
|
|
@@ -355277,7 +355278,7 @@ function HelpV2(t0) {
|
|
|
355277
355278
|
let t6;
|
|
355278
355279
|
if ($3[31] !== tabs) {
|
|
355279
355280
|
t6 = /* @__PURE__ */ jsx_dev_runtime204.jsxDEV(Tabs, {
|
|
355280
|
-
title: `UR v${"1.
|
|
355281
|
+
title: `UR v${"1.37.0"}`,
|
|
355281
355282
|
color: "professionalBlue",
|
|
355282
355283
|
defaultTab: "general",
|
|
355283
355284
|
children: tabs
|
|
@@ -356023,7 +356024,7 @@ function buildToolUseContext(tools, readFileStateCache) {
|
|
|
356023
356024
|
async function handleInitialize(options2) {
|
|
356024
356025
|
return {
|
|
356025
356026
|
name: "ur-agent",
|
|
356026
|
-
version: "1.
|
|
356027
|
+
version: "1.37.0",
|
|
356027
356028
|
protocolVersion: "0.1.0",
|
|
356028
356029
|
workspaceRoot: options2.cwd,
|
|
356029
356030
|
capabilities: {
|
|
@@ -356577,6 +356578,10 @@ function formatIdeStatus(status, json2 = false) {
|
|
|
356577
356578
|
`Plugins loaded: ${status.pluginCount}`,
|
|
356578
356579
|
`Detected IDEs: ${ide}`
|
|
356579
356580
|
];
|
|
356581
|
+
if (status.sandboxMode)
|
|
356582
|
+
lines.push(`Sandbox mode: ${status.sandboxMode}`);
|
|
356583
|
+
if (status.verifierMode)
|
|
356584
|
+
lines.push(`Verifier mode: ${status.verifierMode}`);
|
|
356580
356585
|
if (status.warnings.length > 0) {
|
|
356581
356586
|
lines.push("Warnings:", ...status.warnings.map((w) => ` - ${w}`));
|
|
356582
356587
|
}
|
|
@@ -356624,6 +356629,17 @@ __export(exports_ideInfoCommand, {
|
|
|
356624
356629
|
runIdeInfoCommand: () => runIdeInfoCommand,
|
|
356625
356630
|
collectIdeStatus: () => collectIdeStatus
|
|
356626
356631
|
});
|
|
356632
|
+
function currentSandboxMode() {
|
|
356633
|
+
if (!SandboxManager2.isSandboxingEnabled())
|
|
356634
|
+
return "disabled";
|
|
356635
|
+
return SandboxManager2.isSandboxRequired() ? "required" : "recommended";
|
|
356636
|
+
}
|
|
356637
|
+
function currentVerifierMode() {
|
|
356638
|
+
const env4 = (process.env.UR_VERIFIER_MODE ?? "").toLowerCase();
|
|
356639
|
+
if (env4 === "off" || env4 === "loose" || env4 === "strict")
|
|
356640
|
+
return env4;
|
|
356641
|
+
return "strict";
|
|
356642
|
+
}
|
|
356627
356643
|
function pluginCount() {
|
|
356628
356644
|
try {
|
|
356629
356645
|
return Object.keys(loadInstalledPluginsV2().plugins ?? {}).length;
|
|
@@ -356660,7 +356676,9 @@ async function collectIdeStatus(cwd2) {
|
|
|
356660
356676
|
},
|
|
356661
356677
|
pluginCount: pluginCount(),
|
|
356662
356678
|
detectedIdes: detected.names.map((name) => ({ name, connected: false })),
|
|
356663
|
-
warnings
|
|
356679
|
+
warnings,
|
|
356680
|
+
sandboxMode: currentSandboxMode(),
|
|
356681
|
+
verifierMode: currentVerifierMode()
|
|
356664
356682
|
};
|
|
356665
356683
|
}
|
|
356666
356684
|
function usage2() {
|
|
@@ -356705,6 +356723,7 @@ var init_ideInfoCommand = __esm(() => {
|
|
|
356705
356723
|
init_cwd2();
|
|
356706
356724
|
init_ide();
|
|
356707
356725
|
init_installedPluginsManager();
|
|
356726
|
+
init_sandbox_adapter();
|
|
356708
356727
|
});
|
|
356709
356728
|
|
|
356710
356729
|
// src/commands/ide/ide.tsx
|
|
@@ -376147,7 +376166,7 @@ function getAllReleaseNotes(changelogContent = getStoredChangelogFromMemory()) {
|
|
|
376147
376166
|
return [];
|
|
376148
376167
|
}
|
|
376149
376168
|
}
|
|
376150
|
-
async function checkForReleaseNotes(lastSeenVersion, currentVersion = "1.
|
|
376169
|
+
async function checkForReleaseNotes(lastSeenVersion, currentVersion = "1.37.0") {
|
|
376151
376170
|
if (process.env.USER_TYPE === "ant") {
|
|
376152
376171
|
const changelog = "";
|
|
376153
376172
|
if (changelog) {
|
|
@@ -376174,7 +376193,7 @@ async function checkForReleaseNotes(lastSeenVersion, currentVersion = "1.36.0")
|
|
|
376174
376193
|
releaseNotes
|
|
376175
376194
|
};
|
|
376176
376195
|
}
|
|
376177
|
-
function checkForReleaseNotesSync(lastSeenVersion, currentVersion = "1.
|
|
376196
|
+
function checkForReleaseNotesSync(lastSeenVersion, currentVersion = "1.37.0") {
|
|
376178
376197
|
if (process.env.USER_TYPE === "ant") {
|
|
376179
376198
|
const changelog = "";
|
|
376180
376199
|
if (changelog) {
|
|
@@ -377344,7 +377363,7 @@ function getRecentActivitySync() {
|
|
|
377344
377363
|
return cachedActivity;
|
|
377345
377364
|
}
|
|
377346
377365
|
function getLogoDisplayData() {
|
|
377347
|
-
const version2 = process.env.DEMO_VERSION ?? "1.
|
|
377366
|
+
const version2 = process.env.DEMO_VERSION ?? "1.37.0";
|
|
377348
377367
|
const serverUrl = getDirectConnectServerUrl();
|
|
377349
377368
|
const displayPath = process.env.DEMO_VERSION ? "/code/ur" : getDisplayPath(getCwd2());
|
|
377350
377369
|
const cwd2 = serverUrl ? `${displayPath} in ${serverUrl.replace(/^https?:\/\//, "")}` : displayPath;
|
|
@@ -378133,7 +378152,7 @@ function LogoV2() {
|
|
|
378133
378152
|
if ($3[2] === Symbol.for("react.memo_cache_sentinel")) {
|
|
378134
378153
|
t2 = () => {
|
|
378135
378154
|
const currentConfig2 = getGlobalConfig();
|
|
378136
|
-
if (currentConfig2.lastReleaseNotesSeen === "1.
|
|
378155
|
+
if (currentConfig2.lastReleaseNotesSeen === "1.37.0") {
|
|
378137
378156
|
return;
|
|
378138
378157
|
}
|
|
378139
378158
|
saveGlobalConfig(_temp326);
|
|
@@ -378818,12 +378837,12 @@ function LogoV2() {
|
|
|
378818
378837
|
return t41;
|
|
378819
378838
|
}
|
|
378820
378839
|
function _temp326(current) {
|
|
378821
|
-
if (current.lastReleaseNotesSeen === "1.
|
|
378840
|
+
if (current.lastReleaseNotesSeen === "1.37.0") {
|
|
378822
378841
|
return current;
|
|
378823
378842
|
}
|
|
378824
378843
|
return {
|
|
378825
378844
|
...current,
|
|
378826
|
-
lastReleaseNotesSeen: "1.
|
|
378845
|
+
lastReleaseNotesSeen: "1.37.0"
|
|
378827
378846
|
};
|
|
378828
378847
|
}
|
|
378829
378848
|
function _temp243(s_0) {
|
|
@@ -594718,7 +594737,7 @@ async function captureMemoryDiagnostics(trigger2, dumpNumber = 0) {
|
|
|
594718
594737
|
smapsRollup,
|
|
594719
594738
|
platform: process.platform,
|
|
594720
594739
|
nodeVersion: process.version,
|
|
594721
|
-
ccVersion: "1.
|
|
594740
|
+
ccVersion: "1.37.0"
|
|
594722
594741
|
};
|
|
594723
594742
|
}
|
|
594724
594743
|
async function performHeapDump(trigger2 = "manual", dumpNumber = 0) {
|
|
@@ -595304,7 +595323,7 @@ var init_bridge_kick = __esm(() => {
|
|
|
595304
595323
|
var call137 = async () => {
|
|
595305
595324
|
return {
|
|
595306
595325
|
type: "text",
|
|
595307
|
-
value: "1.
|
|
595326
|
+
value: "1.37.0"
|
|
595308
595327
|
};
|
|
595309
595328
|
}, version2, version_default;
|
|
595310
595329
|
var init_version = __esm(() => {
|
|
@@ -605384,7 +605403,7 @@ function generateHtmlReport(data, insights) {
|
|
|
605384
605403
|
</html>`;
|
|
605385
605404
|
}
|
|
605386
605405
|
function buildExportData(data, insights, facets, remoteStats) {
|
|
605387
|
-
const version3 = typeof MACRO !== "undefined" ? "1.
|
|
605406
|
+
const version3 = typeof MACRO !== "undefined" ? "1.37.0" : "unknown";
|
|
605388
605407
|
const remote_hosts_collected = remoteStats?.hosts.filter((h2) => h2.sessionCount > 0).map((h2) => h2.name);
|
|
605389
605408
|
const facets_summary = {
|
|
605390
605409
|
total: facets.size,
|
|
@@ -609664,7 +609683,7 @@ var init_sessionStorage = __esm(() => {
|
|
|
609664
609683
|
init_settings2();
|
|
609665
609684
|
init_slowOperations();
|
|
609666
609685
|
init_uuid();
|
|
609667
|
-
VERSION5 = typeof MACRO !== "undefined" ? "1.
|
|
609686
|
+
VERSION5 = typeof MACRO !== "undefined" ? "1.37.0" : "unknown";
|
|
609668
609687
|
MAX_TOMBSTONE_REWRITE_BYTES = 50 * 1024 * 1024;
|
|
609669
609688
|
SKIP_FIRST_PROMPT_PATTERN = /^(?:\s*<[a-z][\w-]*[\s>]|\[Request interrupted by user[^\]]*\])/;
|
|
609670
609689
|
EPHEMERAL_PROGRESS_TYPES = new Set([
|
|
@@ -610869,7 +610888,7 @@ var init_filesystem = __esm(() => {
|
|
|
610869
610888
|
});
|
|
610870
610889
|
getBundledSkillsRoot = memoize_default(function getBundledSkillsRoot2() {
|
|
610871
610890
|
const nonce = randomBytes18(16).toString("hex");
|
|
610872
|
-
return join200(getURTempDir(), "bundled-skills", "1.
|
|
610891
|
+
return join200(getURTempDir(), "bundled-skills", "1.37.0", nonce);
|
|
610873
610892
|
});
|
|
610874
610893
|
getResolvedWorkingDirPaths = memoize_default(getPathsForPermissionCheck);
|
|
610875
610894
|
});
|
|
@@ -617158,7 +617177,7 @@ function computeFingerprint(messageText2, version3) {
|
|
|
617158
617177
|
}
|
|
617159
617178
|
function computeFingerprintFromMessages(messages) {
|
|
617160
617179
|
const firstMessageText = extractFirstMessageText(messages);
|
|
617161
|
-
return computeFingerprint(firstMessageText, "1.
|
|
617180
|
+
return computeFingerprint(firstMessageText, "1.37.0");
|
|
617162
617181
|
}
|
|
617163
617182
|
var FINGERPRINT_SALT = "59cf53e54c78";
|
|
617164
617183
|
var init_fingerprint = () => {};
|
|
@@ -619032,7 +619051,7 @@ async function sideQuery(opts) {
|
|
|
619032
619051
|
betas.push(STRUCTURED_OUTPUTS_BETA_HEADER);
|
|
619033
619052
|
}
|
|
619034
619053
|
const messageText2 = extractFirstUserMessageText(messages);
|
|
619035
|
-
const fingerprint = computeFingerprint(messageText2, "1.
|
|
619054
|
+
const fingerprint = computeFingerprint(messageText2, "1.37.0");
|
|
619036
619055
|
const attributionHeader = getAttributionHeader(fingerprint);
|
|
619037
619056
|
const systemBlocks = [
|
|
619038
619057
|
attributionHeader ? { type: "text", text: attributionHeader } : null,
|
|
@@ -623769,7 +623788,7 @@ function buildSystemInitMessage(inputs) {
|
|
|
623769
623788
|
slash_commands: inputs.commands.filter((c4) => c4.userInvocable !== false).map((c4) => c4.name),
|
|
623770
623789
|
apiKeySource: getURHQApiKeyWithSource().source,
|
|
623771
623790
|
betas: getSdkBetas(),
|
|
623772
|
-
ur_version: "1.
|
|
623791
|
+
ur_version: "1.37.0",
|
|
623773
623792
|
output_style: outputStyle2,
|
|
623774
623793
|
agents: inputs.agents.map((agent) => agent.agentType),
|
|
623775
623794
|
skills: inputs.skills.filter((s) => s.userInvocable !== false).map((skill2) => skill2.name),
|
|
@@ -638397,7 +638416,7 @@ var init_useVoiceEnabled = __esm(() => {
|
|
|
638397
638416
|
function getSemverPart(version3) {
|
|
638398
638417
|
return `${import_semver13.major(version3, { loose: true })}.${import_semver13.minor(version3, { loose: true })}.${import_semver13.patch(version3, { loose: true })}`;
|
|
638399
638418
|
}
|
|
638400
|
-
function useUpdateNotification(updatedVersion, initialVersion = "1.
|
|
638419
|
+
function useUpdateNotification(updatedVersion, initialVersion = "1.37.0") {
|
|
638401
638420
|
const [lastNotifiedSemver, setLastNotifiedSemver] = import_react226.useState(() => getSemverPart(initialVersion));
|
|
638402
638421
|
if (!updatedVersion) {
|
|
638403
638422
|
return null;
|
|
@@ -638446,7 +638465,7 @@ function AutoUpdater({
|
|
|
638446
638465
|
return;
|
|
638447
638466
|
}
|
|
638448
638467
|
if (false) {}
|
|
638449
|
-
const currentVersion = "1.
|
|
638468
|
+
const currentVersion = "1.37.0";
|
|
638450
638469
|
const channel = getInitialSettings()?.autoUpdatesChannel ?? "latest";
|
|
638451
638470
|
let latestVersion = await getLatestVersion(channel);
|
|
638452
638471
|
const isDisabled = isAutoUpdaterDisabled();
|
|
@@ -638675,12 +638694,12 @@ function NativeAutoUpdater({
|
|
|
638675
638694
|
logEvent("tengu_native_auto_updater_start", {});
|
|
638676
638695
|
try {
|
|
638677
638696
|
const maxVersion = await getMaxVersion();
|
|
638678
|
-
if (maxVersion && gt("1.
|
|
638697
|
+
if (maxVersion && gt("1.37.0", maxVersion)) {
|
|
638679
638698
|
const msg = await getMaxVersionMessage();
|
|
638680
638699
|
setMaxVersionIssue(msg ?? "affects your version");
|
|
638681
638700
|
}
|
|
638682
638701
|
const result = await installLatest(channel);
|
|
638683
|
-
const currentVersion = "1.
|
|
638702
|
+
const currentVersion = "1.37.0";
|
|
638684
638703
|
const latencyMs = Date.now() - startTime;
|
|
638685
638704
|
if (result.lockFailed) {
|
|
638686
638705
|
logEvent("tengu_native_auto_updater_lock_contention", {
|
|
@@ -638817,17 +638836,17 @@ function PackageManagerAutoUpdater(t0) {
|
|
|
638817
638836
|
const maxVersion = await getMaxVersion();
|
|
638818
638837
|
if (maxVersion && latest && gt(latest, maxVersion)) {
|
|
638819
638838
|
logForDebugging(`PackageManagerAutoUpdater: maxVersion ${maxVersion} is set, capping update from ${latest} to ${maxVersion}`);
|
|
638820
|
-
if (gte("1.
|
|
638821
|
-
logForDebugging(`PackageManagerAutoUpdater: current version ${"1.
|
|
638839
|
+
if (gte("1.37.0", maxVersion)) {
|
|
638840
|
+
logForDebugging(`PackageManagerAutoUpdater: current version ${"1.37.0"} is already at or above maxVersion ${maxVersion}, skipping update`);
|
|
638822
638841
|
setUpdateAvailable(false);
|
|
638823
638842
|
return;
|
|
638824
638843
|
}
|
|
638825
638844
|
latest = maxVersion;
|
|
638826
638845
|
}
|
|
638827
|
-
const hasUpdate = latest && !gte("1.
|
|
638846
|
+
const hasUpdate = latest && !gte("1.37.0", latest) && !shouldSkipVersion(latest);
|
|
638828
638847
|
setUpdateAvailable(!!hasUpdate);
|
|
638829
638848
|
if (hasUpdate) {
|
|
638830
|
-
logForDebugging(`PackageManagerAutoUpdater: Update available ${"1.
|
|
638849
|
+
logForDebugging(`PackageManagerAutoUpdater: Update available ${"1.37.0"} -> ${latest}`);
|
|
638831
638850
|
}
|
|
638832
638851
|
};
|
|
638833
638852
|
$3[0] = t1;
|
|
@@ -638861,7 +638880,7 @@ function PackageManagerAutoUpdater(t0) {
|
|
|
638861
638880
|
wrap: "truncate",
|
|
638862
638881
|
children: [
|
|
638863
638882
|
"currentVersion: ",
|
|
638864
|
-
"1.
|
|
638883
|
+
"1.37.0"
|
|
638865
638884
|
]
|
|
638866
638885
|
}, undefined, true, undefined, this);
|
|
638867
638886
|
$3[3] = verbose;
|
|
@@ -643230,7 +643249,8 @@ function useTypeahead({
|
|
|
643230
643249
|
}, [setSuggestionsState]);
|
|
643231
643250
|
const debouncedFetchSlackChannels = useDebounceCallback(fetchSlackChannels, 150);
|
|
643232
643251
|
const updateSuggestions = import_react239.useCallback(async (value, inputCursorOffset) => {
|
|
643233
|
-
const
|
|
643252
|
+
const rawCursorOffset = inputCursorOffset ?? cursorOffsetRef.current;
|
|
643253
|
+
const effectiveCursorOffset = value === "/" && rawCursorOffset === 0 ? 1 : rawCursorOffset;
|
|
643234
643254
|
if (suppressSuggestions) {
|
|
643235
643255
|
debouncedFetchFileSuggestions.cancel();
|
|
643236
643256
|
clearSuggestions();
|
|
@@ -651312,7 +651332,7 @@ function buildStatusLineCommandInput(permissionMode, exceeds200kTokens, settings
|
|
|
651312
651332
|
project_dir: getOriginalCwd(),
|
|
651313
651333
|
added_dirs: addedDirs
|
|
651314
651334
|
},
|
|
651315
|
-
version: "1.
|
|
651335
|
+
version: "1.37.0",
|
|
651316
651336
|
output_style: {
|
|
651317
651337
|
name: outputStyleName
|
|
651318
651338
|
},
|
|
@@ -651395,7 +651415,7 @@ function StatusLineInner({
|
|
|
651395
651415
|
const taskValues = Object.values(tasks2);
|
|
651396
651416
|
const taskRunningCount = taskValues.filter((task2) => task2.status === "running" || task2.status === "pending").length;
|
|
651397
651417
|
const defaultStatusLineText = buildDefaultStatusBar({
|
|
651398
|
-
version: "1.
|
|
651418
|
+
version: "1.37.0",
|
|
651399
651419
|
providerLabel: providerRuntime.providerLabel,
|
|
651400
651420
|
authMode: providerRuntime.authLabel,
|
|
651401
651421
|
model: providerRuntime.model ?? renderModelName(mainLoopModel),
|
|
@@ -662883,7 +662903,7 @@ async function submitTranscriptShare(messages, trigger2, appearanceId) {
|
|
|
662883
662903
|
} catch {}
|
|
662884
662904
|
const data = {
|
|
662885
662905
|
trigger: trigger2,
|
|
662886
|
-
version: "1.
|
|
662906
|
+
version: "1.37.0",
|
|
662887
662907
|
platform: process.platform,
|
|
662888
662908
|
transcript,
|
|
662889
662909
|
subagentTranscripts: Object.keys(subagentTranscripts).length > 0 ? subagentTranscripts : undefined,
|
|
@@ -674767,7 +674787,7 @@ function WelcomeV2() {
|
|
|
674767
674787
|
dimColor: true,
|
|
674768
674788
|
children: [
|
|
674769
674789
|
"v",
|
|
674770
|
-
"1.
|
|
674790
|
+
"1.37.0"
|
|
674771
674791
|
]
|
|
674772
674792
|
}, undefined, true, undefined, this)
|
|
674773
674793
|
]
|
|
@@ -676027,7 +676047,7 @@ function completeOnboarding() {
|
|
|
676027
676047
|
saveGlobalConfig((current) => ({
|
|
676028
676048
|
...current,
|
|
676029
676049
|
hasCompletedOnboarding: true,
|
|
676030
|
-
lastOnboardingVersion: "1.
|
|
676050
|
+
lastOnboardingVersion: "1.37.0"
|
|
676031
676051
|
}));
|
|
676032
676052
|
}
|
|
676033
676053
|
function showDialog(root2, renderer) {
|
|
@@ -681064,7 +681084,7 @@ function appendToLog(path24, message) {
|
|
|
681064
681084
|
cwd: getFsImplementation().cwd(),
|
|
681065
681085
|
userType: process.env.USER_TYPE,
|
|
681066
681086
|
sessionId: getSessionId(),
|
|
681067
|
-
version: "1.
|
|
681087
|
+
version: "1.37.0"
|
|
681068
681088
|
};
|
|
681069
681089
|
getLogWriter(path24).write(messageWithTimestamp);
|
|
681070
681090
|
}
|
|
@@ -685158,8 +685178,8 @@ async function getEnvLessBridgeConfig() {
|
|
|
685158
685178
|
}
|
|
685159
685179
|
async function checkEnvLessBridgeMinVersion() {
|
|
685160
685180
|
const cfg = await getEnvLessBridgeConfig();
|
|
685161
|
-
if (cfg.min_version && lt("1.
|
|
685162
|
-
return `Your version of UR (${"1.
|
|
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.
|
|
685163
685183
|
Version ${cfg.min_version} or higher is required. Run \`ur update\` to update.`;
|
|
685164
685184
|
}
|
|
685165
685185
|
return null;
|
|
@@ -685633,7 +685653,7 @@ async function initBridgeCore(params) {
|
|
|
685633
685653
|
const rawApi = createBridgeApiClient({
|
|
685634
685654
|
baseUrl,
|
|
685635
685655
|
getAccessToken,
|
|
685636
|
-
runnerVersion: "1.
|
|
685656
|
+
runnerVersion: "1.37.0",
|
|
685637
685657
|
onDebug: logForDebugging,
|
|
685638
685658
|
onAuth401,
|
|
685639
685659
|
getTrustedDeviceToken
|
|
@@ -691315,7 +691335,7 @@ async function startMCPServer(cwd3, debug2, verbose) {
|
|
|
691315
691335
|
setCwd(cwd3);
|
|
691316
691336
|
const server2 = new Server({
|
|
691317
691337
|
name: "ur/tengu",
|
|
691318
|
-
version: "1.
|
|
691338
|
+
version: "1.37.0"
|
|
691319
691339
|
}, {
|
|
691320
691340
|
capabilities: {
|
|
691321
691341
|
tools: {}
|
|
@@ -691860,13 +691880,14 @@ __export(exports_providers, {
|
|
|
691860
691880
|
providerAuthHandler: () => providerAuthHandler,
|
|
691861
691881
|
configSetHandler: () => configSetHandler
|
|
691862
691882
|
});
|
|
691883
|
+
import { writeSync as writeSync3 } from "fs";
|
|
691863
691884
|
function writeOutput(text) {
|
|
691864
|
-
|
|
691885
|
+
writeSync3(1, text.endsWith(`
|
|
691865
691886
|
`) ? text : `${text}
|
|
691866
691887
|
`);
|
|
691867
691888
|
}
|
|
691868
691889
|
function writeError(text) {
|
|
691869
|
-
|
|
691890
|
+
writeSync3(2, text.endsWith(`
|
|
691870
691891
|
`) ? text : `${text}
|
|
691871
691892
|
`);
|
|
691872
691893
|
}
|
|
@@ -693292,7 +693313,7 @@ async function update() {
|
|
|
693292
693313
|
logEvent("tengu_update_check", {});
|
|
693293
693314
|
const diagnostic = await getDoctorDiagnostic();
|
|
693294
693315
|
const result = await checkUpgradeStatus({
|
|
693295
|
-
currentVersion: "1.
|
|
693316
|
+
currentVersion: "1.37.0",
|
|
693296
693317
|
packageName: UR_AGENT_PACKAGE_NAME,
|
|
693297
693318
|
installationType: diagnostic.installationType,
|
|
693298
693319
|
latestVersion: () => getLatestNpmPackageVersion(UR_AGENT_PACKAGE_NAME)
|
|
@@ -694538,7 +694559,7 @@ ${customInstructions}` : customInstructions;
|
|
|
694538
694559
|
}
|
|
694539
694560
|
}
|
|
694540
694561
|
logForDiagnosticsNoPII("info", "started", {
|
|
694541
|
-
version: "1.
|
|
694562
|
+
version: "1.37.0",
|
|
694542
694563
|
is_native_binary: isInBundledMode()
|
|
694543
694564
|
});
|
|
694544
694565
|
registerCleanup(async () => {
|
|
@@ -695324,7 +695345,7 @@ Usage: ur --remote "your task description"`, () => gracefulShutdown(1));
|
|
|
695324
695345
|
pendingHookMessages
|
|
695325
695346
|
}, renderAndRun);
|
|
695326
695347
|
}
|
|
695327
|
-
}).version("1.
|
|
695348
|
+
}).version("1.37.0 (UR-AGENT)", "-v, --version", "Output the version number");
|
|
695328
695349
|
program2.option("-w, --worktree [name]", "Create a new git worktree for this session (optionally specify a name)");
|
|
695329
695350
|
program2.option("--tmux", "Create a tmux session for the worktree (requires --worktree). Uses iTerm2 native panes when available; use --tmux=classic for traditional tmux.");
|
|
695330
695351
|
if (canUserConfigureAdvisor()) {
|
|
@@ -696227,7 +696248,7 @@ if (false) {}
|
|
|
696227
696248
|
async function main2() {
|
|
696228
696249
|
const args = process.argv.slice(2);
|
|
696229
696250
|
if (args.length === 1 && (args[0] === "--version" || args[0] === "-v" || args[0] === "-V")) {
|
|
696230
|
-
console.log(`${"1.
|
|
696251
|
+
console.log(`${"1.37.0"} (UR-AGENT)`);
|
|
696231
696252
|
return;
|
|
696232
696253
|
}
|
|
696233
696254
|
if (args[0] === "a2a" && args[1] === "serve" && !args.includes("--help") && !args.includes("-h")) {
|