@rayu-dev/rayu-cli 2.0.13 → 2.0.14
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 +80 -80
- package/package.json +1 -1
package/dist/rayu.js
CHANGED
|
@@ -138525,7 +138525,7 @@ var init_isEqual = __esm(() => {
|
|
|
138525
138525
|
|
|
138526
138526
|
// src/utils/userAgent.ts
|
|
138527
138527
|
function getRayuUserAgent() {
|
|
138528
|
-
return `rayu/${"2.0.
|
|
138528
|
+
return `rayu/${"2.0.14"}`;
|
|
138529
138529
|
}
|
|
138530
138530
|
var getClaudeCodeUserAgent;
|
|
138531
138531
|
var init_userAgent = __esm(() => {
|
|
@@ -138551,7 +138551,7 @@ function getUserAgent() {
|
|
|
138551
138551
|
const clientApp = process.env.RAYU_AGENT_SDK_CLIENT_APP ? `, client-app/${process.env.RAYU_AGENT_SDK_CLIENT_APP}` : "";
|
|
138552
138552
|
const workload = getWorkload();
|
|
138553
138553
|
const workloadSuffix = workload ? `, workload/${workload}` : "";
|
|
138554
|
-
return `rayu/${"2.0.
|
|
138554
|
+
return `rayu/${"2.0.14"} (${"external"}, ${process.env.RAYU_ENTRYPOINT ?? "cli"}${agentSdkVersion}${clientApp}${workloadSuffix})`;
|
|
138555
138555
|
}
|
|
138556
138556
|
function getMCPUserAgent() {
|
|
138557
138557
|
const parts = [];
|
|
@@ -138565,7 +138565,7 @@ function getMCPUserAgent() {
|
|
|
138565
138565
|
parts.push(`client-app/${process.env.RAYU_AGENT_SDK_CLIENT_APP}`);
|
|
138566
138566
|
}
|
|
138567
138567
|
const suffix = parts.length > 0 ? ` (${parts.join(", ")})` : "";
|
|
138568
|
-
return `rayu/${"2.0.
|
|
138568
|
+
return `rayu/${"2.0.14"}${suffix}`;
|
|
138569
138569
|
}
|
|
138570
138570
|
function getWebFetchUserAgent() {
|
|
138571
138571
|
return `Rayu-User (${getRayuUserAgent()})`;
|
|
@@ -149512,7 +149512,7 @@ var init_metadata = __esm(() => {
|
|
|
149512
149512
|
COMPOUND_OPERATOR_REGEX = /\s*(?:&&|\|\||[;|])\s*/;
|
|
149513
149513
|
WHITESPACE_REGEX = /\s+/;
|
|
149514
149514
|
getVersionBase = memoize_default(() => {
|
|
149515
|
-
const match = "2.0.
|
|
149515
|
+
const match = "2.0.14".match(/^\d+\.\d+\.\d+(?:-[a-z]+)?/);
|
|
149516
149516
|
return match ? match[0] : undefined;
|
|
149517
149517
|
});
|
|
149518
149518
|
buildEnvContext = memoize_default(async () => {
|
|
@@ -149551,7 +149551,7 @@ var init_metadata = __esm(() => {
|
|
|
149551
149551
|
},
|
|
149552
149552
|
isGithubAction: isEnvTruthy(process.env.GITHUB_ACTIONS),
|
|
149553
149553
|
isRayuAction: isEnvTruthy(process.env.RAYU_ACTION),
|
|
149554
|
-
version: "2.0.
|
|
149554
|
+
version: "2.0.14",
|
|
149555
149555
|
versionBase: getVersionBase(),
|
|
149556
149556
|
buildTime: "",
|
|
149557
149557
|
deploymentEnvironment: env4.detectDeploymentEnvironment(),
|
|
@@ -156945,7 +156945,7 @@ function getAttributionHeader(fingerprint2) {
|
|
|
156945
156945
|
if (!isAttributionHeaderEnabled()) {
|
|
156946
156946
|
return "";
|
|
156947
156947
|
}
|
|
156948
|
-
const version2 = `${"2.0.
|
|
156948
|
+
const version2 = `${"2.0.14"}.${fingerprint2}`;
|
|
156949
156949
|
const entrypoint = process.env.CLAUDE_CODE_ENTRYPOINT ?? "unknown";
|
|
156950
156950
|
const cch = "";
|
|
156951
156951
|
const workload = getWorkload();
|
|
@@ -318369,7 +318369,7 @@ function getTelemetryAttributes() {
|
|
|
318369
318369
|
attributes["session.id"] = sessionId;
|
|
318370
318370
|
}
|
|
318371
318371
|
if (shouldIncludeAttribute("OTEL_METRICS_INCLUDE_VERSION")) {
|
|
318372
|
-
attributes["app.version"] = "2.0.
|
|
318372
|
+
attributes["app.version"] = "2.0.14";
|
|
318373
318373
|
}
|
|
318374
318374
|
const oauthAccount = getOauthAccountInfo();
|
|
318375
318375
|
if (oauthAccount) {
|
|
@@ -361516,7 +361516,7 @@ function getInstallationEnv() {
|
|
|
361516
361516
|
return;
|
|
361517
361517
|
}
|
|
361518
361518
|
function getClaudeCodeVersion() {
|
|
361519
|
-
return "2.0.
|
|
361519
|
+
return "2.0.14";
|
|
361520
361520
|
}
|
|
361521
361521
|
async function getInstalledVSCodeExtensionVersion(command) {
|
|
361522
361522
|
const { stdout } = await execFileNoThrow(command, ["--list-extensions", "--show-versions"], {
|
|
@@ -364479,7 +364479,7 @@ function computeFingerprint(messageText, version2) {
|
|
|
364479
364479
|
}
|
|
364480
364480
|
function computeFingerprintFromMessages(messages) {
|
|
364481
364481
|
const firstMessageText = extractFirstMessageText(messages);
|
|
364482
|
-
return computeFingerprint(firstMessageText, "2.0.
|
|
364482
|
+
return computeFingerprint(firstMessageText, "2.0.14");
|
|
364483
364483
|
}
|
|
364484
364484
|
var FINGERPRINT_SALT = "59cf53e54c78";
|
|
364485
364485
|
var init_fingerprint = () => {};
|
|
@@ -364521,7 +364521,7 @@ async function sideQuery(opts) {
|
|
|
364521
364521
|
betas.push(STRUCTURED_OUTPUTS_BETA_HEADER);
|
|
364522
364522
|
}
|
|
364523
364523
|
const messageText = extractFirstUserMessageText(messages);
|
|
364524
|
-
const fingerprint2 = computeFingerprint(messageText, "2.0.
|
|
364524
|
+
const fingerprint2 = computeFingerprint(messageText, "2.0.14");
|
|
364525
364525
|
const attributionHeader = getAttributionHeader(fingerprint2);
|
|
364526
364526
|
const systemBlocks = [
|
|
364527
364527
|
attributionHeader ? { type: "text", text: attributionHeader } : null,
|
|
@@ -401511,7 +401511,7 @@ async function setupSdkMcpClients(sdkMcpConfigs, sendMcpMessage) {
|
|
|
401511
401511
|
const client = new Client({
|
|
401512
401512
|
name: "claude-code",
|
|
401513
401513
|
title: "RAYU",
|
|
401514
|
-
version: "2.0.
|
|
401514
|
+
version: "2.0.14",
|
|
401515
401515
|
description: "Anthropic's agentic coding tool",
|
|
401516
401516
|
websiteUrl: PRODUCT_URL
|
|
401517
401517
|
}, {
|
|
@@ -401828,7 +401828,7 @@ var init_client5 = __esm(() => {
|
|
|
401828
401828
|
const client = new Client({
|
|
401829
401829
|
name: "claude-code",
|
|
401830
401830
|
title: "RAYU",
|
|
401831
|
-
version: "2.0.
|
|
401831
|
+
version: "2.0.14",
|
|
401832
401832
|
description: "Anthropic's agentic coding tool",
|
|
401833
401833
|
websiteUrl: PRODUCT_URL
|
|
401834
401834
|
}, {
|
|
@@ -462025,7 +462025,7 @@ async function handshake(peer) {
|
|
|
462025
462025
|
clientInfo: {
|
|
462026
462026
|
name: "rayu_cli",
|
|
462027
462027
|
title: "RAYU CLI",
|
|
462028
|
-
version: typeof MACRO !== "undefined" ? "2.0.
|
|
462028
|
+
version: typeof MACRO !== "undefined" ? "2.0.14" : "0.0.0"
|
|
462029
462029
|
},
|
|
462030
462030
|
capabilities: { experimentalApi: false }
|
|
462031
462031
|
};
|
|
@@ -493374,9 +493374,9 @@ async function assertMinVersion() {
|
|
|
493374
493374
|
if (false) {}
|
|
493375
493375
|
try {
|
|
493376
493376
|
const versionConfig = await getDynamicConfig_BLOCKS_ON_INIT("tengu_version_config", { minVersion: "0.0.0" });
|
|
493377
|
-
if (versionConfig.minVersion && lt("2.0.
|
|
493377
|
+
if (versionConfig.minVersion && lt("2.0.14", versionConfig.minVersion)) {
|
|
493378
493378
|
console.error(`
|
|
493379
|
-
It looks like your version of RAYU (${"2.0.
|
|
493379
|
+
It looks like your version of RAYU (${"2.0.14"}) needs an update.
|
|
493380
493380
|
A newer version (${versionConfig.minVersion} or higher) is required to continue.
|
|
493381
493381
|
|
|
493382
493382
|
To update, please run:
|
|
@@ -493540,7 +493540,7 @@ async function installGlobalPackage(specificVersion) {
|
|
|
493540
493540
|
logError2(new AutoUpdaterError("Another process is currently installing an update"));
|
|
493541
493541
|
logEvent("tengu_auto_updater_lock_contention", {
|
|
493542
493542
|
pid: process.pid,
|
|
493543
|
-
currentVersion: "2.0.
|
|
493543
|
+
currentVersion: "2.0.14"
|
|
493544
493544
|
});
|
|
493545
493545
|
return "in_progress";
|
|
493546
493546
|
}
|
|
@@ -493549,7 +493549,7 @@ async function installGlobalPackage(specificVersion) {
|
|
|
493549
493549
|
if (!env4.isRunningWithBun() && env4.isNpmFromWindowsPath()) {
|
|
493550
493550
|
logError2(new Error("Windows NPM detected in WSL environment"));
|
|
493551
493551
|
logEvent("tengu_auto_updater_windows_npm_in_wsl", {
|
|
493552
|
-
currentVersion: "2.0.
|
|
493552
|
+
currentVersion: "2.0.14"
|
|
493553
493553
|
});
|
|
493554
493554
|
console.error(`
|
|
493555
493555
|
Error: Windows NPM detected in WSL
|
|
@@ -494198,7 +494198,7 @@ function detectLinuxGlobPatternWarnings() {
|
|
|
494198
494198
|
}
|
|
494199
494199
|
async function getDoctorDiagnostic() {
|
|
494200
494200
|
const installationType = await getCurrentInstallationType();
|
|
494201
|
-
const version2 = typeof MACRO !== "undefined" ? "2.0.
|
|
494201
|
+
const version2 = typeof MACRO !== "undefined" ? "2.0.14" : "unknown";
|
|
494202
494202
|
const installationPath = await getInstallationPath();
|
|
494203
494203
|
const invokedBinary = getInvokedBinary();
|
|
494204
494204
|
const multipleInstallations = await detectMultipleInstallations();
|
|
@@ -494994,8 +494994,8 @@ async function updateLatest(channelOrVersion, forceReinstall = false) {
|
|
|
494994
494994
|
const maxVersion = await getMaxVersion();
|
|
494995
494995
|
if (maxVersion && gt(version2, maxVersion)) {
|
|
494996
494996
|
logForDebugging(`Native installer: maxVersion ${maxVersion} is set, capping update from ${version2} to ${maxVersion}`);
|
|
494997
|
-
if (gte("2.0.
|
|
494998
|
-
logForDebugging(`Native installer: current version ${"2.0.
|
|
494997
|
+
if (gte("2.0.14", maxVersion)) {
|
|
494998
|
+
logForDebugging(`Native installer: current version ${"2.0.14"} is already at or above maxVersion ${maxVersion}, skipping update`);
|
|
494999
494999
|
logEvent("tengu_native_update_skipped_max_version", {
|
|
495000
495000
|
latency_ms: Date.now() - startTime2,
|
|
495001
495001
|
max_version: maxVersion,
|
|
@@ -495006,7 +495006,7 @@ async function updateLatest(channelOrVersion, forceReinstall = false) {
|
|
|
495006
495006
|
version2 = maxVersion;
|
|
495007
495007
|
}
|
|
495008
495008
|
}
|
|
495009
|
-
if (!forceReinstall && version2 === "2.0.
|
|
495009
|
+
if (!forceReinstall && version2 === "2.0.14" && await versionIsAvailable(version2) && await isPossibleClaudeBinary(executablePath)) {
|
|
495010
495010
|
logForDebugging(`Found ${version2} at ${executablePath}, skipping install`);
|
|
495011
495011
|
logEvent("tengu_native_update_complete", {
|
|
495012
495012
|
latency_ms: Date.now() - startTime2,
|
|
@@ -496214,7 +496214,7 @@ function buildPrimarySection() {
|
|
|
496214
496214
|
});
|
|
496215
496215
|
return [{
|
|
496216
496216
|
label: "Version",
|
|
496217
|
-
value: "2.0.
|
|
496217
|
+
value: "2.0.14"
|
|
496218
496218
|
}, {
|
|
496219
496219
|
label: "Session name",
|
|
496220
496220
|
value: nameValue
|
|
@@ -499897,7 +499897,7 @@ function Config({
|
|
|
499897
499897
|
}
|
|
499898
499898
|
})
|
|
499899
499899
|
}) : showSubmenu === "ChannelDowngrade" ? /* @__PURE__ */ jsx_runtime168.jsx(ChannelDowngradeDialog, {
|
|
499900
|
-
currentVersion: "2.0.
|
|
499900
|
+
currentVersion: "2.0.14",
|
|
499901
499901
|
onChoice: (choice) => {
|
|
499902
499902
|
setShowSubmenu(null);
|
|
499903
499903
|
setTabsHidden(false);
|
|
@@ -499909,7 +499909,7 @@ function Config({
|
|
|
499909
499909
|
autoUpdatesChannel: "stable"
|
|
499910
499910
|
};
|
|
499911
499911
|
if (choice === "stay") {
|
|
499912
|
-
newSettings.minimumVersion = "2.0.
|
|
499912
|
+
newSettings.minimumVersion = "2.0.14";
|
|
499913
499913
|
}
|
|
499914
499914
|
updateSettingsForSource("userSettings", newSettings);
|
|
499915
499915
|
setSettingsData((prev_27) => ({
|
|
@@ -507970,7 +507970,7 @@ function HelpV2(t0) {
|
|
|
507970
507970
|
let t6;
|
|
507971
507971
|
if ($3[31] !== tabs) {
|
|
507972
507972
|
t6 = /* @__PURE__ */ jsx_runtime195.jsx(Tabs, {
|
|
507973
|
-
title: `Rayu-CLI v${"2.0.
|
|
507973
|
+
title: `Rayu-CLI v${"2.0.14"}`,
|
|
507974
507974
|
color: "professionalBlue",
|
|
507975
507975
|
defaultTab: "general",
|
|
507976
507976
|
children: tabs
|
|
@@ -529358,7 +529358,7 @@ function getRecentReleaseNotes(currentVersion, previousVersion, changelogContent
|
|
|
529358
529358
|
}
|
|
529359
529359
|
return [];
|
|
529360
529360
|
}
|
|
529361
|
-
async function checkForReleaseNotes(lastSeenVersion, currentVersion = "2.0.
|
|
529361
|
+
async function checkForReleaseNotes(lastSeenVersion, currentVersion = "2.0.14") {
|
|
529362
529362
|
if (false) {}
|
|
529363
529363
|
const cachedChangelog = await getStoredChangelog();
|
|
529364
529364
|
if (lastSeenVersion !== currentVersion || !cachedChangelog) {
|
|
@@ -529371,7 +529371,7 @@ async function checkForReleaseNotes(lastSeenVersion, currentVersion = "2.0.13")
|
|
|
529371
529371
|
releaseNotes
|
|
529372
529372
|
};
|
|
529373
529373
|
}
|
|
529374
|
-
function checkForReleaseNotesSync(lastSeenVersion, currentVersion = "2.0.
|
|
529374
|
+
function checkForReleaseNotesSync(lastSeenVersion, currentVersion = "2.0.14") {
|
|
529375
529375
|
if (false) {}
|
|
529376
529376
|
const releaseNotes = getRecentReleaseNotes(currentVersion, lastSeenVersion);
|
|
529377
529377
|
return {
|
|
@@ -529499,7 +529499,7 @@ function getRecentActivitySync() {
|
|
|
529499
529499
|
return cachedActivity;
|
|
529500
529500
|
}
|
|
529501
529501
|
function getLogoDisplayData() {
|
|
529502
|
-
const version2 = process.env.DEMO_VERSION ?? "2.0.
|
|
529502
|
+
const version2 = process.env.DEMO_VERSION ?? "2.0.14";
|
|
529503
529503
|
const serverUrl = getDirectConnectServerUrl();
|
|
529504
529504
|
const displayPath = process.env.DEMO_VERSION ? "/code/claude" : getDisplayPath(getCwd());
|
|
529505
529505
|
const cwd2 = serverUrl ? `${displayPath} in ${serverUrl.replace(/^https?:\/\//, "")}` : displayPath;
|
|
@@ -530711,7 +530711,7 @@ function LogoV2() {
|
|
|
530711
530711
|
if ($3[2] === Symbol.for("react.memo_cache_sentinel")) {
|
|
530712
530712
|
t2 = () => {
|
|
530713
530713
|
const currentConfig = getGlobalConfig();
|
|
530714
|
-
if (currentConfig.lastReleaseNotesSeen === "2.0.
|
|
530714
|
+
if (currentConfig.lastReleaseNotesSeen === "2.0.14") {
|
|
530715
530715
|
return;
|
|
530716
530716
|
}
|
|
530717
530717
|
saveGlobalConfig(_temp327);
|
|
@@ -531190,7 +531190,7 @@ function LogoV2() {
|
|
|
531190
531190
|
t24 = $3[61];
|
|
531191
531191
|
}
|
|
531192
531192
|
const _latestNpm = getCachedLatestNpmVersionSync();
|
|
531193
|
-
const _updateFeeds = _latestNpm && gt(_latestNpm, "2.0.
|
|
531193
|
+
const _updateFeeds = _latestNpm && gt(_latestNpm, "2.0.14") ? [createUpdateAvailableFeed("2.0.14", _latestNpm)] : [];
|
|
531194
531194
|
const t25 = layoutMode === "horizontal" && /* @__PURE__ */ jsx_runtime237.jsx(FeedColumn, {
|
|
531195
531195
|
feeds: showOnboarding ? [createProjectOnboardingFeed(getSteps()), createRecentActivityFeed(activities)] : showGuestPassesUpsell ? [createRecentActivityFeed(activities), createGuestPassesFeed()] : showOverageCreditUpsell ? [createRecentActivityFeed(activities), createOverageCreditFeed()] : [createRecentActivityFeed(activities), ..._updateFeeds, createWhatsNewFeed(changelog)],
|
|
531196
531196
|
maxWidth: rightWidth
|
|
@@ -531390,12 +531390,12 @@ function LogoV2() {
|
|
|
531390
531390
|
return t41;
|
|
531391
531391
|
}
|
|
531392
531392
|
function _temp327(current) {
|
|
531393
|
-
if (current.lastReleaseNotesSeen === "2.0.
|
|
531393
|
+
if (current.lastReleaseNotesSeen === "2.0.14") {
|
|
531394
531394
|
return current;
|
|
531395
531395
|
}
|
|
531396
531396
|
return {
|
|
531397
531397
|
...current,
|
|
531398
|
-
lastReleaseNotesSeen: "2.0.
|
|
531398
|
+
lastReleaseNotesSeen: "2.0.14"
|
|
531399
531399
|
};
|
|
531400
531400
|
}
|
|
531401
531401
|
function _temp241(s_0) {
|
|
@@ -557435,7 +557435,7 @@ function createRayuMcpServer(options) {
|
|
|
557435
557435
|
commandsPromise ??= getCommands(options.cwd);
|
|
557436
557436
|
return commandsPromise;
|
|
557437
557437
|
};
|
|
557438
|
-
const server = new Server({ name: RAYU_MCP_SERVER_NAME, version: "2.0.
|
|
557438
|
+
const server = new Server({ name: RAYU_MCP_SERVER_NAME, version: "2.0.14" }, { capabilities: { tools: {}, prompts: {} } });
|
|
557439
557439
|
server.setRequestHandler(ListToolsRequestSchema, async () => {
|
|
557440
557440
|
const toolPermissionContext = getEmptyToolPermissionContext();
|
|
557441
557441
|
const allTools = getTools(toolPermissionContext);
|
|
@@ -557535,7 +557535,7 @@ async function pingRayuMcpServer(cwd2) {
|
|
|
557535
557535
|
const server = createRayuMcpServer2({ cwd: cwd2, debug: false, verbose: false });
|
|
557536
557536
|
const [clientTransport, serverTransport] = createLinkedTransportPair();
|
|
557537
557537
|
await server.connect(serverTransport);
|
|
557538
|
-
client = new Client({ name: `${RAYU_MCP_SERVER_NAME}-healthcheck`, version: "2.0.
|
|
557538
|
+
client = new Client({ name: `${RAYU_MCP_SERVER_NAME}-healthcheck`, version: "2.0.14" });
|
|
557539
557539
|
await client.connect(clientTransport);
|
|
557540
557540
|
const tools = await client.listTools();
|
|
557541
557541
|
let promptCount = 0;
|
|
@@ -558239,7 +558239,7 @@ async function captureMemoryDiagnostics(trigger, dumpNumber = 0) {
|
|
|
558239
558239
|
smapsRollup,
|
|
558240
558240
|
platform: process.platform,
|
|
558241
558241
|
nodeVersion: process.version,
|
|
558242
|
-
ccVersion: "2.0.
|
|
558242
|
+
ccVersion: "2.0.14"
|
|
558243
558243
|
};
|
|
558244
558244
|
}
|
|
558245
558245
|
async function performHeapDump(trigger = "manual", dumpNumber = 0) {
|
|
@@ -558761,7 +558761,7 @@ var init_bridge_kick = __esm(() => {
|
|
|
558761
558761
|
var call54 = async () => {
|
|
558762
558762
|
return {
|
|
558763
558763
|
type: "text",
|
|
558764
|
-
value: "2.0.
|
|
558764
|
+
value: "2.0.14"
|
|
558765
558765
|
};
|
|
558766
558766
|
}, version2, version_default;
|
|
558767
558767
|
var init_version = __esm(() => {
|
|
@@ -566949,7 +566949,7 @@ var init_user = __esm(() => {
|
|
|
566949
566949
|
deviceId,
|
|
566950
566950
|
sessionId: getSessionId(),
|
|
566951
566951
|
email: getEmail(),
|
|
566952
|
-
appVersion: "2.0.
|
|
566952
|
+
appVersion: "2.0.14",
|
|
566953
566953
|
platform: getHostPlatformForAnalytics(),
|
|
566954
566954
|
organizationUuid,
|
|
566955
566955
|
accountUuid,
|
|
@@ -575652,7 +575652,7 @@ function generateHtmlReport(data, insights) {
|
|
|
575652
575652
|
</html>`;
|
|
575653
575653
|
}
|
|
575654
575654
|
function buildExportData(data, insights, facets, remoteStats) {
|
|
575655
|
-
const version3 = typeof MACRO !== "undefined" ? "2.0.
|
|
575655
|
+
const version3 = typeof MACRO !== "undefined" ? "2.0.14" : "unknown";
|
|
575656
575656
|
const remote_hosts_collected = remoteStats?.hosts.filter((h3) => h3.sessionCount > 0).map((h3) => h3.name);
|
|
575657
575657
|
const facets_summary = {
|
|
575658
575658
|
total: facets.size,
|
|
@@ -579586,7 +579586,7 @@ var init_sessionStorage = __esm(() => {
|
|
|
579586
579586
|
init_settings2();
|
|
579587
579587
|
init_slowOperations();
|
|
579588
579588
|
init_uuid();
|
|
579589
|
-
VERSION5 = typeof MACRO !== "undefined" ? "2.0.
|
|
579589
|
+
VERSION5 = typeof MACRO !== "undefined" ? "2.0.14" : "unknown";
|
|
579590
579590
|
MAX_TOMBSTONE_REWRITE_BYTES = 50 * 1024 * 1024;
|
|
579591
579591
|
SKIP_FIRST_PROMPT_PATTERN = /^(?:\s*<[a-z][\w-]*[\s>]|\[Request interrupted by user[^\]]*\])/;
|
|
579592
579592
|
EPHEMERAL_PROGRESS_TYPES = new Set([
|
|
@@ -580804,7 +580804,7 @@ var init_filesystem = __esm(() => {
|
|
|
580804
580804
|
});
|
|
580805
580805
|
getBundledSkillsRoot = memoize_default(function getBundledSkillsRoot2() {
|
|
580806
580806
|
const nonce = randomBytes20(16).toString("hex");
|
|
580807
|
-
return join156(getClaudeTempDir(), "bundled-skills", "2.0.
|
|
580807
|
+
return join156(getClaudeTempDir(), "bundled-skills", "2.0.14", nonce);
|
|
580808
580808
|
});
|
|
580809
580809
|
getResolvedWorkingDirPaths = memoize_default(getPathsForPermissionCheck);
|
|
580810
580810
|
});
|
|
@@ -603225,7 +603225,7 @@ __export(exports_update, {
|
|
|
603225
603225
|
});
|
|
603226
603226
|
import { spawnSync as spawnSync10 } from "child_process";
|
|
603227
603227
|
async function update() {
|
|
603228
|
-
writeToStdout(`Current version: ${"2.0.
|
|
603228
|
+
writeToStdout(`Current version: ${"2.0.14"}
|
|
603229
603229
|
`);
|
|
603230
603230
|
if (await updateInstallerManaged())
|
|
603231
603231
|
return;
|
|
@@ -603321,18 +603321,18 @@ Manual check: npm view ${"@rayu-dev/rayu-cli"} version
|
|
|
603321
603321
|
process.exit(1);
|
|
603322
603322
|
return;
|
|
603323
603323
|
}
|
|
603324
|
-
if (latestVersion === "2.0.
|
|
603324
|
+
if (latestVersion === "2.0.14") {
|
|
603325
603325
|
writeToStdout(source_default.green(`
|
|
603326
|
-
Rayu CLI is up to date (${"2.0.
|
|
603326
|
+
Rayu CLI is up to date (${"2.0.14"})
|
|
603327
603327
|
`));
|
|
603328
603328
|
process.exit(0);
|
|
603329
603329
|
}
|
|
603330
|
-
writeToStdout(`New version available: ${latestVersion} (current: ${"2.0.
|
|
603330
|
+
writeToStdout(`New version available: ${latestVersion} (current: ${"2.0.14"})
|
|
603331
603331
|
`);
|
|
603332
603332
|
writeToStdout(`Installing update...
|
|
603333
603333
|
|
|
603334
603334
|
`);
|
|
603335
|
-
const versionBeforeInstall = getInstalledVersion() ?? "2.0.
|
|
603335
|
+
const versionBeforeInstall = getInstalledVersion() ?? "2.0.14";
|
|
603336
603336
|
const installSpec = buildPinnedSpec("@rayu-dev/rayu-cli", latestVersion) ?? `${"@rayu-dev/rayu-cli"}@latest`;
|
|
603337
603337
|
if (!await acquireUpdateLock()) {
|
|
603338
603338
|
process.stderr.write(source_default.yellow(`
|
|
@@ -603450,14 +603450,14 @@ async function updateNativeBinary() {
|
|
|
603450
603450
|
} catch {
|
|
603451
603451
|
latestVersion = "";
|
|
603452
603452
|
}
|
|
603453
|
-
if (latestVersion && latestVersion === "2.0.
|
|
603453
|
+
if (latestVersion && latestVersion === "2.0.14") {
|
|
603454
603454
|
writeToStdout(source_default.green(`
|
|
603455
|
-
Rayu CLI is up to date (2.0.
|
|
603455
|
+
Rayu CLI is up to date (2.0.14)
|
|
603456
603456
|
`));
|
|
603457
603457
|
process.exit(0);
|
|
603458
603458
|
}
|
|
603459
603459
|
if (latestVersion) {
|
|
603460
|
-
writeToStdout(`New version available: ${latestVersion} (current: 2.0.
|
|
603460
|
+
writeToStdout(`New version available: ${latestVersion} (current: 2.0.14)
|
|
603461
603461
|
`);
|
|
603462
603462
|
}
|
|
603463
603463
|
writeToStdout(`Downloading and installing update...
|
|
@@ -603472,13 +603472,13 @@ Rayu CLI is up to date (2.0.13)
|
|
|
603472
603472
|
return;
|
|
603473
603473
|
}
|
|
603474
603474
|
writeToStdout(source_default.green(`
|
|
603475
|
-
Rayu CLI is up to date (2.0.
|
|
603475
|
+
Rayu CLI is up to date (2.0.14)
|
|
603476
603476
|
`));
|
|
603477
603477
|
process.exit(0);
|
|
603478
603478
|
}
|
|
603479
603479
|
const updatedTo = result.latestVersion ?? latestVersion ?? "latest";
|
|
603480
603480
|
writeToStdout(source_default.green(`
|
|
603481
|
-
Successfully updated from 2.0.
|
|
603481
|
+
Successfully updated from 2.0.14 to ${updatedTo}
|
|
603482
603482
|
`));
|
|
603483
603483
|
writeToStdout(`Restart your terminal to use the new version.
|
|
603484
603484
|
`);
|
|
@@ -603950,7 +603950,7 @@ async function uninstall(args = []) {
|
|
|
603950
603950
|
const keepData = args.includes("--keep-data");
|
|
603951
603951
|
const dryRun = args.includes("--dry-run");
|
|
603952
603952
|
const plan2 = await planUninstall({ keepData });
|
|
603953
|
-
writeToStdout(`Rayu CLI ${"2.0.
|
|
603953
|
+
writeToStdout(`Rayu CLI ${"2.0.14"}
|
|
603954
603954
|
|
|
603955
603955
|
`);
|
|
603956
603956
|
for (const line of describePlan(plan2))
|
|
@@ -604273,7 +604273,7 @@ function showFirstRunWelcome() {
|
|
|
604273
604273
|
`);
|
|
604274
604274
|
try {
|
|
604275
604275
|
mkdirSync18(getRayuConfigHomeDir(), { recursive: true });
|
|
604276
|
-
writeFileSync21(markerPath(), "2.0.
|
|
604276
|
+
writeFileSync21(markerPath(), "2.0.14", "utf8");
|
|
604277
604277
|
} catch {}
|
|
604278
604278
|
}
|
|
604279
604279
|
var init_firstRun = __esm(() => {
|
|
@@ -619343,7 +619343,7 @@ async function initializeBetaTracing(resource) {
|
|
|
619343
619343
|
});
|
|
619344
619344
|
import_api_logs.logs.setGlobalLoggerProvider(loggerProvider);
|
|
619345
619345
|
setLoggerProvider(loggerProvider);
|
|
619346
|
-
const eventLogger = import_api_logs.logs.getLogger("com.anthropic.claude_code.events", "2.0.
|
|
619346
|
+
const eventLogger = import_api_logs.logs.getLogger("com.anthropic.claude_code.events", "2.0.14");
|
|
619347
619347
|
setEventLogger(eventLogger);
|
|
619348
619348
|
process.on("beforeExit", async () => {
|
|
619349
619349
|
await loggerProvider?.forceFlush();
|
|
@@ -619383,7 +619383,7 @@ async function initializeTelemetry() {
|
|
|
619383
619383
|
const platform4 = getPlatform();
|
|
619384
619384
|
const baseAttributes = {
|
|
619385
619385
|
[import_semantic_conventions.ATTR_SERVICE_NAME]: "claude-code",
|
|
619386
|
-
[import_semantic_conventions.ATTR_SERVICE_VERSION]: "2.0.
|
|
619386
|
+
[import_semantic_conventions.ATTR_SERVICE_VERSION]: "2.0.14"
|
|
619387
619387
|
};
|
|
619388
619388
|
if (platform4 === "wsl") {
|
|
619389
619389
|
const wslVersion = getWslVersion();
|
|
@@ -619428,7 +619428,7 @@ async function initializeTelemetry() {
|
|
|
619428
619428
|
} catch {}
|
|
619429
619429
|
};
|
|
619430
619430
|
registerCleanup(shutdownTelemetry2);
|
|
619431
|
-
return meterProvider2.getMeter("com.anthropic.claude_code", "2.0.
|
|
619431
|
+
return meterProvider2.getMeter("com.anthropic.claude_code", "2.0.14");
|
|
619432
619432
|
}
|
|
619433
619433
|
const meterProvider = new import_sdk_metrics2.MeterProvider({
|
|
619434
619434
|
resource,
|
|
@@ -619448,7 +619448,7 @@ async function initializeTelemetry() {
|
|
|
619448
619448
|
});
|
|
619449
619449
|
import_api_logs.logs.setGlobalLoggerProvider(loggerProvider);
|
|
619450
619450
|
setLoggerProvider(loggerProvider);
|
|
619451
|
-
const eventLogger = import_api_logs.logs.getLogger("com.anthropic.claude_code.events", "2.0.
|
|
619451
|
+
const eventLogger = import_api_logs.logs.getLogger("com.anthropic.claude_code.events", "2.0.14");
|
|
619452
619452
|
setEventLogger(eventLogger);
|
|
619453
619453
|
logForDebugging("[3P telemetry] Event logger set successfully");
|
|
619454
619454
|
process.on("beforeExit", async () => {
|
|
@@ -619510,7 +619510,7 @@ Current timeout: ${timeoutMs}ms
|
|
|
619510
619510
|
}
|
|
619511
619511
|
};
|
|
619512
619512
|
registerCleanup(shutdownTelemetry);
|
|
619513
|
-
return meterProvider.getMeter("com.anthropic.claude_code", "2.0.
|
|
619513
|
+
return meterProvider.getMeter("com.anthropic.claude_code", "2.0.14");
|
|
619514
619514
|
}
|
|
619515
619515
|
async function flushTelemetry() {
|
|
619516
619516
|
const meterProvider = getMeterProvider();
|
|
@@ -621018,7 +621018,7 @@ function buildSystemInitMessage(inputs) {
|
|
|
621018
621018
|
slash_commands: inputs.commands.filter((c4) => c4.userInvocable !== false).map((c4) => c4.name),
|
|
621019
621019
|
apiKeySource: getAnthropicApiKeyWithSource().source,
|
|
621020
621020
|
betas: getSdkBetas(),
|
|
621021
|
-
claude_code_version: "2.0.
|
|
621021
|
+
claude_code_version: "2.0.14",
|
|
621022
621022
|
output_style: outputStyle2,
|
|
621023
621023
|
agents: inputs.agents.map((agent2) => agent2.agentType),
|
|
621024
621024
|
skills: inputs.skills.filter((s2) => s2.userInvocable !== false).map((skill) => skill.name),
|
|
@@ -624325,7 +624325,7 @@ function getDeviceFacts() {
|
|
|
624325
624325
|
return {
|
|
624326
624326
|
platform: process.platform,
|
|
624327
624327
|
arch: process.arch,
|
|
624328
|
-
version: "2.0.
|
|
624328
|
+
version: "2.0.14"
|
|
624329
624329
|
};
|
|
624330
624330
|
}
|
|
624331
624331
|
var cached3 = null;
|
|
@@ -645633,7 +645633,7 @@ var init_useVoiceEnabled = __esm(() => {
|
|
|
645633
645633
|
function getSemverPart(version3) {
|
|
645634
645634
|
return `${import_semver13.major(version3, { loose: true })}.${import_semver13.minor(version3, { loose: true })}.${import_semver13.patch(version3, { loose: true })}`;
|
|
645635
645635
|
}
|
|
645636
|
-
function useUpdateNotification(updatedVersion, initialVersion = "2.0.
|
|
645636
|
+
function useUpdateNotification(updatedVersion, initialVersion = "2.0.14") {
|
|
645637
645637
|
const [lastNotifiedSemver, setLastNotifiedSemver] = import_react226.useState(() => getSemverPart(initialVersion));
|
|
645638
645638
|
if (!updatedVersion) {
|
|
645639
645639
|
return null;
|
|
@@ -645673,7 +645673,7 @@ function AutoUpdater({
|
|
|
645673
645673
|
return;
|
|
645674
645674
|
}
|
|
645675
645675
|
if (false) {}
|
|
645676
|
-
const currentVersion = "2.0.
|
|
645676
|
+
const currentVersion = "2.0.14";
|
|
645677
645677
|
const channel2 = getInitialSettings()?.autoUpdatesChannel ?? "latest";
|
|
645678
645678
|
let latestVersion = await getLatestVersion(channel2);
|
|
645679
645679
|
const isDisabled = isAutoUpdaterDisabled();
|
|
@@ -645891,12 +645891,12 @@ function NativeAutoUpdater({
|
|
|
645891
645891
|
logEvent("tengu_native_auto_updater_start", {});
|
|
645892
645892
|
try {
|
|
645893
645893
|
const maxVersion = await getMaxVersion();
|
|
645894
|
-
if (maxVersion && gt("2.0.
|
|
645894
|
+
if (maxVersion && gt("2.0.14", maxVersion)) {
|
|
645895
645895
|
const msg = await getMaxVersionMessage();
|
|
645896
645896
|
setMaxVersionIssue(msg ?? "affects your version");
|
|
645897
645897
|
}
|
|
645898
645898
|
const result = await installLatest(channel2);
|
|
645899
|
-
const currentVersion = "2.0.
|
|
645899
|
+
const currentVersion = "2.0.14";
|
|
645900
645900
|
const latencyMs = Date.now() - startTime2;
|
|
645901
645901
|
if (result.lockFailed) {
|
|
645902
645902
|
logEvent("tengu_native_auto_updater_lock_contention", {
|
|
@@ -646033,17 +646033,17 @@ function PackageManagerAutoUpdater(t0) {
|
|
|
646033
646033
|
const maxVersion = await getMaxVersion();
|
|
646034
646034
|
if (maxVersion && latest && gt(latest, maxVersion)) {
|
|
646035
646035
|
logForDebugging(`PackageManagerAutoUpdater: maxVersion ${maxVersion} is set, capping update from ${latest} to ${maxVersion}`);
|
|
646036
|
-
if (gte("2.0.
|
|
646037
|
-
logForDebugging(`PackageManagerAutoUpdater: current version ${"2.0.
|
|
646036
|
+
if (gte("2.0.14", maxVersion)) {
|
|
646037
|
+
logForDebugging(`PackageManagerAutoUpdater: current version ${"2.0.14"} is already at or above maxVersion ${maxVersion}, skipping update`);
|
|
646038
646038
|
setUpdateAvailable(false);
|
|
646039
646039
|
return;
|
|
646040
646040
|
}
|
|
646041
646041
|
latest = maxVersion;
|
|
646042
646042
|
}
|
|
646043
|
-
const hasUpdate = latest && !gte("2.0.
|
|
646043
|
+
const hasUpdate = latest && !gte("2.0.14", latest) && !shouldSkipVersion(latest);
|
|
646044
646044
|
setUpdateAvailable(!!hasUpdate);
|
|
646045
646045
|
if (hasUpdate) {
|
|
646046
|
-
logForDebugging(`PackageManagerAutoUpdater: Update available ${"2.0.
|
|
646046
|
+
logForDebugging(`PackageManagerAutoUpdater: Update available ${"2.0.14"} -> ${latest}`);
|
|
646047
646047
|
}
|
|
646048
646048
|
};
|
|
646049
646049
|
$3[0] = t1;
|
|
@@ -646077,7 +646077,7 @@ function PackageManagerAutoUpdater(t0) {
|
|
|
646077
646077
|
wrap: "truncate",
|
|
646078
646078
|
children: [
|
|
646079
646079
|
"currentVersion: ",
|
|
646080
|
-
"2.0.
|
|
646080
|
+
"2.0.14"
|
|
646081
646081
|
]
|
|
646082
646082
|
});
|
|
646083
646083
|
$3[3] = verbose;
|
|
@@ -646480,7 +646480,7 @@ function readNoticeEnvironment() {
|
|
|
646480
646480
|
function UpdateAvailableNotice({
|
|
646481
646481
|
detectInstallationType = getCurrentInstallationType,
|
|
646482
646482
|
fetchLatestVersion,
|
|
646483
|
-
currentVersion = "2.0.
|
|
646483
|
+
currentVersion = "2.0.14",
|
|
646484
646484
|
readEnvironment = readNoticeEnvironment
|
|
646485
646485
|
} = {}) {
|
|
646486
646486
|
const [latestVersion, setLatestVersion] = import_react233.useState(() => getCachedLatestNpmVersionSync());
|
|
@@ -654382,7 +654382,7 @@ function buildStatusLineCommandInput(permissionMode, exceeds200kTokens, settings
|
|
|
654382
654382
|
project_dir: getOriginalCwd(),
|
|
654383
654383
|
added_dirs: addedDirs
|
|
654384
654384
|
},
|
|
654385
|
-
version: "2.0.
|
|
654385
|
+
version: "2.0.14",
|
|
654386
654386
|
output_style: {
|
|
654387
654387
|
name: outputStyleName
|
|
654388
654388
|
},
|
|
@@ -665886,7 +665886,7 @@ async function submitTranscriptShare(messages, trigger, appearanceId) {
|
|
|
665886
665886
|
} catch {}
|
|
665887
665887
|
const data = {
|
|
665888
665888
|
trigger,
|
|
665889
|
-
version: "2.0.
|
|
665889
|
+
version: "2.0.14",
|
|
665890
665890
|
platform: process.platform,
|
|
665891
665891
|
transcript,
|
|
665892
665892
|
subagentTranscripts: Object.keys(subagentTranscripts).length > 0 ? subagentTranscripts : undefined,
|
|
@@ -678028,7 +678028,7 @@ function WelcomeV2() {
|
|
|
678028
678028
|
dimColor: true,
|
|
678029
678029
|
children: [
|
|
678030
678030
|
"v",
|
|
678031
|
-
"2.0.
|
|
678031
|
+
"2.0.14"
|
|
678032
678032
|
]
|
|
678033
678033
|
})
|
|
678034
678034
|
]
|
|
@@ -679035,7 +679035,7 @@ function completeOnboarding() {
|
|
|
679035
679035
|
saveGlobalConfig((current) => ({
|
|
679036
679036
|
...current,
|
|
679037
679037
|
hasCompletedOnboarding: true,
|
|
679038
|
-
lastOnboardingVersion: "2.0.
|
|
679038
|
+
lastOnboardingVersion: "2.0.14"
|
|
679039
679039
|
}));
|
|
679040
679040
|
}
|
|
679041
679041
|
function showDialog(root2, renderer) {
|
|
@@ -684120,7 +684120,7 @@ function appendToLog(path24, message) {
|
|
|
684120
684120
|
cwd: getFsImplementation().cwd(),
|
|
684121
684121
|
userType: "external",
|
|
684122
684122
|
sessionId: getSessionId(),
|
|
684123
|
-
version: "2.0.
|
|
684123
|
+
version: "2.0.14"
|
|
684124
684124
|
};
|
|
684125
684125
|
getLogWriter(path24).write(messageWithTimestamp);
|
|
684126
684126
|
}
|
|
@@ -688441,8 +688441,8 @@ async function getEnvLessBridgeConfig() {
|
|
|
688441
688441
|
}
|
|
688442
688442
|
async function checkEnvLessBridgeMinVersion() {
|
|
688443
688443
|
const cfg = await getEnvLessBridgeConfig();
|
|
688444
|
-
if (cfg.min_version && lt("2.0.
|
|
688445
|
-
return `Your version of RAYU (${"2.0.
|
|
688444
|
+
if (cfg.min_version && lt("2.0.14", cfg.min_version)) {
|
|
688445
|
+
return `Your version of RAYU (${"2.0.14"}) is too old for Remote Control.
|
|
688446
688446
|
Version ${cfg.min_version} or higher is required. Run \`claude update\` to update.`;
|
|
688447
688447
|
}
|
|
688448
688448
|
return null;
|
|
@@ -688917,7 +688917,7 @@ async function initBridgeCore(params) {
|
|
|
688917
688917
|
const rawApi = createBridgeApiClient({
|
|
688918
688918
|
baseUrl,
|
|
688919
688919
|
getAccessToken,
|
|
688920
|
-
runnerVersion: "2.0.
|
|
688920
|
+
runnerVersion: "2.0.14",
|
|
688921
688921
|
onDebug: logForDebugging,
|
|
688922
688922
|
onAuth401,
|
|
688923
688923
|
getTrustedDeviceToken
|
|
@@ -696451,7 +696451,7 @@ ${customInstructions}` : customInstructions;
|
|
|
696451
696451
|
}
|
|
696452
696452
|
}
|
|
696453
696453
|
logForDiagnosticsNoPII("info", "started", {
|
|
696454
|
-
version: "2.0.
|
|
696454
|
+
version: "2.0.14",
|
|
696455
696455
|
is_native_binary: isInBundledMode()
|
|
696456
696456
|
});
|
|
696457
696457
|
registerCleanup(async () => {
|
|
@@ -697174,7 +697174,7 @@ Usage: rayu --remote "your task description"`, () => gracefulShutdown(1));
|
|
|
697174
697174
|
pendingHookMessages
|
|
697175
697175
|
}, renderAndRun);
|
|
697176
697176
|
}
|
|
697177
|
-
}).version(`2.0.
|
|
697177
|
+
}).version(`2.0.14 (${PRODUCT_NAME})`, "-v, --version", "Output the version number");
|
|
697178
697178
|
program.option("-w, --worktree [name]", "Create a new git worktree for this session (optionally specify a name)");
|
|
697179
697179
|
program.option("--tmux", "Create a tmux session for the worktree (requires --worktree). Uses iTerm2 native panes when available; use --tmux=classic for traditional tmux.");
|
|
697180
697180
|
if (canUserConfigureAdvisor()) {
|
|
@@ -697640,7 +697640,7 @@ if (false) {}
|
|
|
697640
697640
|
async function main2() {
|
|
697641
697641
|
const args = process.argv.slice(2);
|
|
697642
697642
|
if (args.length === 1 && (args[0] === "--version" || args[0] === "-v" || args[0] === "-V")) {
|
|
697643
|
-
console.log(`${"2.0.
|
|
697643
|
+
console.log(`${"2.0.14"} (Beta-Rayu-CLI)`);
|
|
697644
697644
|
return;
|
|
697645
697645
|
}
|
|
697646
697646
|
if (!isEnvTruthy(process.env.CLAUDE_CODE_DISABLE_TERMINAL_TITLE)) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rayu-dev/rayu-cli",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.14",
|
|
4
4
|
"description": "Rayu-CLI — a multi-provider AI coding CLI",
|
|
5
5
|
"//": "There are deliberately NO runtime `dependencies`. scripts/build.ts bundles every import into the single published file dist/rayu.js, so nothing has to be resolvable from node_modules at runtime — the only unbundled specifiers are the optional native/OTEL modules in that script's EXTERNAL list, each guarded by a try/catch. Declaring them as dependencies anyway made `npm install -g` resolve, download and compile ~80 packages (including sharp's platform prebuilds) that the CLI never loads, which is what made a global install fail differently on every machine. Add build-time packages to devDependencies. If you ever add a module that must be require()d from node_modules at runtime, it belongs in dependencies AND in the installer's expectations (rayu-web/public/install.sh extracts only dist/rayu.js).",
|
|
6
6
|
"type": "module",
|