@rayu-dev/rayu-cli 1.3.463 → 1.3.464
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/rayu.js +214 -99
- package/package.json +1 -1
package/dist/rayu.js
CHANGED
|
@@ -148368,7 +148368,7 @@ var init_auth = __esm(() => {
|
|
|
148368
148368
|
|
|
148369
148369
|
// src/utils/userAgent.ts
|
|
148370
148370
|
function getRayuUserAgent() {
|
|
148371
|
-
return `rayu/${"1.3.
|
|
148371
|
+
return `rayu/${"1.3.464"}`;
|
|
148372
148372
|
}
|
|
148373
148373
|
var getClaudeCodeUserAgent;
|
|
148374
148374
|
var init_userAgent = __esm(() => {
|
|
@@ -148394,7 +148394,7 @@ function getUserAgent() {
|
|
|
148394
148394
|
const clientApp = process.env.RAYU_AGENT_SDK_CLIENT_APP ? `, client-app/${process.env.RAYU_AGENT_SDK_CLIENT_APP}` : "";
|
|
148395
148395
|
const workload = getWorkload();
|
|
148396
148396
|
const workloadSuffix = workload ? `, workload/${workload}` : "";
|
|
148397
|
-
return `rayu/${"1.3.
|
|
148397
|
+
return `rayu/${"1.3.464"} (${"external"}, ${process.env.RAYU_ENTRYPOINT ?? "cli"}${agentSdkVersion}${clientApp}${workloadSuffix})`;
|
|
148398
148398
|
}
|
|
148399
148399
|
function getMCPUserAgent() {
|
|
148400
148400
|
const parts = [];
|
|
@@ -148408,7 +148408,7 @@ function getMCPUserAgent() {
|
|
|
148408
148408
|
parts.push(`client-app/${process.env.RAYU_AGENT_SDK_CLIENT_APP}`);
|
|
148409
148409
|
}
|
|
148410
148410
|
const suffix = parts.length > 0 ? ` (${parts.join(", ")})` : "";
|
|
148411
|
-
return `rayu/${"1.3.
|
|
148411
|
+
return `rayu/${"1.3.464"}${suffix}`;
|
|
148412
148412
|
}
|
|
148413
148413
|
function getWebFetchUserAgent() {
|
|
148414
148414
|
return `Rayu-User (${getRayuUserAgent()})`;
|
|
@@ -148531,7 +148531,7 @@ var init_user = __esm(() => {
|
|
|
148531
148531
|
deviceId,
|
|
148532
148532
|
sessionId: getSessionId(),
|
|
148533
148533
|
email: getEmail(),
|
|
148534
|
-
appVersion: "1.3.
|
|
148534
|
+
appVersion: "1.3.464",
|
|
148535
148535
|
platform: getHostPlatformForAnalytics(),
|
|
148536
148536
|
organizationUuid,
|
|
148537
148537
|
accountUuid,
|
|
@@ -164910,11 +164910,25 @@ function mapFinishReason(reason) {
|
|
|
164910
164910
|
}
|
|
164911
164911
|
}
|
|
164912
164912
|
function mapUsage(usage) {
|
|
164913
|
+
const promptTokens = Math.max(0, usage?.prompt_tokens ?? 0);
|
|
164914
|
+
const completionTokens = Math.max(0, usage?.completion_tokens ?? 0);
|
|
164915
|
+
const hit = usage?.prompt_cache_hit_tokens;
|
|
164916
|
+
const miss = usage?.prompt_cache_miss_tokens;
|
|
164917
|
+
const cachedFromDetails = usage?.prompt_tokens_details?.cached_tokens;
|
|
164918
|
+
let cacheReadInputTokens = 0;
|
|
164919
|
+
let inputTokens = promptTokens;
|
|
164920
|
+
if (typeof hit === "number" || typeof miss === "number") {
|
|
164921
|
+
cacheReadInputTokens = Math.max(0, hit ?? 0);
|
|
164922
|
+
inputTokens = typeof miss === "number" ? Math.max(0, miss) : Math.max(0, promptTokens - cacheReadInputTokens);
|
|
164923
|
+
} else if (typeof cachedFromDetails === "number" && cachedFromDetails > 0) {
|
|
164924
|
+
cacheReadInputTokens = Math.min(promptTokens, Math.max(0, cachedFromDetails));
|
|
164925
|
+
inputTokens = Math.max(0, promptTokens - cacheReadInputTokens);
|
|
164926
|
+
}
|
|
164913
164927
|
return {
|
|
164914
|
-
input_tokens:
|
|
164915
|
-
output_tokens:
|
|
164928
|
+
input_tokens: inputTokens,
|
|
164929
|
+
output_tokens: completionTokens,
|
|
164916
164930
|
cache_creation_input_tokens: 0,
|
|
164917
|
-
cache_read_input_tokens:
|
|
164931
|
+
cache_read_input_tokens: cacheReadInputTokens
|
|
164918
164932
|
};
|
|
164919
164933
|
}
|
|
164920
164934
|
function extractReasoningText(o2) {
|
|
@@ -184650,7 +184664,7 @@ var init_metadata = __esm(() => {
|
|
|
184650
184664
|
COMPOUND_OPERATOR_REGEX = /\s*(?:&&|\|\||[;|])\s*/;
|
|
184651
184665
|
WHITESPACE_REGEX = /\s+/;
|
|
184652
184666
|
getVersionBase = memoize_default(() => {
|
|
184653
|
-
const match = "1.3.
|
|
184667
|
+
const match = "1.3.464".match(/^\d+\.\d+\.\d+(?:-[a-z]+)?/);
|
|
184654
184668
|
return match ? match[0] : undefined;
|
|
184655
184669
|
});
|
|
184656
184670
|
buildEnvContext = memoize_default(async () => {
|
|
@@ -184689,7 +184703,7 @@ var init_metadata = __esm(() => {
|
|
|
184689
184703
|
},
|
|
184690
184704
|
isGithubAction: isEnvTruthy(process.env.GITHUB_ACTIONS),
|
|
184691
184705
|
isRayuAction: isEnvTruthy(process.env.RAYU_ACTION),
|
|
184692
|
-
version: "1.3.
|
|
184706
|
+
version: "1.3.464",
|
|
184693
184707
|
versionBase: getVersionBase(),
|
|
184694
184708
|
buildTime: "",
|
|
184695
184709
|
deploymentEnvironment: env4.detectDeploymentEnvironment(),
|
|
@@ -185301,7 +185315,7 @@ function initialize1PEventLogging() {
|
|
|
185301
185315
|
const platform2 = getPlatform();
|
|
185302
185316
|
const attributes = {
|
|
185303
185317
|
[import_semantic_conventions.ATTR_SERVICE_NAME]: "rayu",
|
|
185304
|
-
[import_semantic_conventions.ATTR_SERVICE_VERSION]: "1.3.
|
|
185318
|
+
[import_semantic_conventions.ATTR_SERVICE_VERSION]: "1.3.464"
|
|
185305
185319
|
};
|
|
185306
185320
|
if (platform2 === "wsl") {
|
|
185307
185321
|
const wslVersion = getWslVersion();
|
|
@@ -185328,7 +185342,7 @@ function initialize1PEventLogging() {
|
|
|
185328
185342
|
})
|
|
185329
185343
|
]
|
|
185330
185344
|
});
|
|
185331
|
-
firstPartyEventLogger = firstPartyEventLoggerProvider.getLogger("io.rayu.events", "1.3.
|
|
185345
|
+
firstPartyEventLogger = firstPartyEventLoggerProvider.getLogger("io.rayu.events", "1.3.464");
|
|
185332
185346
|
}
|
|
185333
185347
|
async function reinitialize1PEventLoggingIfConfigChanged() {
|
|
185334
185348
|
if (!is1PEventLoggingEnabled() || !firstPartyEventLoggerProvider) {
|
|
@@ -216999,7 +217013,7 @@ function getAttributionHeader(fingerprint) {
|
|
|
216999
217013
|
if (!isAttributionHeaderEnabled()) {
|
|
217000
217014
|
return "";
|
|
217001
217015
|
}
|
|
217002
|
-
const version2 = `${"1.3.
|
|
217016
|
+
const version2 = `${"1.3.464"}.${fingerprint}`;
|
|
217003
217017
|
const entrypoint = process.env.CLAUDE_CODE_ENTRYPOINT ?? "unknown";
|
|
217004
217018
|
const cch = "";
|
|
217005
217019
|
const workload = getWorkload();
|
|
@@ -302042,7 +302056,7 @@ function getTelemetryAttributes() {
|
|
|
302042
302056
|
attributes["session.id"] = sessionId;
|
|
302043
302057
|
}
|
|
302044
302058
|
if (shouldIncludeAttribute("OTEL_METRICS_INCLUDE_VERSION")) {
|
|
302045
|
-
attributes["app.version"] = "1.3.
|
|
302059
|
+
attributes["app.version"] = "1.3.464";
|
|
302046
302060
|
}
|
|
302047
302061
|
const oauthAccount = getOauthAccountInfo();
|
|
302048
302062
|
if (oauthAccount) {
|
|
@@ -412405,7 +412419,7 @@ function getInstallationEnv() {
|
|
|
412405
412419
|
return;
|
|
412406
412420
|
}
|
|
412407
412421
|
function getClaudeCodeVersion() {
|
|
412408
|
-
return "1.3.
|
|
412422
|
+
return "1.3.464";
|
|
412409
412423
|
}
|
|
412410
412424
|
async function getInstalledVSCodeExtensionVersion(command) {
|
|
412411
412425
|
const { stdout } = await execFileNoThrow(command, ["--list-extensions", "--show-versions"], {
|
|
@@ -417643,7 +417657,7 @@ async function setupSdkMcpClients(sdkMcpConfigs, sendMcpMessage) {
|
|
|
417643
417657
|
const client4 = new Client({
|
|
417644
417658
|
name: "claude-code",
|
|
417645
417659
|
title: "RAYU",
|
|
417646
|
-
version: "1.3.
|
|
417660
|
+
version: "1.3.464",
|
|
417647
417661
|
description: "Anthropic's agentic coding tool",
|
|
417648
417662
|
websiteUrl: PRODUCT_URL
|
|
417649
417663
|
}, {
|
|
@@ -417960,7 +417974,7 @@ var init_client7 = __esm(() => {
|
|
|
417960
417974
|
const client4 = new Client({
|
|
417961
417975
|
name: "claude-code",
|
|
417962
417976
|
title: "RAYU",
|
|
417963
|
-
version: "1.3.
|
|
417977
|
+
version: "1.3.464",
|
|
417964
417978
|
description: "Anthropic's agentic coding tool",
|
|
417965
417979
|
websiteUrl: PRODUCT_URL
|
|
417966
417980
|
}, {
|
|
@@ -432781,7 +432795,7 @@ function computeFingerprint(messageText, version2) {
|
|
|
432781
432795
|
}
|
|
432782
432796
|
function computeFingerprintFromMessages(messages) {
|
|
432783
432797
|
const firstMessageText = extractFirstMessageText(messages);
|
|
432784
|
-
return computeFingerprint(firstMessageText, "1.3.
|
|
432798
|
+
return computeFingerprint(firstMessageText, "1.3.464");
|
|
432785
432799
|
}
|
|
432786
432800
|
var FINGERPRINT_SALT = "59cf53e54c78";
|
|
432787
432801
|
var init_fingerprint = () => {};
|
|
@@ -432823,7 +432837,7 @@ async function sideQuery(opts) {
|
|
|
432823
432837
|
betas.push(STRUCTURED_OUTPUTS_BETA_HEADER);
|
|
432824
432838
|
}
|
|
432825
432839
|
const messageText = extractFirstUserMessageText(messages);
|
|
432826
|
-
const fingerprint = computeFingerprint(messageText, "1.3.
|
|
432840
|
+
const fingerprint = computeFingerprint(messageText, "1.3.464");
|
|
432827
432841
|
const attributionHeader = getAttributionHeader(fingerprint);
|
|
432828
432842
|
const systemBlocks = [
|
|
432829
432843
|
attributionHeader ? { type: "text", text: attributionHeader } : null,
|
|
@@ -528155,7 +528169,7 @@ function Feedback({
|
|
|
528155
528169
|
platform: env4.platform,
|
|
528156
528170
|
gitRepo: envInfo.isGit,
|
|
528157
528171
|
terminal: env4.terminal,
|
|
528158
|
-
version: "1.3.
|
|
528172
|
+
version: "1.3.464",
|
|
528159
528173
|
transcript: normalizeMessagesForAPI(messages),
|
|
528160
528174
|
errors: sanitizedErrors,
|
|
528161
528175
|
lastApiRequest: getLastAPIRequest(),
|
|
@@ -528347,7 +528361,7 @@ function Feedback({
|
|
|
528347
528361
|
", ",
|
|
528348
528362
|
env4.terminal,
|
|
528349
528363
|
", v",
|
|
528350
|
-
"1.3.
|
|
528364
|
+
"1.3.464"
|
|
528351
528365
|
]
|
|
528352
528366
|
})
|
|
528353
528367
|
]
|
|
@@ -528453,7 +528467,7 @@ ${sanitizedDescription}
|
|
|
528453
528467
|
` + `**Environment Info**
|
|
528454
528468
|
` + `- Platform: ${env4.platform}
|
|
528455
528469
|
` + `- Terminal: ${env4.terminal}
|
|
528456
|
-
` + `- Version: ${"1.3.
|
|
528470
|
+
` + `- Version: ${"1.3.464"}
|
|
528457
528471
|
` + `- Feedback ID: ${feedbackId}
|
|
528458
528472
|
` + `
|
|
528459
528473
|
**Errors**
|
|
@@ -531293,9 +531307,9 @@ async function assertMinVersion() {
|
|
|
531293
531307
|
if (false) {}
|
|
531294
531308
|
try {
|
|
531295
531309
|
const versionConfig = await getDynamicConfig_BLOCKS_ON_INIT("tengu_version_config", { minVersion: "0.0.0" });
|
|
531296
|
-
if (versionConfig.minVersion && lt("1.3.
|
|
531310
|
+
if (versionConfig.minVersion && lt("1.3.464", versionConfig.minVersion)) {
|
|
531297
531311
|
console.error(`
|
|
531298
|
-
It looks like your version of RAYU (${"1.3.
|
|
531312
|
+
It looks like your version of RAYU (${"1.3.464"}) needs an update.
|
|
531299
531313
|
A newer version (${versionConfig.minVersion} or higher) is required to continue.
|
|
531300
531314
|
|
|
531301
531315
|
To update, please run:
|
|
@@ -531521,7 +531535,7 @@ async function installGlobalPackage(specificVersion) {
|
|
|
531521
531535
|
logError2(new AutoUpdaterError("Another process is currently installing an update"));
|
|
531522
531536
|
logEvent("tengu_auto_updater_lock_contention", {
|
|
531523
531537
|
pid: process.pid,
|
|
531524
|
-
currentVersion: "1.3.
|
|
531538
|
+
currentVersion: "1.3.464"
|
|
531525
531539
|
});
|
|
531526
531540
|
return "in_progress";
|
|
531527
531541
|
}
|
|
@@ -531530,7 +531544,7 @@ async function installGlobalPackage(specificVersion) {
|
|
|
531530
531544
|
if (!env4.isRunningWithBun() && env4.isNpmFromWindowsPath()) {
|
|
531531
531545
|
logError2(new Error("Windows NPM detected in WSL environment"));
|
|
531532
531546
|
logEvent("tengu_auto_updater_windows_npm_in_wsl", {
|
|
531533
|
-
currentVersion: "1.3.
|
|
531547
|
+
currentVersion: "1.3.464"
|
|
531534
531548
|
});
|
|
531535
531549
|
console.error(`
|
|
531536
531550
|
Error: Windows NPM detected in WSL
|
|
@@ -532062,7 +532076,7 @@ function detectLinuxGlobPatternWarnings() {
|
|
|
532062
532076
|
}
|
|
532063
532077
|
async function getDoctorDiagnostic() {
|
|
532064
532078
|
const installationType = await getCurrentInstallationType();
|
|
532065
|
-
const version2 = typeof MACRO !== "undefined" ? "1.3.
|
|
532079
|
+
const version2 = typeof MACRO !== "undefined" ? "1.3.464" : "unknown";
|
|
532066
532080
|
const installationPath = await getInstallationPath();
|
|
532067
532081
|
const invokedBinary = getInvokedBinary();
|
|
532068
532082
|
const multipleInstallations = await detectMultipleInstallations();
|
|
@@ -532857,8 +532871,8 @@ async function updateLatest(channelOrVersion, forceReinstall = false) {
|
|
|
532857
532871
|
const maxVersion = await getMaxVersion();
|
|
532858
532872
|
if (maxVersion && gt(version2, maxVersion)) {
|
|
532859
532873
|
logForDebugging(`Native installer: maxVersion ${maxVersion} is set, capping update from ${version2} to ${maxVersion}`);
|
|
532860
|
-
if (gte("1.3.
|
|
532861
|
-
logForDebugging(`Native installer: current version ${"1.3.
|
|
532874
|
+
if (gte("1.3.464", maxVersion)) {
|
|
532875
|
+
logForDebugging(`Native installer: current version ${"1.3.464"} is already at or above maxVersion ${maxVersion}, skipping update`);
|
|
532862
532876
|
logEvent("tengu_native_update_skipped_max_version", {
|
|
532863
532877
|
latency_ms: Date.now() - startTime2,
|
|
532864
532878
|
max_version: maxVersion,
|
|
@@ -532869,7 +532883,7 @@ async function updateLatest(channelOrVersion, forceReinstall = false) {
|
|
|
532869
532883
|
version2 = maxVersion;
|
|
532870
532884
|
}
|
|
532871
532885
|
}
|
|
532872
|
-
if (!forceReinstall && version2 === "1.3.
|
|
532886
|
+
if (!forceReinstall && version2 === "1.3.464" && await versionIsAvailable(version2) && await isPossibleClaudeBinary(executablePath)) {
|
|
532873
532887
|
logForDebugging(`Found ${version2} at ${executablePath}, skipping install`);
|
|
532874
532888
|
logEvent("tengu_native_update_complete", {
|
|
532875
532889
|
latency_ms: Date.now() - startTime2,
|
|
@@ -534065,7 +534079,7 @@ function buildPrimarySection() {
|
|
|
534065
534079
|
});
|
|
534066
534080
|
return [{
|
|
534067
534081
|
label: "Version",
|
|
534068
|
-
value: "1.3.
|
|
534082
|
+
value: "1.3.464"
|
|
534069
534083
|
}, {
|
|
534070
534084
|
label: "Session name",
|
|
534071
534085
|
value: nameValue
|
|
@@ -537756,7 +537770,7 @@ function Config({
|
|
|
537756
537770
|
}
|
|
537757
537771
|
})
|
|
537758
537772
|
}) : showSubmenu === "ChannelDowngrade" ? /* @__PURE__ */ jsx_runtime170.jsx(ChannelDowngradeDialog, {
|
|
537759
|
-
currentVersion: "1.3.
|
|
537773
|
+
currentVersion: "1.3.464",
|
|
537760
537774
|
onChoice: (choice) => {
|
|
537761
537775
|
setShowSubmenu(null);
|
|
537762
537776
|
setTabsHidden(false);
|
|
@@ -537768,7 +537782,7 @@ function Config({
|
|
|
537768
537782
|
autoUpdatesChannel: "stable"
|
|
537769
537783
|
};
|
|
537770
537784
|
if (choice === "stay") {
|
|
537771
|
-
newSettings.minimumVersion = "1.3.
|
|
537785
|
+
newSettings.minimumVersion = "1.3.464";
|
|
537772
537786
|
}
|
|
537773
537787
|
updateSettingsForSource("userSettings", newSettings);
|
|
537774
537788
|
setSettingsData((prev_27) => ({
|
|
@@ -545830,7 +545844,7 @@ function HelpV2(t0) {
|
|
|
545830
545844
|
let t6;
|
|
545831
545845
|
if ($3[31] !== tabs) {
|
|
545832
545846
|
t6 = /* @__PURE__ */ jsx_runtime197.jsx(Tabs, {
|
|
545833
|
-
title: `Rayu-CLI v${"1.3.
|
|
545847
|
+
title: `Rayu-CLI v${"1.3.464"}`,
|
|
545834
545848
|
color: "professionalBlue",
|
|
545835
545849
|
defaultTab: "general",
|
|
545836
545850
|
children: tabs
|
|
@@ -565917,7 +565931,7 @@ function getRecentReleaseNotes(currentVersion, previousVersion, changelogContent
|
|
|
565917
565931
|
}
|
|
565918
565932
|
return [];
|
|
565919
565933
|
}
|
|
565920
|
-
async function checkForReleaseNotes(lastSeenVersion, currentVersion = "1.3.
|
|
565934
|
+
async function checkForReleaseNotes(lastSeenVersion, currentVersion = "1.3.464") {
|
|
565921
565935
|
if (false) {}
|
|
565922
565936
|
const cachedChangelog = await getStoredChangelog();
|
|
565923
565937
|
if (lastSeenVersion !== currentVersion || !cachedChangelog) {
|
|
@@ -565930,7 +565944,7 @@ async function checkForReleaseNotes(lastSeenVersion, currentVersion = "1.3.463")
|
|
|
565930
565944
|
releaseNotes
|
|
565931
565945
|
};
|
|
565932
565946
|
}
|
|
565933
|
-
function checkForReleaseNotesSync(lastSeenVersion, currentVersion = "1.3.
|
|
565947
|
+
function checkForReleaseNotesSync(lastSeenVersion, currentVersion = "1.3.464") {
|
|
565934
565948
|
if (false) {}
|
|
565935
565949
|
const releaseNotes = getRecentReleaseNotes(currentVersion, lastSeenVersion);
|
|
565936
565950
|
return {
|
|
@@ -566058,7 +566072,7 @@ function getRecentActivitySync() {
|
|
|
566058
566072
|
return cachedActivity;
|
|
566059
566073
|
}
|
|
566060
566074
|
function getLogoDisplayData() {
|
|
566061
|
-
const version2 = process.env.DEMO_VERSION ?? "1.3.
|
|
566075
|
+
const version2 = process.env.DEMO_VERSION ?? "1.3.464";
|
|
566062
566076
|
const serverUrl = getDirectConnectServerUrl();
|
|
566063
566077
|
const displayPath = process.env.DEMO_VERSION ? "/code/claude" : getDisplayPath(getCwd());
|
|
566064
566078
|
const cwd2 = serverUrl ? `${displayPath} in ${serverUrl.replace(/^https?:\/\//, "")}` : displayPath;
|
|
@@ -567305,7 +567319,7 @@ function LogoV2() {
|
|
|
567305
567319
|
if ($3[2] === Symbol.for("react.memo_cache_sentinel")) {
|
|
567306
567320
|
t2 = () => {
|
|
567307
567321
|
const currentConfig = getGlobalConfig();
|
|
567308
|
-
if (currentConfig.lastReleaseNotesSeen === "1.3.
|
|
567322
|
+
if (currentConfig.lastReleaseNotesSeen === "1.3.464") {
|
|
567309
567323
|
return;
|
|
567310
567324
|
}
|
|
567311
567325
|
saveGlobalConfig(_temp327);
|
|
@@ -567783,7 +567797,7 @@ function LogoV2() {
|
|
|
567783
567797
|
t24 = $3[61];
|
|
567784
567798
|
}
|
|
567785
567799
|
const _latestNpm = getCachedLatestNpmVersionSync();
|
|
567786
|
-
const _updateFeeds = _latestNpm && gt(_latestNpm, "1.3.
|
|
567800
|
+
const _updateFeeds = _latestNpm && gt(_latestNpm, "1.3.464") ? [createUpdateAvailableFeed("1.3.464", _latestNpm)] : [];
|
|
567787
567801
|
const t25 = layoutMode === "horizontal" && /* @__PURE__ */ jsx_runtime239.jsx(FeedColumn, {
|
|
567788
567802
|
feeds: showOnboarding ? [createProjectOnboardingFeed(getSteps()), createRecentActivityFeed(activities)] : showGuestPassesUpsell ? [createRecentActivityFeed(activities), createGuestPassesFeed()] : showOverageCreditUpsell ? [createRecentActivityFeed(activities), createOverageCreditFeed()] : [createRecentActivityFeed(activities), ..._updateFeeds, createWhatsNewFeed(changelog)],
|
|
567789
567803
|
maxWidth: rightWidth
|
|
@@ -567983,12 +567997,12 @@ function LogoV2() {
|
|
|
567983
567997
|
return t41;
|
|
567984
567998
|
}
|
|
567985
567999
|
function _temp327(current) {
|
|
567986
|
-
if (current.lastReleaseNotesSeen === "1.3.
|
|
568000
|
+
if (current.lastReleaseNotesSeen === "1.3.464") {
|
|
567987
568001
|
return current;
|
|
567988
568002
|
}
|
|
567989
568003
|
return {
|
|
567990
568004
|
...current,
|
|
567991
|
-
lastReleaseNotesSeen: "1.3.
|
|
568005
|
+
lastReleaseNotesSeen: "1.3.464"
|
|
567992
568006
|
};
|
|
567993
568007
|
}
|
|
567994
568008
|
function _temp241(s_0) {
|
|
@@ -592897,7 +592911,7 @@ async function captureMemoryDiagnostics(trigger, dumpNumber = 0) {
|
|
|
592897
592911
|
smapsRollup,
|
|
592898
592912
|
platform: process.platform,
|
|
592899
592913
|
nodeVersion: process.version,
|
|
592900
|
-
ccVersion: "1.3.
|
|
592914
|
+
ccVersion: "1.3.464"
|
|
592901
592915
|
};
|
|
592902
592916
|
}
|
|
592903
592917
|
async function performHeapDump(trigger = "manual", dumpNumber = 0) {
|
|
@@ -593419,7 +593433,7 @@ var init_bridge_kick = __esm(() => {
|
|
|
593419
593433
|
var call49 = async () => {
|
|
593420
593434
|
return {
|
|
593421
593435
|
type: "text",
|
|
593422
|
-
value: "1.3.
|
|
593436
|
+
value: "1.3.464"
|
|
593423
593437
|
};
|
|
593424
593438
|
}, version2, version_default;
|
|
593425
593439
|
var init_version = __esm(() => {
|
|
@@ -603369,7 +603383,7 @@ function generateHtmlReport(data, insights) {
|
|
|
603369
603383
|
</html>`;
|
|
603370
603384
|
}
|
|
603371
603385
|
function buildExportData(data, insights, facets, remoteStats) {
|
|
603372
|
-
const version3 = typeof MACRO !== "undefined" ? "1.3.
|
|
603386
|
+
const version3 = typeof MACRO !== "undefined" ? "1.3.464" : "unknown";
|
|
603373
603387
|
const remote_hosts_collected = remoteStats?.hosts.filter((h3) => h3.sessionCount > 0).map((h3) => h3.name);
|
|
603374
603388
|
const facets_summary = {
|
|
603375
603389
|
total: facets.size,
|
|
@@ -607279,7 +607293,7 @@ var init_sessionStorage = __esm(() => {
|
|
|
607279
607293
|
init_settings2();
|
|
607280
607294
|
init_slowOperations();
|
|
607281
607295
|
init_uuid();
|
|
607282
|
-
VERSION6 = typeof MACRO !== "undefined" ? "1.3.
|
|
607296
|
+
VERSION6 = typeof MACRO !== "undefined" ? "1.3.464" : "unknown";
|
|
607283
607297
|
MAX_TOMBSTONE_REWRITE_BYTES = 50 * 1024 * 1024;
|
|
607284
607298
|
SKIP_FIRST_PROMPT_PATTERN = /^(?:\s*<[a-z][\w-]*[\s>]|\[Request interrupted by user[^\]]*\])/;
|
|
607285
607299
|
EPHEMERAL_PROGRESS_TYPES = new Set([
|
|
@@ -608499,7 +608513,7 @@ var init_filesystem = __esm(() => {
|
|
|
608499
608513
|
});
|
|
608500
608514
|
getBundledSkillsRoot = memoize_default(function getBundledSkillsRoot2() {
|
|
608501
608515
|
const nonce = randomBytes19(16).toString("hex");
|
|
608502
|
-
return join154(getClaudeTempDir(), "bundled-skills", "1.3.
|
|
608516
|
+
return join154(getClaudeTempDir(), "bundled-skills", "1.3.464", nonce);
|
|
608503
608517
|
});
|
|
608504
608518
|
getResolvedWorkingDirPaths = memoize_default(getPathsForPermissionCheck);
|
|
608505
608519
|
});
|
|
@@ -613613,8 +613627,26 @@ __export(exports_update, {
|
|
|
613613
613627
|
});
|
|
613614
613628
|
import { execFileSync as execFileSync3 } from "node:child_process";
|
|
613615
613629
|
import { homedir as homedir35 } from "os";
|
|
613630
|
+
function execNpmSync(npmArgs, options) {
|
|
613631
|
+
if (IS_WINDOWS2) {
|
|
613632
|
+
const commandStr = `npm ${npmArgs.map((a2) => `"${a2}"`).join(" ")}`;
|
|
613633
|
+
return execFileSync3(commandStr, [], {
|
|
613634
|
+
encoding: "utf8",
|
|
613635
|
+
cwd: homedir35(),
|
|
613636
|
+
shell: true,
|
|
613637
|
+
...options.timeout ? { timeout: options.timeout } : {},
|
|
613638
|
+
stdio: options.stdio
|
|
613639
|
+
});
|
|
613640
|
+
}
|
|
613641
|
+
return execFileSync3("npm", npmArgs, {
|
|
613642
|
+
encoding: "utf8",
|
|
613643
|
+
cwd: homedir35(),
|
|
613644
|
+
...options.timeout ? { timeout: options.timeout } : {},
|
|
613645
|
+
stdio: options.stdio
|
|
613646
|
+
});
|
|
613647
|
+
}
|
|
613616
613648
|
async function update() {
|
|
613617
|
-
writeToStdout(`Current version: ${"1.3.
|
|
613649
|
+
writeToStdout(`Current version: ${"1.3.464"}
|
|
613618
613650
|
`);
|
|
613619
613651
|
const isBundled = isInBundledMode();
|
|
613620
613652
|
if (isBundled) {
|
|
@@ -613628,7 +613660,7 @@ async function updateNpmPackage() {
|
|
|
613628
613660
|
`);
|
|
613629
613661
|
let latestVersion;
|
|
613630
613662
|
try {
|
|
613631
|
-
latestVersion =
|
|
613663
|
+
latestVersion = execNpmSync(["view", `${"@rayu-dev/rayu-cli"}@latest`, "version", "--prefer-online"], { timeout: 15000, stdio: ["pipe", "pipe", "pipe"] }).trim();
|
|
613632
613664
|
} catch {
|
|
613633
613665
|
process.stderr.write(source_default.red(`Failed to check for updates
|
|
613634
613666
|
`));
|
|
@@ -613640,19 +613672,19 @@ Manual check: npm view ${"@rayu-dev/rayu-cli"} version
|
|
|
613640
613672
|
process.exit(1);
|
|
613641
613673
|
return;
|
|
613642
613674
|
}
|
|
613643
|
-
if (latestVersion === "1.3.
|
|
613675
|
+
if (latestVersion === "1.3.464") {
|
|
613644
613676
|
writeToStdout(source_default.green(`
|
|
613645
|
-
Rayu CLI is up to date (${"1.3.
|
|
613677
|
+
Rayu CLI is up to date (${"1.3.464"})
|
|
613646
613678
|
`));
|
|
613647
613679
|
process.exit(0);
|
|
613648
613680
|
}
|
|
613649
|
-
writeToStdout(`New version available: ${latestVersion} (current: ${"1.3.
|
|
613681
|
+
writeToStdout(`New version available: ${latestVersion} (current: ${"1.3.464"})
|
|
613650
613682
|
`);
|
|
613651
613683
|
writeToStdout(`Installing update...
|
|
613652
613684
|
|
|
613653
613685
|
`);
|
|
613654
613686
|
try {
|
|
613655
|
-
|
|
613687
|
+
execNpmSync(["install", "-g", `${"@rayu-dev/rayu-cli"}@latest`], { stdio: "inherit" });
|
|
613656
613688
|
} catch {
|
|
613657
613689
|
process.stderr.write(source_default.red(`
|
|
613658
613690
|
Failed to install update
|
|
@@ -613670,7 +613702,7 @@ Try manually:
|
|
|
613670
613702
|
return;
|
|
613671
613703
|
}
|
|
613672
613704
|
writeToStdout(source_default.green(`
|
|
613673
|
-
Successfully updated from ${"1.3.
|
|
613705
|
+
Successfully updated from ${"1.3.464"} to ${latestVersion}
|
|
613674
613706
|
`));
|
|
613675
613707
|
process.exit(0);
|
|
613676
613708
|
}
|
|
@@ -613680,18 +613712,18 @@ async function updateNativeBinary() {
|
|
|
613680
613712
|
const { installLatest: installLatest2 } = await Promise.resolve().then(() => (init_nativeInstaller(), exports_nativeInstaller));
|
|
613681
613713
|
let latestVersion;
|
|
613682
613714
|
try {
|
|
613683
|
-
latestVersion =
|
|
613715
|
+
latestVersion = execNpmSync(["view", "@rayu-dev/rayu-cli@latest", "version", "--prefer-online"], { timeout: 15000, stdio: ["pipe", "pipe", "pipe"] }).trim();
|
|
613684
613716
|
} catch {
|
|
613685
613717
|
latestVersion = "";
|
|
613686
613718
|
}
|
|
613687
|
-
if (latestVersion && latestVersion === "1.3.
|
|
613719
|
+
if (latestVersion && latestVersion === "1.3.464") {
|
|
613688
613720
|
writeToStdout(source_default.green(`
|
|
613689
|
-
Rayu CLI is up to date (1.3.
|
|
613721
|
+
Rayu CLI is up to date (1.3.464)
|
|
613690
613722
|
`));
|
|
613691
613723
|
process.exit(0);
|
|
613692
613724
|
}
|
|
613693
613725
|
if (latestVersion) {
|
|
613694
|
-
writeToStdout(`New version available: ${latestVersion} (current: 1.3.
|
|
613726
|
+
writeToStdout(`New version available: ${latestVersion} (current: 1.3.464)
|
|
613695
613727
|
`);
|
|
613696
613728
|
}
|
|
613697
613729
|
writeToStdout(`Downloading and installing update...
|
|
@@ -613706,13 +613738,13 @@ Rayu CLI is up to date (1.3.463)
|
|
|
613706
613738
|
return;
|
|
613707
613739
|
}
|
|
613708
613740
|
writeToStdout(source_default.green(`
|
|
613709
|
-
Rayu CLI is up to date (1.3.
|
|
613741
|
+
Rayu CLI is up to date (1.3.464)
|
|
613710
613742
|
`));
|
|
613711
613743
|
process.exit(0);
|
|
613712
613744
|
}
|
|
613713
613745
|
const updatedTo = result.latestVersion ?? latestVersion ?? "latest";
|
|
613714
613746
|
writeToStdout(source_default.green(`
|
|
613715
|
-
Successfully updated from 1.3.
|
|
613747
|
+
Successfully updated from 1.3.464 to ${updatedTo}
|
|
613716
613748
|
`));
|
|
613717
613749
|
writeToStdout(`Restart your terminal to use the new version.
|
|
613718
613750
|
`);
|
|
@@ -613731,8 +613763,10 @@ Try manually:
|
|
|
613731
613763
|
process.exit(1);
|
|
613732
613764
|
}
|
|
613733
613765
|
}
|
|
613766
|
+
var IS_WINDOWS2;
|
|
613734
613767
|
var init_update = __esm(() => {
|
|
613735
613768
|
init_source();
|
|
613769
|
+
IS_WINDOWS2 = process.platform === "win32";
|
|
613736
613770
|
});
|
|
613737
613771
|
|
|
613738
613772
|
// src/cli/uninstall.ts
|
|
@@ -613741,15 +613775,63 @@ __export(exports_uninstall, {
|
|
|
613741
613775
|
uninstall: () => uninstall
|
|
613742
613776
|
});
|
|
613743
613777
|
import { execFileSync as execFileSync4 } from "node:child_process";
|
|
613778
|
+
import { rm as rm17 } from "node:fs/promises";
|
|
613779
|
+
import { existsSync as existsSync28 } from "node:fs";
|
|
613780
|
+
import { createInterface as createInterface3 } from "node:readline";
|
|
613744
613781
|
import { homedir as homedir36 } from "os";
|
|
613745
|
-
|
|
613746
|
-
|
|
613782
|
+
function execNpmUninstallSync() {
|
|
613783
|
+
if (IS_WINDOWS3) {
|
|
613784
|
+
execFileSync4(`npm uninstall -g "${"@rayu-dev/rayu-cli"}"`, [], {
|
|
613785
|
+
encoding: "utf8",
|
|
613786
|
+
cwd: homedir36(),
|
|
613787
|
+
stdio: "inherit",
|
|
613788
|
+
shell: true
|
|
613789
|
+
});
|
|
613790
|
+
return;
|
|
613791
|
+
}
|
|
613792
|
+
execFileSync4("npm", ["uninstall", "-g", "@rayu-dev/rayu-cli"], {
|
|
613793
|
+
encoding: "utf8",
|
|
613794
|
+
cwd: homedir36(),
|
|
613795
|
+
stdio: "inherit"
|
|
613796
|
+
});
|
|
613797
|
+
}
|
|
613798
|
+
async function confirm(question, defaultYes) {
|
|
613799
|
+
if (!process.stdin.isTTY)
|
|
613800
|
+
return defaultYes;
|
|
613801
|
+
const rl = createInterface3({ input: process.stdin, output: process.stdout });
|
|
613802
|
+
const suffix = defaultYes ? "(Y/n)" : "(y/N)";
|
|
613803
|
+
try {
|
|
613804
|
+
const answer = await new Promise((resolve49) => {
|
|
613805
|
+
rl.question(`${question} ${suffix} `, resolve49);
|
|
613806
|
+
});
|
|
613807
|
+
const normalized = answer.trim().toLowerCase();
|
|
613808
|
+
if (!normalized)
|
|
613809
|
+
return defaultYes;
|
|
613810
|
+
return normalized === "y" || normalized === "yes";
|
|
613811
|
+
} finally {
|
|
613812
|
+
rl.close();
|
|
613813
|
+
}
|
|
613814
|
+
}
|
|
613815
|
+
async function removeDataDir(dir) {
|
|
613816
|
+
writeToStdout(`Removing configuration and data: ${dir}
|
|
613817
|
+
`);
|
|
613818
|
+
try {
|
|
613819
|
+
await rm17(dir, { recursive: true, force: true });
|
|
613820
|
+
return true;
|
|
613821
|
+
} catch {
|
|
613822
|
+
return false;
|
|
613823
|
+
}
|
|
613824
|
+
}
|
|
613825
|
+
async function uninstall(args = []) {
|
|
613826
|
+
const yes = args.includes("--yes") || args.includes("-y");
|
|
613827
|
+
const keepData = args.includes("--keep-data");
|
|
613828
|
+
writeToStdout(`Uninstalling Rayu CLI (${"1.3.464"})...
|
|
613747
613829
|
`);
|
|
613748
613830
|
writeToStdout(`Running: npm uninstall -g ${"@rayu-dev/rayu-cli"}
|
|
613749
613831
|
|
|
613750
613832
|
`);
|
|
613751
613833
|
try {
|
|
613752
|
-
|
|
613834
|
+
execNpmUninstallSync();
|
|
613753
613835
|
} catch {
|
|
613754
613836
|
process.stderr.write(source_default.red(`
|
|
613755
613837
|
Failed to uninstall ${"@rayu-dev/rayu-cli"}
|
|
@@ -613764,16 +613846,49 @@ Try running manually:
|
|
|
613764
613846
|
process.stderr.write(source_default.bold(` sudo npm uninstall -g ${"@rayu-dev/rayu-cli"}
|
|
613765
613847
|
`));
|
|
613766
613848
|
process.exit(1);
|
|
613849
|
+
return;
|
|
613767
613850
|
}
|
|
613768
613851
|
writeToStdout(source_default.green(`
|
|
613769
|
-
Successfully uninstalled ${"@rayu-dev/rayu-cli"} ${"1.3.
|
|
613852
|
+
Successfully uninstalled ${"@rayu-dev/rayu-cli"} ${"1.3.464"}
|
|
613770
613853
|
`));
|
|
613771
|
-
|
|
613854
|
+
const configDir = getRayuConfigHomeDir();
|
|
613855
|
+
const dataExists = existsSync28(configDir);
|
|
613856
|
+
if (dataExists && !keepData) {
|
|
613857
|
+
writeToStdout(`
|
|
613858
|
+
Rayu also stores configuration and data at:
|
|
613859
|
+
${configDir}
|
|
613860
|
+
` + `This includes saved provider API keys, settings, and session history.
|
|
613861
|
+
`);
|
|
613862
|
+
const shouldRemove = yes || await confirm("Remove this configuration and data too?", false);
|
|
613863
|
+
if (shouldRemove) {
|
|
613864
|
+
const removed = await removeDataDir(configDir);
|
|
613865
|
+
if (!removed || existsSync28(configDir)) {
|
|
613866
|
+
process.stderr.write(source_default.yellow(`
|
|
613867
|
+
Could not fully remove ${configDir}. Remove it manually if needed.
|
|
613868
|
+
`));
|
|
613869
|
+
} else {
|
|
613870
|
+
writeToStdout(source_default.green(`Removed ${configDir}
|
|
613871
|
+
`));
|
|
613872
|
+
}
|
|
613873
|
+
} else {
|
|
613874
|
+
writeToStdout(`Keeping configuration and data at ${configDir}
|
|
613875
|
+
`);
|
|
613876
|
+
}
|
|
613877
|
+
} else if (dataExists && keepData) {
|
|
613878
|
+
writeToStdout(`
|
|
613879
|
+
Keeping configuration and data at ${configDir} (--keep-data)
|
|
613880
|
+
`);
|
|
613881
|
+
}
|
|
613882
|
+
writeToStdout(`
|
|
613883
|
+
Thanks for using Rayu CLI!
|
|
613772
613884
|
`);
|
|
613773
613885
|
process.exit(0);
|
|
613774
613886
|
}
|
|
613887
|
+
var IS_WINDOWS3;
|
|
613775
613888
|
var init_uninstall = __esm(() => {
|
|
613776
613889
|
init_source();
|
|
613890
|
+
init_envUtils();
|
|
613891
|
+
IS_WINDOWS3 = process.platform === "win32";
|
|
613777
613892
|
});
|
|
613778
613893
|
|
|
613779
613894
|
// src/utils/firstRun.ts
|
|
@@ -613781,14 +613896,14 @@ var exports_firstRun = {};
|
|
|
613781
613896
|
__export(exports_firstRun, {
|
|
613782
613897
|
showFirstRunWelcome: () => showFirstRunWelcome
|
|
613783
613898
|
});
|
|
613784
|
-
import { existsSync as
|
|
613899
|
+
import { existsSync as existsSync29, mkdirSync as mkdirSync16, writeFileSync as writeFileSync18 } from "node:fs";
|
|
613785
613900
|
import { join as join157 } from "node:path";
|
|
613786
613901
|
function markerPath() {
|
|
613787
613902
|
return join157(getRayuConfigHomeDir(), ".installed");
|
|
613788
613903
|
}
|
|
613789
613904
|
function showFirstRunWelcome() {
|
|
613790
613905
|
try {
|
|
613791
|
-
if (
|
|
613906
|
+
if (existsSync29(markerPath())) {
|
|
613792
613907
|
return;
|
|
613793
613908
|
}
|
|
613794
613909
|
} catch {
|
|
@@ -613818,7 +613933,7 @@ function showFirstRunWelcome() {
|
|
|
613818
613933
|
`);
|
|
613819
613934
|
try {
|
|
613820
613935
|
mkdirSync16(getRayuConfigHomeDir(), { recursive: true });
|
|
613821
|
-
writeFileSync18(markerPath(), "1.3.
|
|
613936
|
+
writeFileSync18(markerPath(), "1.3.464", "utf8");
|
|
613822
613937
|
} catch {}
|
|
613823
613938
|
}
|
|
613824
613939
|
var init_firstRun = __esm(() => {
|
|
@@ -625661,7 +625776,7 @@ async function initializeBetaTracing(resource) {
|
|
|
625661
625776
|
});
|
|
625662
625777
|
import_api_logs.logs.setGlobalLoggerProvider(loggerProvider);
|
|
625663
625778
|
setLoggerProvider(loggerProvider);
|
|
625664
|
-
const eventLogger = import_api_logs.logs.getLogger("com.anthropic.claude_code.events", "1.3.
|
|
625779
|
+
const eventLogger = import_api_logs.logs.getLogger("com.anthropic.claude_code.events", "1.3.464");
|
|
625665
625780
|
setEventLogger(eventLogger);
|
|
625666
625781
|
process.on("beforeExit", async () => {
|
|
625667
625782
|
await loggerProvider?.forceFlush();
|
|
@@ -625701,7 +625816,7 @@ async function initializeTelemetry() {
|
|
|
625701
625816
|
const platform4 = getPlatform();
|
|
625702
625817
|
const baseAttributes = {
|
|
625703
625818
|
[import_semantic_conventions2.ATTR_SERVICE_NAME]: "claude-code",
|
|
625704
|
-
[import_semantic_conventions2.ATTR_SERVICE_VERSION]: "1.3.
|
|
625819
|
+
[import_semantic_conventions2.ATTR_SERVICE_VERSION]: "1.3.464"
|
|
625705
625820
|
};
|
|
625706
625821
|
if (platform4 === "wsl") {
|
|
625707
625822
|
const wslVersion = getWslVersion();
|
|
@@ -625746,7 +625861,7 @@ async function initializeTelemetry() {
|
|
|
625746
625861
|
} catch {}
|
|
625747
625862
|
};
|
|
625748
625863
|
registerCleanup(shutdownTelemetry2);
|
|
625749
|
-
return meterProvider2.getMeter("com.anthropic.claude_code", "1.3.
|
|
625864
|
+
return meterProvider2.getMeter("com.anthropic.claude_code", "1.3.464");
|
|
625750
625865
|
}
|
|
625751
625866
|
const meterProvider = new import_sdk_metrics2.MeterProvider({
|
|
625752
625867
|
resource,
|
|
@@ -625766,7 +625881,7 @@ async function initializeTelemetry() {
|
|
|
625766
625881
|
});
|
|
625767
625882
|
import_api_logs.logs.setGlobalLoggerProvider(loggerProvider);
|
|
625768
625883
|
setLoggerProvider(loggerProvider);
|
|
625769
|
-
const eventLogger = import_api_logs.logs.getLogger("com.anthropic.claude_code.events", "1.3.
|
|
625884
|
+
const eventLogger = import_api_logs.logs.getLogger("com.anthropic.claude_code.events", "1.3.464");
|
|
625770
625885
|
setEventLogger(eventLogger);
|
|
625771
625886
|
logForDebugging("[3P telemetry] Event logger set successfully");
|
|
625772
625887
|
process.on("beforeExit", async () => {
|
|
@@ -625828,7 +625943,7 @@ Current timeout: ${timeoutMs}ms
|
|
|
625828
625943
|
}
|
|
625829
625944
|
};
|
|
625830
625945
|
registerCleanup(shutdownTelemetry);
|
|
625831
|
-
return meterProvider.getMeter("com.anthropic.claude_code", "1.3.
|
|
625946
|
+
return meterProvider.getMeter("com.anthropic.claude_code", "1.3.464");
|
|
625832
625947
|
}
|
|
625833
625948
|
async function flushTelemetry() {
|
|
625834
625949
|
const meterProvider = getMeterProvider();
|
|
@@ -627341,7 +627456,7 @@ function buildSystemInitMessage(inputs) {
|
|
|
627341
627456
|
slash_commands: inputs.commands.filter((c4) => c4.userInvocable !== false).map((c4) => c4.name),
|
|
627342
627457
|
apiKeySource: getAnthropicApiKeyWithSource().source,
|
|
627343
627458
|
betas: getSdkBetas(),
|
|
627344
|
-
claude_code_version: "1.3.
|
|
627459
|
+
claude_code_version: "1.3.464",
|
|
627345
627460
|
output_style: outputStyle2,
|
|
627346
627461
|
agents: inputs.agents.map((agent) => agent.agentType),
|
|
627347
627462
|
skills: inputs.skills.filter((s2) => s2.userInvocable !== false).map((skill) => skill.name),
|
|
@@ -628221,7 +628336,7 @@ var init_streamingMirror = __esm(() => {
|
|
|
628221
628336
|
|
|
628222
628337
|
// src/telegram/telegramBridge.ts
|
|
628223
628338
|
import { hostname as hostname3 } from "os";
|
|
628224
|
-
import { closeSync as closeSync5, existsSync as
|
|
628339
|
+
import { closeSync as closeSync5, existsSync as existsSync30, openSync as openSync6, readFileSync as readFileSync30, unlinkSync as unlinkSync4, writeFileSync as writeFileSync19, writeSync as writeSync3 } from "fs";
|
|
628225
628340
|
import { join as join159 } from "path";
|
|
628226
628341
|
function linkedChatId() {
|
|
628227
628342
|
return readTelegramConfig().linkedChatId;
|
|
@@ -628518,7 +628633,7 @@ function acquireBridgeLock() {
|
|
|
628518
628633
|
function updateHeartbeat() {
|
|
628519
628634
|
try {
|
|
628520
628635
|
const path28 = lockFilePath();
|
|
628521
|
-
if (!
|
|
628636
|
+
if (!existsSync30(path28))
|
|
628522
628637
|
return;
|
|
628523
628638
|
const raw = readFileSync30(path28, "utf8").trim();
|
|
628524
628639
|
const pid = parseInt(raw.split(":")[0] ?? "", 10);
|
|
@@ -628530,7 +628645,7 @@ function updateHeartbeat() {
|
|
|
628530
628645
|
function releaseBridgeLock() {
|
|
628531
628646
|
try {
|
|
628532
628647
|
const path28 = lockFilePath();
|
|
628533
|
-
if (
|
|
628648
|
+
if (existsSync30(path28)) {
|
|
628534
628649
|
const raw = readFileSync30(path28, "utf8").trim();
|
|
628535
628650
|
const pid = parseInt(raw.split(":")[0] ?? "", 10);
|
|
628536
628651
|
if (pid === process.pid)
|
|
@@ -643675,7 +643790,7 @@ var init_useVoiceEnabled = __esm(() => {
|
|
|
643675
643790
|
function getSemverPart(version3) {
|
|
643676
643791
|
return `${import_semver12.major(version3, { loose: true })}.${import_semver12.minor(version3, { loose: true })}.${import_semver12.patch(version3, { loose: true })}`;
|
|
643677
643792
|
}
|
|
643678
|
-
function useUpdateNotification(updatedVersion, initialVersion = "1.3.
|
|
643793
|
+
function useUpdateNotification(updatedVersion, initialVersion = "1.3.464") {
|
|
643679
643794
|
const [lastNotifiedSemver, setLastNotifiedSemver] = import_react217.useState(() => getSemverPart(initialVersion));
|
|
643680
643795
|
if (!updatedVersion) {
|
|
643681
643796
|
return null;
|
|
@@ -643715,7 +643830,7 @@ function AutoUpdater({
|
|
|
643715
643830
|
return;
|
|
643716
643831
|
}
|
|
643717
643832
|
if (false) {}
|
|
643718
|
-
const currentVersion = "1.3.
|
|
643833
|
+
const currentVersion = "1.3.464";
|
|
643719
643834
|
const channel2 = getInitialSettings()?.autoUpdatesChannel ?? "latest";
|
|
643720
643835
|
let latestVersion = await getLatestVersion(channel2);
|
|
643721
643836
|
const isDisabled = isAutoUpdaterDisabled();
|
|
@@ -643928,12 +644043,12 @@ function NativeAutoUpdater({
|
|
|
643928
644043
|
logEvent("tengu_native_auto_updater_start", {});
|
|
643929
644044
|
try {
|
|
643930
644045
|
const maxVersion = await getMaxVersion();
|
|
643931
|
-
if (maxVersion && gt("1.3.
|
|
644046
|
+
if (maxVersion && gt("1.3.464", maxVersion)) {
|
|
643932
644047
|
const msg = await getMaxVersionMessage();
|
|
643933
644048
|
setMaxVersionIssue(msg ?? "affects your version");
|
|
643934
644049
|
}
|
|
643935
644050
|
const result = await installLatest(channel2);
|
|
643936
|
-
const currentVersion = "1.3.
|
|
644051
|
+
const currentVersion = "1.3.464";
|
|
643937
644052
|
const latencyMs = Date.now() - startTime2;
|
|
643938
644053
|
if (result.lockFailed) {
|
|
643939
644054
|
logEvent("tengu_native_auto_updater_lock_contention", {
|
|
@@ -644070,17 +644185,17 @@ function PackageManagerAutoUpdater(t0) {
|
|
|
644070
644185
|
const maxVersion = await getMaxVersion();
|
|
644071
644186
|
if (maxVersion && latest && gt(latest, maxVersion)) {
|
|
644072
644187
|
logForDebugging(`PackageManagerAutoUpdater: maxVersion ${maxVersion} is set, capping update from ${latest} to ${maxVersion}`);
|
|
644073
|
-
if (gte("1.3.
|
|
644074
|
-
logForDebugging(`PackageManagerAutoUpdater: current version ${"1.3.
|
|
644188
|
+
if (gte("1.3.464", maxVersion)) {
|
|
644189
|
+
logForDebugging(`PackageManagerAutoUpdater: current version ${"1.3.464"} is already at or above maxVersion ${maxVersion}, skipping update`);
|
|
644075
644190
|
setUpdateAvailable(false);
|
|
644076
644191
|
return;
|
|
644077
644192
|
}
|
|
644078
644193
|
latest = maxVersion;
|
|
644079
644194
|
}
|
|
644080
|
-
const hasUpdate = latest && !gte("1.3.
|
|
644195
|
+
const hasUpdate = latest && !gte("1.3.464", latest) && !shouldSkipVersion(latest);
|
|
644081
644196
|
setUpdateAvailable(!!hasUpdate);
|
|
644082
644197
|
if (hasUpdate) {
|
|
644083
|
-
logForDebugging(`PackageManagerAutoUpdater: Update available ${"1.3.
|
|
644198
|
+
logForDebugging(`PackageManagerAutoUpdater: Update available ${"1.3.464"} -> ${latest}`);
|
|
644084
644199
|
}
|
|
644085
644200
|
};
|
|
644086
644201
|
$3[0] = t1;
|
|
@@ -644114,7 +644229,7 @@ function PackageManagerAutoUpdater(t0) {
|
|
|
644114
644229
|
wrap: "truncate",
|
|
644115
644230
|
children: [
|
|
644116
644231
|
"currentVersion: ",
|
|
644117
|
-
"1.3.
|
|
644232
|
+
"1.3.464"
|
|
644118
644233
|
]
|
|
644119
644234
|
});
|
|
644120
644235
|
$3[3] = verbose;
|
|
@@ -652279,7 +652394,7 @@ function buildStatusLineCommandInput(permissionMode, exceeds200kTokens, settings
|
|
|
652279
652394
|
project_dir: getOriginalCwd(),
|
|
652280
652395
|
added_dirs: addedDirs
|
|
652281
652396
|
},
|
|
652282
|
-
version: "1.3.
|
|
652397
|
+
version: "1.3.464",
|
|
652283
652398
|
output_style: {
|
|
652284
652399
|
name: outputStyleName
|
|
652285
652400
|
},
|
|
@@ -663777,7 +663892,7 @@ async function submitTranscriptShare(messages, trigger, appearanceId) {
|
|
|
663777
663892
|
} catch {}
|
|
663778
663893
|
const data = {
|
|
663779
663894
|
trigger,
|
|
663780
|
-
version: "1.3.
|
|
663895
|
+
version: "1.3.464",
|
|
663781
663896
|
platform: process.platform,
|
|
663782
663897
|
transcript,
|
|
663783
663898
|
subagentTranscripts: Object.keys(subagentTranscripts).length > 0 ? subagentTranscripts : undefined,
|
|
@@ -675964,7 +676079,7 @@ function WelcomeV2() {
|
|
|
675964
676079
|
dimColor: true,
|
|
675965
676080
|
children: [
|
|
675966
676081
|
"v",
|
|
675967
|
-
"1.3.
|
|
676082
|
+
"1.3.464"
|
|
675968
676083
|
]
|
|
675969
676084
|
})
|
|
675970
676085
|
]
|
|
@@ -677698,7 +677813,7 @@ function completeOnboarding() {
|
|
|
677698
677813
|
saveGlobalConfig((current) => ({
|
|
677699
677814
|
...current,
|
|
677700
677815
|
hasCompletedOnboarding: true,
|
|
677701
|
-
lastOnboardingVersion: "1.3.
|
|
677816
|
+
lastOnboardingVersion: "1.3.464"
|
|
677702
677817
|
}));
|
|
677703
677818
|
}
|
|
677704
677819
|
function showDialog(root2, renderer) {
|
|
@@ -682648,7 +682763,7 @@ function appendToLog(path30, message) {
|
|
|
682648
682763
|
cwd: getFsImplementation().cwd(),
|
|
682649
682764
|
userType: "external",
|
|
682650
682765
|
sessionId: getSessionId(),
|
|
682651
|
-
version: "1.3.
|
|
682766
|
+
version: "1.3.464"
|
|
682652
682767
|
};
|
|
682653
682768
|
getLogWriter(path30).write(messageWithTimestamp);
|
|
682654
682769
|
}
|
|
@@ -686756,8 +686871,8 @@ async function getEnvLessBridgeConfig() {
|
|
|
686756
686871
|
}
|
|
686757
686872
|
async function checkEnvLessBridgeMinVersion() {
|
|
686758
686873
|
const cfg = await getEnvLessBridgeConfig();
|
|
686759
|
-
if (cfg.min_version && lt("1.3.
|
|
686760
|
-
return `Your version of RAYU (${"1.3.
|
|
686874
|
+
if (cfg.min_version && lt("1.3.464", cfg.min_version)) {
|
|
686875
|
+
return `Your version of RAYU (${"1.3.464"}) is too old for Remote Control.
|
|
686761
686876
|
Version ${cfg.min_version} or higher is required. Run \`claude update\` to update.`;
|
|
686762
686877
|
}
|
|
686763
686878
|
return null;
|
|
@@ -687231,7 +687346,7 @@ async function initBridgeCore(params) {
|
|
|
687231
687346
|
const rawApi = createBridgeApiClient({
|
|
687232
687347
|
baseUrl,
|
|
687233
687348
|
getAccessToken,
|
|
687234
|
-
runnerVersion: "1.3.
|
|
687349
|
+
runnerVersion: "1.3.464",
|
|
687235
687350
|
onDebug: logForDebugging,
|
|
687236
687351
|
onAuth401,
|
|
687237
687352
|
getTrustedDeviceToken
|
|
@@ -692593,7 +692708,7 @@ async function startMCPServer(cwd3, debug4, verbose) {
|
|
|
692593
692708
|
setCwd(cwd3);
|
|
692594
692709
|
const server = new Server({
|
|
692595
692710
|
name: "claude/tengu",
|
|
692596
|
-
version: "1.3.
|
|
692711
|
+
version: "1.3.464"
|
|
692597
692712
|
}, {
|
|
692598
692713
|
capabilities: {
|
|
692599
692714
|
tools: {}
|
|
@@ -695119,7 +695234,7 @@ ${customInstructions}` : customInstructions;
|
|
|
695119
695234
|
}
|
|
695120
695235
|
}
|
|
695121
695236
|
logForDiagnosticsNoPII("info", "started", {
|
|
695122
|
-
version: "1.3.
|
|
695237
|
+
version: "1.3.464",
|
|
695123
695238
|
is_native_binary: isInBundledMode()
|
|
695124
695239
|
});
|
|
695125
695240
|
registerCleanup(async () => {
|
|
@@ -695838,7 +695953,7 @@ Usage: rayu --remote "your task description"`, () => gracefulShutdown(1));
|
|
|
695838
695953
|
pendingHookMessages
|
|
695839
695954
|
}, renderAndRun);
|
|
695840
695955
|
}
|
|
695841
|
-
}).version("1.3.
|
|
695956
|
+
}).version("1.3.464 (Rayu-CLI)", "-v, --version", "Output the version number");
|
|
695842
695957
|
program.option("-w, --worktree [name]", "Create a new git worktree for this session (optionally specify a name)");
|
|
695843
695958
|
program.option("--tmux", "Create a tmux session for the worktree (requires --worktree). Uses iTerm2 native panes when available; use --tmux=classic for traditional tmux.");
|
|
695844
695959
|
if (canUserConfigureAdvisor()) {
|
|
@@ -696300,7 +696415,7 @@ if (false) {}
|
|
|
696300
696415
|
async function main2() {
|
|
696301
696416
|
const args = process.argv.slice(2);
|
|
696302
696417
|
if (args.length === 1 && (args[0] === "--version" || args[0] === "-v" || args[0] === "-V")) {
|
|
696303
|
-
console.log(`${"1.3.
|
|
696418
|
+
console.log(`${"1.3.464"} (Rayu-CLI)`);
|
|
696304
696419
|
return;
|
|
696305
696420
|
}
|
|
696306
696421
|
if (!isEnvTruthy(process.env.CLAUDE_CODE_DISABLE_TERMINAL_TITLE)) {
|
|
@@ -696366,14 +696481,14 @@ async function main2() {
|
|
|
696366
696481
|
if (args.length === 1 && (args[0] === "--update" || args[0] === "--upgrade")) {
|
|
696367
696482
|
process.argv = [process.argv[0], process.argv[1], "update"];
|
|
696368
696483
|
}
|
|
696369
|
-
if (args
|
|
696484
|
+
if (args[0] === "update" || args[0] === "upgrade") {
|
|
696370
696485
|
const { update: update2 } = await Promise.resolve().then(() => (init_update(), exports_update));
|
|
696371
696486
|
await update2();
|
|
696372
696487
|
return;
|
|
696373
696488
|
}
|
|
696374
|
-
if (args
|
|
696489
|
+
if (args[0] === "uninstall" || args[0] === "remove") {
|
|
696375
696490
|
const { uninstall: uninstall2 } = await Promise.resolve().then(() => (init_uninstall(), exports_uninstall));
|
|
696376
|
-
await uninstall2();
|
|
696491
|
+
await uninstall2(args.slice(1));
|
|
696377
696492
|
return;
|
|
696378
696493
|
}
|
|
696379
696494
|
if (args.includes("--bare")) {
|