ur-agent 1.11.1 → 1.11.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/dist/cli.js +107 -82
- package/docs/VALIDATION.md +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.11.2
|
|
4
|
+
|
|
5
|
+
### Fixed
|
|
6
|
+
- **Clarification dialogs.** `AskUserQuestion` is now loaded without a
|
|
7
|
+
`ToolSearch` round trip and accepts common question text aliases such as
|
|
8
|
+
`prompt` and `text`, preventing malformed clarification attempts from
|
|
9
|
+
surfacing as validation errors.
|
|
10
|
+
|
|
3
11
|
## 1.11.1
|
|
4
12
|
|
|
5
13
|
### Changed
|
package/dist/cli.js
CHANGED
|
@@ -55104,6 +55104,14 @@ function headerFromQuestion(question, index2) {
|
|
|
55104
55104
|
const word = question.replace(/[^A-Za-z0-9]+/g, " ").split(/\s+/).find((part) => part && !stopWords.has(part.toLowerCase())) ?? `Question ${index2 + 1}`;
|
|
55105
55105
|
return word.slice(0, 12);
|
|
55106
55106
|
}
|
|
55107
|
+
function stringField(input, names) {
|
|
55108
|
+
for (const name of names) {
|
|
55109
|
+
const value = input[name];
|
|
55110
|
+
if (typeof value === "string" && value.trim())
|
|
55111
|
+
return value.trim();
|
|
55112
|
+
}
|
|
55113
|
+
return "";
|
|
55114
|
+
}
|
|
55107
55115
|
function normalizeQuestionOption(value) {
|
|
55108
55116
|
const option = objectValue(value);
|
|
55109
55117
|
if (!option)
|
|
@@ -55120,9 +55128,18 @@ function normalizeQuestionOption(value) {
|
|
|
55120
55128
|
}
|
|
55121
55129
|
function normalizeQuestion(value, index2) {
|
|
55122
55130
|
const question = objectValue(value);
|
|
55123
|
-
if (!question
|
|
55131
|
+
if (!question)
|
|
55124
55132
|
return null;
|
|
55125
|
-
const questionText = question
|
|
55133
|
+
const questionText = stringField(question, [
|
|
55134
|
+
"question",
|
|
55135
|
+
"questionText",
|
|
55136
|
+
"question_text",
|
|
55137
|
+
"prompt",
|
|
55138
|
+
"text",
|
|
55139
|
+
"title",
|
|
55140
|
+
"message",
|
|
55141
|
+
"body"
|
|
55142
|
+
]);
|
|
55126
55143
|
if (!questionText || !Array.isArray(question.options))
|
|
55127
55144
|
return null;
|
|
55128
55145
|
const options = question.options.map(normalizeQuestionOption).filter((option) => option !== null);
|
|
@@ -69520,7 +69537,7 @@ var init_auth = __esm(() => {
|
|
|
69520
69537
|
|
|
69521
69538
|
// src/utils/userAgent.ts
|
|
69522
69539
|
function getURCodeUserAgent() {
|
|
69523
|
-
return `ur/${"1.11.
|
|
69540
|
+
return `ur/${"1.11.2"}`;
|
|
69524
69541
|
}
|
|
69525
69542
|
|
|
69526
69543
|
// src/utils/workloadContext.ts
|
|
@@ -69542,7 +69559,7 @@ function getUserAgent() {
|
|
|
69542
69559
|
const clientApp = process.env.UR_AGENT_SDK_CLIENT_APP ? `, client-app/${process.env.UR_AGENT_SDK_CLIENT_APP}` : "";
|
|
69543
69560
|
const workload = getWorkload();
|
|
69544
69561
|
const workloadSuffix = workload ? `, workload/${workload}` : "";
|
|
69545
|
-
return `ur-cli/${"1.11.
|
|
69562
|
+
return `ur-cli/${"1.11.2"} (${process.env.USER_TYPE}, ${process.env.UR_CODE_ENTRYPOINT ?? "cli"}${agentSdkVersion}${clientApp}${workloadSuffix})`;
|
|
69546
69563
|
}
|
|
69547
69564
|
function getMCPUserAgent() {
|
|
69548
69565
|
const parts = [];
|
|
@@ -69556,7 +69573,7 @@ function getMCPUserAgent() {
|
|
|
69556
69573
|
parts.push(`client-app/${process.env.UR_AGENT_SDK_CLIENT_APP}`);
|
|
69557
69574
|
}
|
|
69558
69575
|
const suffix = parts.length > 0 ? ` (${parts.join(", ")})` : "";
|
|
69559
|
-
return `ur/${"1.11.
|
|
69576
|
+
return `ur/${"1.11.2"}${suffix}`;
|
|
69560
69577
|
}
|
|
69561
69578
|
function getWebFetchUserAgent() {
|
|
69562
69579
|
return `UR-User (${getURCodeUserAgent()})`;
|
|
@@ -69694,7 +69711,7 @@ var init_user = __esm(() => {
|
|
|
69694
69711
|
deviceId,
|
|
69695
69712
|
sessionId: getSessionId(),
|
|
69696
69713
|
email: getEmail(),
|
|
69697
|
-
appVersion: "1.11.
|
|
69714
|
+
appVersion: "1.11.2",
|
|
69698
69715
|
platform: getHostPlatformForAnalytics(),
|
|
69699
69716
|
organizationUuid,
|
|
69700
69717
|
accountUuid,
|
|
@@ -75471,7 +75488,7 @@ var init_metadata = __esm(() => {
|
|
|
75471
75488
|
COMPOUND_OPERATOR_REGEX = /\s*(?:&&|\|\||[;|])\s*/;
|
|
75472
75489
|
WHITESPACE_REGEX = /\s+/;
|
|
75473
75490
|
getVersionBase = memoize_default(() => {
|
|
75474
|
-
const match = "1.11.
|
|
75491
|
+
const match = "1.11.2".match(/^\d+\.\d+\.\d+(?:-[a-z]+)?/);
|
|
75475
75492
|
return match ? match[0] : undefined;
|
|
75476
75493
|
});
|
|
75477
75494
|
buildEnvContext = memoize_default(async () => {
|
|
@@ -75511,7 +75528,7 @@ var init_metadata = __esm(() => {
|
|
|
75511
75528
|
isGithubAction: isEnvTruthy(process.env.GITHUB_ACTIONS),
|
|
75512
75529
|
isURCodeAction: isEnvTruthy(process.env.UR_CODE_ACTION),
|
|
75513
75530
|
isURAiAuth: isURAISubscriber2(),
|
|
75514
|
-
version: "1.11.
|
|
75531
|
+
version: "1.11.2",
|
|
75515
75532
|
versionBase: getVersionBase(),
|
|
75516
75533
|
buildTime: "",
|
|
75517
75534
|
deploymentEnvironment: env3.detectDeploymentEnvironment(),
|
|
@@ -76181,7 +76198,7 @@ function initialize1PEventLogging() {
|
|
|
76181
76198
|
const platform2 = getPlatform();
|
|
76182
76199
|
const attributes = {
|
|
76183
76200
|
[import_semantic_conventions4.ATTR_SERVICE_NAME]: "ur",
|
|
76184
|
-
[import_semantic_conventions4.ATTR_SERVICE_VERSION]: "1.11.
|
|
76201
|
+
[import_semantic_conventions4.ATTR_SERVICE_VERSION]: "1.11.2"
|
|
76185
76202
|
};
|
|
76186
76203
|
if (platform2 === "wsl") {
|
|
76187
76204
|
const wslVersion = getWslVersion();
|
|
@@ -76208,7 +76225,7 @@ function initialize1PEventLogging() {
|
|
|
76208
76225
|
})
|
|
76209
76226
|
]
|
|
76210
76227
|
});
|
|
76211
|
-
firstPartyEventLogger = firstPartyEventLoggerProvider.getLogger("com.urhq.ur.events", "1.11.
|
|
76228
|
+
firstPartyEventLogger = firstPartyEventLoggerProvider.getLogger("com.urhq.ur.events", "1.11.2");
|
|
76212
76229
|
}
|
|
76213
76230
|
async function reinitialize1PEventLoggingIfConfigChanged() {
|
|
76214
76231
|
if (!is1PEventLoggingEnabled() || !firstPartyEventLoggerProvider) {
|
|
@@ -78072,7 +78089,7 @@ function getAttributionHeader(fingerprint) {
|
|
|
78072
78089
|
if (!isAttributionHeaderEnabled()) {
|
|
78073
78090
|
return "";
|
|
78074
78091
|
}
|
|
78075
|
-
const version2 = `${"1.11.
|
|
78092
|
+
const version2 = `${"1.11.2"}.${fingerprint}`;
|
|
78076
78093
|
const entrypoint = process.env.UR_CODE_ENTRYPOINT ?? "unknown";
|
|
78077
78094
|
const cch = "";
|
|
78078
78095
|
const workload = getWorkload();
|
|
@@ -184542,7 +184559,7 @@ function getTelemetryAttributes() {
|
|
|
184542
184559
|
attributes["session.id"] = sessionId;
|
|
184543
184560
|
}
|
|
184544
184561
|
if (shouldIncludeAttribute("OTEL_METRICS_INCLUDE_VERSION")) {
|
|
184545
|
-
attributes["app.version"] = "1.11.
|
|
184562
|
+
attributes["app.version"] = "1.11.2";
|
|
184546
184563
|
}
|
|
184547
184564
|
const oauthAccount = getOauthAccountInfo();
|
|
184548
184565
|
if (oauthAccount) {
|
|
@@ -220140,7 +220157,7 @@ function getInstallationEnv() {
|
|
|
220140
220157
|
return;
|
|
220141
220158
|
}
|
|
220142
220159
|
function getURCodeVersion() {
|
|
220143
|
-
return "1.11.
|
|
220160
|
+
return "1.11.2";
|
|
220144
220161
|
}
|
|
220145
220162
|
async function getInstalledVSCodeExtensionVersion(command) {
|
|
220146
220163
|
const { stdout } = await execFileNoThrow(command, ["--list-extensions", "--show-versions"], {
|
|
@@ -222868,7 +222885,7 @@ async function setupSdkMcpClients(sdkMcpConfigs, sendMcpMessage) {
|
|
|
222868
222885
|
const client2 = new Client({
|
|
222869
222886
|
name: "ur",
|
|
222870
222887
|
title: "UR",
|
|
222871
|
-
version: "1.11.
|
|
222888
|
+
version: "1.11.2",
|
|
222872
222889
|
description: "URHQ's agentic coding tool",
|
|
222873
222890
|
websiteUrl: PRODUCT_URL
|
|
222874
222891
|
}, {
|
|
@@ -223222,7 +223239,7 @@ var init_client5 = __esm(() => {
|
|
|
223222
223239
|
const client2 = new Client({
|
|
223223
223240
|
name: "ur",
|
|
223224
223241
|
title: "UR",
|
|
223225
|
-
version: "1.11.
|
|
223242
|
+
version: "1.11.2",
|
|
223226
223243
|
description: "URHQ's agentic coding tool",
|
|
223227
223244
|
websiteUrl: PRODUCT_URL
|
|
223228
223245
|
}, {
|
|
@@ -232941,9 +232958,9 @@ async function assertMinVersion() {
|
|
|
232941
232958
|
if (false) {}
|
|
232942
232959
|
try {
|
|
232943
232960
|
const versionConfig = await getDynamicConfig_BLOCKS_ON_INIT("tengu_version_config", { minVersion: "0.0.0" });
|
|
232944
|
-
if (versionConfig.minVersion && lt("1.11.
|
|
232961
|
+
if (versionConfig.minVersion && lt("1.11.2", versionConfig.minVersion)) {
|
|
232945
232962
|
console.error(`
|
|
232946
|
-
It looks like your version of UR (${"1.11.
|
|
232963
|
+
It looks like your version of UR (${"1.11.2"}) needs an update.
|
|
232947
232964
|
A newer version (${versionConfig.minVersion} or higher) is required to continue.
|
|
232948
232965
|
|
|
232949
232966
|
To update, please run:
|
|
@@ -233159,7 +233176,7 @@ async function installGlobalPackage(specificVersion) {
|
|
|
233159
233176
|
logError2(new AutoUpdaterError("Another process is currently installing an update"));
|
|
233160
233177
|
logEvent("tengu_auto_updater_lock_contention", {
|
|
233161
233178
|
pid: process.pid,
|
|
233162
|
-
currentVersion: "1.11.
|
|
233179
|
+
currentVersion: "1.11.2"
|
|
233163
233180
|
});
|
|
233164
233181
|
return "in_progress";
|
|
233165
233182
|
}
|
|
@@ -233168,7 +233185,7 @@ async function installGlobalPackage(specificVersion) {
|
|
|
233168
233185
|
if (!env3.isRunningWithBun() && env3.isNpmFromWindowsPath()) {
|
|
233169
233186
|
logError2(new Error("Windows NPM detected in WSL environment"));
|
|
233170
233187
|
logEvent("tengu_auto_updater_windows_npm_in_wsl", {
|
|
233171
|
-
currentVersion: "1.11.
|
|
233188
|
+
currentVersion: "1.11.2"
|
|
233172
233189
|
});
|
|
233173
233190
|
console.error(`
|
|
233174
233191
|
Error: Windows NPM detected in WSL
|
|
@@ -233703,7 +233720,7 @@ function detectLinuxGlobPatternWarnings() {
|
|
|
233703
233720
|
}
|
|
233704
233721
|
async function getDoctorDiagnostic() {
|
|
233705
233722
|
const installationType = await getCurrentInstallationType();
|
|
233706
|
-
const version2 = typeof MACRO !== "undefined" ? "1.11.
|
|
233723
|
+
const version2 = typeof MACRO !== "undefined" ? "1.11.2" : "unknown";
|
|
233707
233724
|
const installationPath = await getInstallationPath();
|
|
233708
233725
|
const invokedBinary = getInvokedBinary();
|
|
233709
233726
|
const multipleInstallations = await detectMultipleInstallations();
|
|
@@ -234638,8 +234655,8 @@ async function updateLatest(channelOrVersion, forceReinstall = false) {
|
|
|
234638
234655
|
const maxVersion = await getMaxVersion();
|
|
234639
234656
|
if (maxVersion && gt(version2, maxVersion)) {
|
|
234640
234657
|
logForDebugging(`Native installer: maxVersion ${maxVersion} is set, capping update from ${version2} to ${maxVersion}`);
|
|
234641
|
-
if (gte("1.11.
|
|
234642
|
-
logForDebugging(`Native installer: current version ${"1.11.
|
|
234658
|
+
if (gte("1.11.2", maxVersion)) {
|
|
234659
|
+
logForDebugging(`Native installer: current version ${"1.11.2"} is already at or above maxVersion ${maxVersion}, skipping update`);
|
|
234643
234660
|
logEvent("tengu_native_update_skipped_max_version", {
|
|
234644
234661
|
latency_ms: Date.now() - startTime,
|
|
234645
234662
|
max_version: maxVersion,
|
|
@@ -234650,7 +234667,7 @@ async function updateLatest(channelOrVersion, forceReinstall = false) {
|
|
|
234650
234667
|
version2 = maxVersion;
|
|
234651
234668
|
}
|
|
234652
234669
|
}
|
|
234653
|
-
if (!forceReinstall && version2 === "1.11.
|
|
234670
|
+
if (!forceReinstall && version2 === "1.11.2" && await versionIsAvailable(version2) && await isPossibleURBinary(executablePath)) {
|
|
234654
234671
|
logForDebugging(`Found ${version2} at ${executablePath}, skipping install`);
|
|
234655
234672
|
logEvent("tengu_native_update_complete", {
|
|
234656
234673
|
latency_ms: Date.now() - startTime,
|
|
@@ -287128,6 +287145,14 @@ function headerFromQuestion2(question, index2) {
|
|
|
287128
287145
|
const word = question.replace(/[^A-Za-z0-9]+/g, " ").split(/\s+/).find((part) => part && !stopWords.has(part.toLowerCase())) ?? `Question ${index2 + 1}`;
|
|
287129
287146
|
return word.slice(0, ASK_USER_QUESTION_TOOL_CHIP_WIDTH);
|
|
287130
287147
|
}
|
|
287148
|
+
function stringField2(input, names) {
|
|
287149
|
+
for (const name of names) {
|
|
287150
|
+
const value = input[name];
|
|
287151
|
+
if (typeof value === "string" && value.trim())
|
|
287152
|
+
return value.trim();
|
|
287153
|
+
}
|
|
287154
|
+
return "";
|
|
287155
|
+
}
|
|
287131
287156
|
function normalizeQuestionOptionInput(value) {
|
|
287132
287157
|
if (typeof value === "string") {
|
|
287133
287158
|
const label2 = value.trim();
|
|
@@ -287153,9 +287178,9 @@ function normalizeQuestionOptionInput(value) {
|
|
|
287153
287178
|
}
|
|
287154
287179
|
function normalizeQuestionInput(value, index2) {
|
|
287155
287180
|
const question = objectValue3(value);
|
|
287156
|
-
if (!question ||
|
|
287181
|
+
if (!question || !Array.isArray(question.options))
|
|
287157
287182
|
return value;
|
|
287158
|
-
const questionText = question
|
|
287183
|
+
const questionText = stringField2(question, ["question", "questionText", "question_text", "prompt", "text", "title", "message", "body"]);
|
|
287159
287184
|
if (!questionText)
|
|
287160
287185
|
return value;
|
|
287161
287186
|
return {
|
|
@@ -287338,7 +287363,7 @@ var init_AskUserQuestionTool = __esm(() => {
|
|
|
287338
287363
|
name: ASK_USER_QUESTION_TOOL_NAME,
|
|
287339
287364
|
searchHint: "prompt the user with a multiple-choice question",
|
|
287340
287365
|
maxResultSizeChars: 1e5,
|
|
287341
|
-
shouldDefer:
|
|
287366
|
+
shouldDefer: false,
|
|
287342
287367
|
async description() {
|
|
287343
287368
|
return DESCRIPTION5;
|
|
287344
287369
|
},
|
|
@@ -328808,7 +328833,7 @@ function Feedback({
|
|
|
328808
328833
|
platform: env3.platform,
|
|
328809
328834
|
gitRepo: envInfo.isGit,
|
|
328810
328835
|
terminal: env3.terminal,
|
|
328811
|
-
version: "1.11.
|
|
328836
|
+
version: "1.11.2",
|
|
328812
328837
|
transcript: normalizeMessagesForAPI(messages),
|
|
328813
328838
|
errors: sanitizedErrors,
|
|
328814
328839
|
lastApiRequest: getLastAPIRequest(),
|
|
@@ -329000,7 +329025,7 @@ function Feedback({
|
|
|
329000
329025
|
", ",
|
|
329001
329026
|
env3.terminal,
|
|
329002
329027
|
", v",
|
|
329003
|
-
"1.11.
|
|
329028
|
+
"1.11.2"
|
|
329004
329029
|
]
|
|
329005
329030
|
}, undefined, true, undefined, this)
|
|
329006
329031
|
]
|
|
@@ -329106,7 +329131,7 @@ ${sanitizedDescription}
|
|
|
329106
329131
|
` + `**Environment Info**
|
|
329107
329132
|
` + `- Platform: ${env3.platform}
|
|
329108
329133
|
` + `- Terminal: ${env3.terminal}
|
|
329109
|
-
` + `- Version: ${"1.11.
|
|
329134
|
+
` + `- Version: ${"1.11.2"}
|
|
329110
329135
|
` + `- Feedback ID: ${feedbackId}
|
|
329111
329136
|
` + `
|
|
329112
329137
|
**Errors**
|
|
@@ -332216,7 +332241,7 @@ function buildPrimarySection() {
|
|
|
332216
332241
|
}, undefined, false, undefined, this);
|
|
332217
332242
|
return [{
|
|
332218
332243
|
label: "Version",
|
|
332219
|
-
value: "1.11.
|
|
332244
|
+
value: "1.11.2"
|
|
332220
332245
|
}, {
|
|
332221
332246
|
label: "Session name",
|
|
332222
332247
|
value: nameValue
|
|
@@ -335494,7 +335519,7 @@ function Config({
|
|
|
335494
335519
|
}
|
|
335495
335520
|
}, undefined, false, undefined, this)
|
|
335496
335521
|
}, undefined, false, undefined, this) : showSubmenu === "ChannelDowngrade" ? /* @__PURE__ */ jsx_dev_runtime177.jsxDEV(ChannelDowngradeDialog, {
|
|
335497
|
-
currentVersion: "1.11.
|
|
335522
|
+
currentVersion: "1.11.2",
|
|
335498
335523
|
onChoice: (choice) => {
|
|
335499
335524
|
setShowSubmenu(null);
|
|
335500
335525
|
setTabsHidden(false);
|
|
@@ -335506,7 +335531,7 @@ function Config({
|
|
|
335506
335531
|
autoUpdatesChannel: "stable"
|
|
335507
335532
|
};
|
|
335508
335533
|
if (choice === "stay") {
|
|
335509
|
-
newSettings.minimumVersion = "1.11.
|
|
335534
|
+
newSettings.minimumVersion = "1.11.2";
|
|
335510
335535
|
}
|
|
335511
335536
|
updateSettingsForSource("userSettings", newSettings);
|
|
335512
335537
|
setSettingsData((prev_27) => ({
|
|
@@ -343576,7 +343601,7 @@ function HelpV2(t0) {
|
|
|
343576
343601
|
let t6;
|
|
343577
343602
|
if ($3[31] !== tabs) {
|
|
343578
343603
|
t6 = /* @__PURE__ */ jsx_dev_runtime204.jsxDEV(Tabs, {
|
|
343579
|
-
title: `UR v${"1.11.
|
|
343604
|
+
title: `UR v${"1.11.2"}`,
|
|
343580
343605
|
color: "professionalBlue",
|
|
343581
343606
|
defaultTab: "general",
|
|
343582
343607
|
children: tabs
|
|
@@ -363179,7 +363204,7 @@ function getAllReleaseNotes(changelogContent = getStoredChangelogFromMemory()) {
|
|
|
363179
363204
|
return [];
|
|
363180
363205
|
}
|
|
363181
363206
|
}
|
|
363182
|
-
async function checkForReleaseNotes(lastSeenVersion, currentVersion = "1.11.
|
|
363207
|
+
async function checkForReleaseNotes(lastSeenVersion, currentVersion = "1.11.2") {
|
|
363183
363208
|
if (process.env.USER_TYPE === "ant") {
|
|
363184
363209
|
const changelog = "";
|
|
363185
363210
|
if (changelog) {
|
|
@@ -363206,7 +363231,7 @@ async function checkForReleaseNotes(lastSeenVersion, currentVersion = "1.11.1")
|
|
|
363206
363231
|
releaseNotes
|
|
363207
363232
|
};
|
|
363208
363233
|
}
|
|
363209
|
-
function checkForReleaseNotesSync(lastSeenVersion, currentVersion = "1.11.
|
|
363234
|
+
function checkForReleaseNotesSync(lastSeenVersion, currentVersion = "1.11.2") {
|
|
363210
363235
|
if (process.env.USER_TYPE === "ant") {
|
|
363211
363236
|
const changelog = "";
|
|
363212
363237
|
if (changelog) {
|
|
@@ -364376,7 +364401,7 @@ function getRecentActivitySync() {
|
|
|
364376
364401
|
return cachedActivity;
|
|
364377
364402
|
}
|
|
364378
364403
|
function getLogoDisplayData() {
|
|
364379
|
-
const version2 = process.env.DEMO_VERSION ?? "1.11.
|
|
364404
|
+
const version2 = process.env.DEMO_VERSION ?? "1.11.2";
|
|
364380
364405
|
const serverUrl = getDirectConnectServerUrl();
|
|
364381
364406
|
const displayPath = process.env.DEMO_VERSION ? "/code/ur" : getDisplayPath(getCwd());
|
|
364382
364407
|
const cwd2 = serverUrl ? `${displayPath} in ${serverUrl.replace(/^https?:\/\//, "")}` : displayPath;
|
|
@@ -365165,7 +365190,7 @@ function LogoV2() {
|
|
|
365165
365190
|
if ($3[2] === Symbol.for("react.memo_cache_sentinel")) {
|
|
365166
365191
|
t2 = () => {
|
|
365167
365192
|
const currentConfig = getGlobalConfig();
|
|
365168
|
-
if (currentConfig.lastReleaseNotesSeen === "1.11.
|
|
365193
|
+
if (currentConfig.lastReleaseNotesSeen === "1.11.2") {
|
|
365169
365194
|
return;
|
|
365170
365195
|
}
|
|
365171
365196
|
saveGlobalConfig(_temp326);
|
|
@@ -365850,12 +365875,12 @@ function LogoV2() {
|
|
|
365850
365875
|
return t41;
|
|
365851
365876
|
}
|
|
365852
365877
|
function _temp326(current) {
|
|
365853
|
-
if (current.lastReleaseNotesSeen === "1.11.
|
|
365878
|
+
if (current.lastReleaseNotesSeen === "1.11.2") {
|
|
365854
365879
|
return current;
|
|
365855
365880
|
}
|
|
365856
365881
|
return {
|
|
365857
365882
|
...current,
|
|
365858
|
-
lastReleaseNotesSeen: "1.11.
|
|
365883
|
+
lastReleaseNotesSeen: "1.11.2"
|
|
365859
365884
|
};
|
|
365860
365885
|
}
|
|
365861
365886
|
function _temp243(s_0) {
|
|
@@ -395672,7 +395697,7 @@ async function captureMemoryDiagnostics(trigger, dumpNumber = 0) {
|
|
|
395672
395697
|
smapsRollup,
|
|
395673
395698
|
platform: process.platform,
|
|
395674
395699
|
nodeVersion: process.version,
|
|
395675
|
-
ccVersion: "1.11.
|
|
395700
|
+
ccVersion: "1.11.2"
|
|
395676
395701
|
};
|
|
395677
395702
|
}
|
|
395678
395703
|
async function performHeapDump(trigger = "manual", dumpNumber = 0) {
|
|
@@ -396258,7 +396283,7 @@ var init_bridge_kick = __esm(() => {
|
|
|
396258
396283
|
var call93 = async () => {
|
|
396259
396284
|
return {
|
|
396260
396285
|
type: "text",
|
|
396261
|
-
value: "1.11.
|
|
396286
|
+
value: "1.11.2"
|
|
396262
396287
|
};
|
|
396263
396288
|
}, version2, version_default;
|
|
396264
396289
|
var init_version = __esm(() => {
|
|
@@ -405298,7 +405323,7 @@ function generateHtmlReport(data, insights) {
|
|
|
405298
405323
|
</html>`;
|
|
405299
405324
|
}
|
|
405300
405325
|
function buildExportData(data, insights, facets, remoteStats) {
|
|
405301
|
-
const version3 = typeof MACRO !== "undefined" ? "1.11.
|
|
405326
|
+
const version3 = typeof MACRO !== "undefined" ? "1.11.2" : "unknown";
|
|
405302
405327
|
const remote_hosts_collected = remoteStats?.hosts.filter((h2) => h2.sessionCount > 0).map((h2) => h2.name);
|
|
405303
405328
|
const facets_summary = {
|
|
405304
405329
|
total: facets.size,
|
|
@@ -409485,7 +409510,7 @@ var init_sessionStorage = __esm(() => {
|
|
|
409485
409510
|
init_settings2();
|
|
409486
409511
|
init_slowOperations();
|
|
409487
409512
|
init_uuid();
|
|
409488
|
-
VERSION5 = typeof MACRO !== "undefined" ? "1.11.
|
|
409513
|
+
VERSION5 = typeof MACRO !== "undefined" ? "1.11.2" : "unknown";
|
|
409489
409514
|
MAX_TOMBSTONE_REWRITE_BYTES = 50 * 1024 * 1024;
|
|
409490
409515
|
SKIP_FIRST_PROMPT_PATTERN = /^(?:\s*<[a-z][\w-]*[\s>]|\[Request interrupted by user[^\]]*\])/;
|
|
409491
409516
|
EPHEMERAL_PROGRESS_TYPES = new Set([
|
|
@@ -410690,7 +410715,7 @@ var init_filesystem = __esm(() => {
|
|
|
410690
410715
|
});
|
|
410691
410716
|
getBundledSkillsRoot = memoize_default(function getBundledSkillsRoot2() {
|
|
410692
410717
|
const nonce = randomBytes18(16).toString("hex");
|
|
410693
|
-
return join150(getURTempDir(), "bundled-skills", "1.11.
|
|
410718
|
+
return join150(getURTempDir(), "bundled-skills", "1.11.2", nonce);
|
|
410694
410719
|
});
|
|
410695
410720
|
getResolvedWorkingDirPaths = memoize_default(getPathsForPermissionCheck);
|
|
410696
410721
|
});
|
|
@@ -416721,7 +416746,7 @@ function computeFingerprint(messageText, version3) {
|
|
|
416721
416746
|
}
|
|
416722
416747
|
function computeFingerprintFromMessages(messages) {
|
|
416723
416748
|
const firstMessageText = extractFirstMessageText(messages);
|
|
416724
|
-
return computeFingerprint(firstMessageText, "1.11.
|
|
416749
|
+
return computeFingerprint(firstMessageText, "1.11.2");
|
|
416725
416750
|
}
|
|
416726
416751
|
var FINGERPRINT_SALT = "59cf53e54c78";
|
|
416727
416752
|
var init_fingerprint = () => {};
|
|
@@ -418587,7 +418612,7 @@ async function sideQuery(opts) {
|
|
|
418587
418612
|
betas.push(STRUCTURED_OUTPUTS_BETA_HEADER);
|
|
418588
418613
|
}
|
|
418589
418614
|
const messageText = extractFirstUserMessageText(messages);
|
|
418590
|
-
const fingerprint = computeFingerprint(messageText, "1.11.
|
|
418615
|
+
const fingerprint = computeFingerprint(messageText, "1.11.2");
|
|
418591
418616
|
const attributionHeader = getAttributionHeader(fingerprint);
|
|
418592
418617
|
const systemBlocks = [
|
|
418593
418618
|
attributionHeader ? { type: "text", text: attributionHeader } : null,
|
|
@@ -423324,7 +423349,7 @@ function buildSystemInitMessage(inputs) {
|
|
|
423324
423349
|
slash_commands: inputs.commands.filter((c4) => c4.userInvocable !== false).map((c4) => c4.name),
|
|
423325
423350
|
apiKeySource: getURHQApiKeyWithSource().source,
|
|
423326
423351
|
betas: getSdkBetas(),
|
|
423327
|
-
ur_version: "1.11.
|
|
423352
|
+
ur_version: "1.11.2",
|
|
423328
423353
|
output_style: outputStyle2,
|
|
423329
423354
|
agents: inputs.agents.map((agent) => agent.agentType),
|
|
423330
423355
|
skills: inputs.skills.filter((s) => s.userInvocable !== false).map((skill) => skill.name),
|
|
@@ -437952,7 +437977,7 @@ var init_useVoiceEnabled = __esm(() => {
|
|
|
437952
437977
|
function getSemverPart(version3) {
|
|
437953
437978
|
return `${import_semver13.major(version3, { loose: true })}.${import_semver13.minor(version3, { loose: true })}.${import_semver13.patch(version3, { loose: true })}`;
|
|
437954
437979
|
}
|
|
437955
|
-
function useUpdateNotification(updatedVersion, initialVersion = "1.11.
|
|
437980
|
+
function useUpdateNotification(updatedVersion, initialVersion = "1.11.2") {
|
|
437956
437981
|
const [lastNotifiedSemver, setLastNotifiedSemver] = import_react224.useState(() => getSemverPart(initialVersion));
|
|
437957
437982
|
if (!updatedVersion) {
|
|
437958
437983
|
return null;
|
|
@@ -437992,7 +438017,7 @@ function AutoUpdater({
|
|
|
437992
438017
|
return;
|
|
437993
438018
|
}
|
|
437994
438019
|
if (false) {}
|
|
437995
|
-
const currentVersion = "1.11.
|
|
438020
|
+
const currentVersion = "1.11.2";
|
|
437996
438021
|
const channel = getInitialSettings()?.autoUpdatesChannel ?? "latest";
|
|
437997
438022
|
let latestVersion = await getLatestVersion(channel);
|
|
437998
438023
|
const isDisabled = isAutoUpdaterDisabled();
|
|
@@ -438205,12 +438230,12 @@ function NativeAutoUpdater({
|
|
|
438205
438230
|
logEvent("tengu_native_auto_updater_start", {});
|
|
438206
438231
|
try {
|
|
438207
438232
|
const maxVersion = await getMaxVersion();
|
|
438208
|
-
if (maxVersion && gt("1.11.
|
|
438233
|
+
if (maxVersion && gt("1.11.2", maxVersion)) {
|
|
438209
438234
|
const msg = await getMaxVersionMessage();
|
|
438210
438235
|
setMaxVersionIssue(msg ?? "affects your version");
|
|
438211
438236
|
}
|
|
438212
438237
|
const result = await installLatest(channel);
|
|
438213
|
-
const currentVersion = "1.11.
|
|
438238
|
+
const currentVersion = "1.11.2";
|
|
438214
438239
|
const latencyMs = Date.now() - startTime;
|
|
438215
438240
|
if (result.lockFailed) {
|
|
438216
438241
|
logEvent("tengu_native_auto_updater_lock_contention", {
|
|
@@ -438347,17 +438372,17 @@ function PackageManagerAutoUpdater(t0) {
|
|
|
438347
438372
|
const maxVersion = await getMaxVersion();
|
|
438348
438373
|
if (maxVersion && latest && gt(latest, maxVersion)) {
|
|
438349
438374
|
logForDebugging(`PackageManagerAutoUpdater: maxVersion ${maxVersion} is set, capping update from ${latest} to ${maxVersion}`);
|
|
438350
|
-
if (gte("1.11.
|
|
438351
|
-
logForDebugging(`PackageManagerAutoUpdater: current version ${"1.11.
|
|
438375
|
+
if (gte("1.11.2", maxVersion)) {
|
|
438376
|
+
logForDebugging(`PackageManagerAutoUpdater: current version ${"1.11.2"} is already at or above maxVersion ${maxVersion}, skipping update`);
|
|
438352
438377
|
setUpdateAvailable(false);
|
|
438353
438378
|
return;
|
|
438354
438379
|
}
|
|
438355
438380
|
latest = maxVersion;
|
|
438356
438381
|
}
|
|
438357
|
-
const hasUpdate = latest && !gte("1.11.
|
|
438382
|
+
const hasUpdate = latest && !gte("1.11.2", latest) && !shouldSkipVersion(latest);
|
|
438358
438383
|
setUpdateAvailable(!!hasUpdate);
|
|
438359
438384
|
if (hasUpdate) {
|
|
438360
|
-
logForDebugging(`PackageManagerAutoUpdater: Update available ${"1.11.
|
|
438385
|
+
logForDebugging(`PackageManagerAutoUpdater: Update available ${"1.11.2"} -> ${latest}`);
|
|
438361
438386
|
}
|
|
438362
438387
|
};
|
|
438363
438388
|
$3[0] = t1;
|
|
@@ -438391,7 +438416,7 @@ function PackageManagerAutoUpdater(t0) {
|
|
|
438391
438416
|
wrap: "truncate",
|
|
438392
438417
|
children: [
|
|
438393
438418
|
"currentVersion: ",
|
|
438394
|
-
"1.11.
|
|
438419
|
+
"1.11.2"
|
|
438395
438420
|
]
|
|
438396
438421
|
}, undefined, true, undefined, this);
|
|
438397
438422
|
$3[3] = verbose;
|
|
@@ -450753,7 +450778,7 @@ function buildStatusLineCommandInput(permissionMode, exceeds200kTokens, settings
|
|
|
450753
450778
|
project_dir: getOriginalCwd(),
|
|
450754
450779
|
added_dirs: addedDirs
|
|
450755
450780
|
},
|
|
450756
|
-
version: "1.11.
|
|
450781
|
+
version: "1.11.2",
|
|
450757
450782
|
output_style: {
|
|
450758
450783
|
name: outputStyleName
|
|
450759
450784
|
},
|
|
@@ -462245,7 +462270,7 @@ async function submitTranscriptShare(messages, trigger, appearanceId) {
|
|
|
462245
462270
|
} catch {}
|
|
462246
462271
|
const data = {
|
|
462247
462272
|
trigger,
|
|
462248
|
-
version: "1.11.
|
|
462273
|
+
version: "1.11.2",
|
|
462249
462274
|
platform: process.platform,
|
|
462250
462275
|
transcript,
|
|
462251
462276
|
subagentTranscripts: Object.keys(subagentTranscripts).length > 0 ? subagentTranscripts : undefined,
|
|
@@ -474160,7 +474185,7 @@ function WelcomeV2() {
|
|
|
474160
474185
|
dimColor: true,
|
|
474161
474186
|
children: [
|
|
474162
474187
|
"v",
|
|
474163
|
-
"1.11.
|
|
474188
|
+
"1.11.2"
|
|
474164
474189
|
]
|
|
474165
474190
|
}, undefined, true, undefined, this)
|
|
474166
474191
|
]
|
|
@@ -475420,7 +475445,7 @@ function completeOnboarding() {
|
|
|
475420
475445
|
saveGlobalConfig((current) => ({
|
|
475421
475446
|
...current,
|
|
475422
475447
|
hasCompletedOnboarding: true,
|
|
475423
|
-
lastOnboardingVersion: "1.11.
|
|
475448
|
+
lastOnboardingVersion: "1.11.2"
|
|
475424
475449
|
}));
|
|
475425
475450
|
}
|
|
475426
475451
|
function showDialog(root2, renderer) {
|
|
@@ -479880,7 +479905,7 @@ function appendToLog(path24, message) {
|
|
|
479880
479905
|
cwd: getFsImplementation().cwd(),
|
|
479881
479906
|
userType: process.env.USER_TYPE,
|
|
479882
479907
|
sessionId: getSessionId(),
|
|
479883
|
-
version: "1.11.
|
|
479908
|
+
version: "1.11.2"
|
|
479884
479909
|
};
|
|
479885
479910
|
getLogWriter(path24).write(messageWithTimestamp);
|
|
479886
479911
|
}
|
|
@@ -483906,8 +483931,8 @@ async function getEnvLessBridgeConfig() {
|
|
|
483906
483931
|
}
|
|
483907
483932
|
async function checkEnvLessBridgeMinVersion() {
|
|
483908
483933
|
const cfg = await getEnvLessBridgeConfig();
|
|
483909
|
-
if (cfg.min_version && lt("1.11.
|
|
483910
|
-
return `Your version of UR (${"1.11.
|
|
483934
|
+
if (cfg.min_version && lt("1.11.2", cfg.min_version)) {
|
|
483935
|
+
return `Your version of UR (${"1.11.2"}) is too old for Remote Control.
|
|
483911
483936
|
Version ${cfg.min_version} or higher is required. Run \`ur update\` to update.`;
|
|
483912
483937
|
}
|
|
483913
483938
|
return null;
|
|
@@ -484381,7 +484406,7 @@ async function initBridgeCore(params) {
|
|
|
484381
484406
|
const rawApi = createBridgeApiClient({
|
|
484382
484407
|
baseUrl,
|
|
484383
484408
|
getAccessToken,
|
|
484384
|
-
runnerVersion: "1.11.
|
|
484409
|
+
runnerVersion: "1.11.2",
|
|
484385
484410
|
onDebug: logForDebugging,
|
|
484386
484411
|
onAuth401,
|
|
484387
484412
|
getTrustedDeviceToken
|
|
@@ -490046,7 +490071,7 @@ async function startMCPServer(cwd3, debug2, verbose) {
|
|
|
490046
490071
|
setCwd(cwd3);
|
|
490047
490072
|
const server = new Server({
|
|
490048
490073
|
name: "ur/tengu",
|
|
490049
|
-
version: "1.11.
|
|
490074
|
+
version: "1.11.2"
|
|
490050
490075
|
}, {
|
|
490051
490076
|
capabilities: {
|
|
490052
490077
|
tools: {}
|
|
@@ -491657,7 +491682,7 @@ __export(exports_update, {
|
|
|
491657
491682
|
});
|
|
491658
491683
|
async function update() {
|
|
491659
491684
|
logEvent("tengu_update_check", {});
|
|
491660
|
-
writeToStdout(`Current version: ${"1.11.
|
|
491685
|
+
writeToStdout(`Current version: ${"1.11.2"}
|
|
491661
491686
|
`);
|
|
491662
491687
|
const channel = getInitialSettings()?.autoUpdatesChannel ?? "latest";
|
|
491663
491688
|
writeToStdout(`Checking for updates to ${channel} version...
|
|
@@ -491732,8 +491757,8 @@ async function update() {
|
|
|
491732
491757
|
writeToStdout(`UR is managed by Homebrew.
|
|
491733
491758
|
`);
|
|
491734
491759
|
const latest = await getLatestVersion(channel);
|
|
491735
|
-
if (latest && !gte("1.11.
|
|
491736
|
-
writeToStdout(`Update available: ${"1.11.
|
|
491760
|
+
if (latest && !gte("1.11.2", latest)) {
|
|
491761
|
+
writeToStdout(`Update available: ${"1.11.2"} \u2192 ${latest}
|
|
491737
491762
|
`);
|
|
491738
491763
|
writeToStdout(`
|
|
491739
491764
|
`);
|
|
@@ -491749,8 +491774,8 @@ async function update() {
|
|
|
491749
491774
|
writeToStdout(`UR is managed by winget.
|
|
491750
491775
|
`);
|
|
491751
491776
|
const latest = await getLatestVersion(channel);
|
|
491752
|
-
if (latest && !gte("1.11.
|
|
491753
|
-
writeToStdout(`Update available: ${"1.11.
|
|
491777
|
+
if (latest && !gte("1.11.2", latest)) {
|
|
491778
|
+
writeToStdout(`Update available: ${"1.11.2"} \u2192 ${latest}
|
|
491754
491779
|
`);
|
|
491755
491780
|
writeToStdout(`
|
|
491756
491781
|
`);
|
|
@@ -491766,8 +491791,8 @@ async function update() {
|
|
|
491766
491791
|
writeToStdout(`UR is managed by apk.
|
|
491767
491792
|
`);
|
|
491768
491793
|
const latest = await getLatestVersion(channel);
|
|
491769
|
-
if (latest && !gte("1.11.
|
|
491770
|
-
writeToStdout(`Update available: ${"1.11.
|
|
491794
|
+
if (latest && !gte("1.11.2", latest)) {
|
|
491795
|
+
writeToStdout(`Update available: ${"1.11.2"} \u2192 ${latest}
|
|
491771
491796
|
`);
|
|
491772
491797
|
writeToStdout(`
|
|
491773
491798
|
`);
|
|
@@ -491832,11 +491857,11 @@ async function update() {
|
|
|
491832
491857
|
`);
|
|
491833
491858
|
await gracefulShutdown(1);
|
|
491834
491859
|
}
|
|
491835
|
-
if (result.latestVersion === "1.11.
|
|
491836
|
-
writeToStdout(source_default.green(`UR is up to date (${"1.11.
|
|
491860
|
+
if (result.latestVersion === "1.11.2") {
|
|
491861
|
+
writeToStdout(source_default.green(`UR is up to date (${"1.11.2"})`) + `
|
|
491837
491862
|
`);
|
|
491838
491863
|
} else {
|
|
491839
|
-
writeToStdout(source_default.green(`Successfully updated from ${"1.11.
|
|
491864
|
+
writeToStdout(source_default.green(`Successfully updated from ${"1.11.2"} to version ${result.latestVersion}`) + `
|
|
491840
491865
|
`);
|
|
491841
491866
|
await regenerateCompletionCache();
|
|
491842
491867
|
}
|
|
@@ -491896,12 +491921,12 @@ async function update() {
|
|
|
491896
491921
|
`);
|
|
491897
491922
|
await gracefulShutdown(1);
|
|
491898
491923
|
}
|
|
491899
|
-
if (latestVersion === "1.11.
|
|
491900
|
-
writeToStdout(source_default.green(`UR is up to date (${"1.11.
|
|
491924
|
+
if (latestVersion === "1.11.2") {
|
|
491925
|
+
writeToStdout(source_default.green(`UR is up to date (${"1.11.2"})`) + `
|
|
491901
491926
|
`);
|
|
491902
491927
|
await gracefulShutdown(0);
|
|
491903
491928
|
}
|
|
491904
|
-
writeToStdout(`New version available: ${latestVersion} (current: ${"1.11.
|
|
491929
|
+
writeToStdout(`New version available: ${latestVersion} (current: ${"1.11.2"})
|
|
491905
491930
|
`);
|
|
491906
491931
|
writeToStdout(`Installing update...
|
|
491907
491932
|
`);
|
|
@@ -491946,7 +491971,7 @@ async function update() {
|
|
|
491946
491971
|
logForDebugging(`update: Installation status: ${status2}`);
|
|
491947
491972
|
switch (status2) {
|
|
491948
491973
|
case "success":
|
|
491949
|
-
writeToStdout(source_default.green(`Successfully updated from ${"1.11.
|
|
491974
|
+
writeToStdout(source_default.green(`Successfully updated from ${"1.11.2"} to version ${latestVersion}`) + `
|
|
491950
491975
|
`);
|
|
491951
491976
|
await regenerateCompletionCache();
|
|
491952
491977
|
break;
|
|
@@ -493196,7 +493221,7 @@ ${customInstructions}` : customInstructions;
|
|
|
493196
493221
|
}
|
|
493197
493222
|
}
|
|
493198
493223
|
logForDiagnosticsNoPII("info", "started", {
|
|
493199
|
-
version: "1.11.
|
|
493224
|
+
version: "1.11.2",
|
|
493200
493225
|
is_native_binary: isInBundledMode()
|
|
493201
493226
|
});
|
|
493202
493227
|
registerCleanup(async () => {
|
|
@@ -493980,7 +494005,7 @@ Usage: ur --remote "your task description"`, () => gracefulShutdown(1));
|
|
|
493980
494005
|
pendingHookMessages
|
|
493981
494006
|
}, renderAndRun);
|
|
493982
494007
|
}
|
|
493983
|
-
}).version("1.11.
|
|
494008
|
+
}).version("1.11.2 (Ur)", "-v, --version", "Output the version number");
|
|
493984
494009
|
program2.option("-w, --worktree [name]", "Create a new git worktree for this session (optionally specify a name)");
|
|
493985
494010
|
program2.option("--tmux", "Create a tmux session for the worktree (requires --worktree). Uses iTerm2 native panes when available; use --tmux=classic for traditional tmux.");
|
|
493986
494011
|
if (canUserConfigureAdvisor()) {
|
|
@@ -494493,7 +494518,7 @@ if (false) {}
|
|
|
494493
494518
|
async function main2() {
|
|
494494
494519
|
const args = process.argv.slice(2);
|
|
494495
494520
|
if (args.length === 1 && (args[0] === "--version" || args[0] === "-v" || args[0] === "-V")) {
|
|
494496
|
-
console.log(`${"1.11.
|
|
494521
|
+
console.log(`${"1.11.2"} (Ur)`);
|
|
494497
494522
|
return;
|
|
494498
494523
|
}
|
|
494499
494524
|
const {
|
package/docs/VALIDATION.md
CHANGED