@rayu-dev/rayu-cli 1.6.0 → 1.6.1

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.
Files changed (2) hide show
  1. package/dist/rayu.js +121 -94
  2. package/package.json +1 -1
package/dist/rayu.js CHANGED
@@ -24770,7 +24770,7 @@ function isUseRayuOAuthEnabled() {
24770
24770
  const env2 = process.env.USE_RAYU_OAUTH;
24771
24771
  if (env2 !== undefined && env2 !== "")
24772
24772
  return isEnvTruthy(env2);
24773
- return isEnvTruthy("false");
24773
+ return isEnvTruthy("true");
24774
24774
  }
24775
24775
  function getRayuApiBaseUrl() {
24776
24776
  const base2 = process.env.RAYU_API_URL || "https://api.rayucode.com/api";
@@ -145629,7 +145629,7 @@ var init_isEqual = __esm(() => {
145629
145629
 
145630
145630
  // src/utils/userAgent.ts
145631
145631
  function getRayuUserAgent() {
145632
- return `rayu/${"1.6.0:beta"}`;
145632
+ return `rayu/${"1.6.1:beta"}`;
145633
145633
  }
145634
145634
  var getClaudeCodeUserAgent;
145635
145635
  var init_userAgent = __esm(() => {
@@ -145655,7 +145655,7 @@ function getUserAgent() {
145655
145655
  const clientApp = process.env.RAYU_AGENT_SDK_CLIENT_APP ? `, client-app/${process.env.RAYU_AGENT_SDK_CLIENT_APP}` : "";
145656
145656
  const workload = getWorkload();
145657
145657
  const workloadSuffix = workload ? `, workload/${workload}` : "";
145658
- return `rayu/${"1.6.0:beta"} (${"external"}, ${process.env.RAYU_ENTRYPOINT ?? "cli"}${agentSdkVersion}${clientApp}${workloadSuffix})`;
145658
+ return `rayu/${"1.6.1:beta"} (${"external"}, ${process.env.RAYU_ENTRYPOINT ?? "cli"}${agentSdkVersion}${clientApp}${workloadSuffix})`;
145659
145659
  }
145660
145660
  function getMCPUserAgent() {
145661
145661
  const parts = [];
@@ -145669,7 +145669,7 @@ function getMCPUserAgent() {
145669
145669
  parts.push(`client-app/${process.env.RAYU_AGENT_SDK_CLIENT_APP}`);
145670
145670
  }
145671
145671
  const suffix = parts.length > 0 ? ` (${parts.join(", ")})` : "";
145672
- return `rayu/${"1.6.0:beta"}${suffix}`;
145672
+ return `rayu/${"1.6.1:beta"}${suffix}`;
145673
145673
  }
145674
145674
  function getWebFetchUserAgent() {
145675
145675
  return `Rayu-User (${getRayuUserAgent()})`;
@@ -156662,7 +156662,7 @@ var init_metadata = __esm(() => {
156662
156662
  COMPOUND_OPERATOR_REGEX = /\s*(?:&&|\|\||[;|])\s*/;
156663
156663
  WHITESPACE_REGEX = /\s+/;
156664
156664
  getVersionBase = memoize_default(() => {
156665
- const match = "1.6.0:beta".match(/^\d+\.\d+\.\d+(?:-[a-z]+)?/);
156665
+ const match = "1.6.1:beta".match(/^\d+\.\d+\.\d+(?:-[a-z]+)?/);
156666
156666
  return match ? match[0] : undefined;
156667
156667
  });
156668
156668
  buildEnvContext = memoize_default(async () => {
@@ -156701,7 +156701,7 @@ var init_metadata = __esm(() => {
156701
156701
  },
156702
156702
  isGithubAction: isEnvTruthy(process.env.GITHUB_ACTIONS),
156703
156703
  isRayuAction: isEnvTruthy(process.env.RAYU_ACTION),
156704
- version: "1.6.0:beta",
156704
+ version: "1.6.1:beta",
156705
156705
  versionBase: getVersionBase(),
156706
156706
  buildTime: "",
156707
156707
  deploymentEnvironment: env4.detectDeploymentEnvironment(),
@@ -164095,7 +164095,7 @@ function getAttributionHeader(fingerprint2) {
164095
164095
  if (!isAttributionHeaderEnabled()) {
164096
164096
  return "";
164097
164097
  }
164098
- const version2 = `${"1.6.0:beta"}.${fingerprint2}`;
164098
+ const version2 = `${"1.6.1:beta"}.${fingerprint2}`;
164099
164099
  const entrypoint = process.env.CLAUDE_CODE_ENTRYPOINT ?? "unknown";
164100
164100
  const cch = "";
164101
164101
  const workload = getWorkload();
@@ -325179,7 +325179,7 @@ function getTelemetryAttributes() {
325179
325179
  attributes["session.id"] = sessionId;
325180
325180
  }
325181
325181
  if (shouldIncludeAttribute("OTEL_METRICS_INCLUDE_VERSION")) {
325182
- attributes["app.version"] = "1.6.0:beta";
325182
+ attributes["app.version"] = "1.6.1:beta";
325183
325183
  }
325184
325184
  const oauthAccount = getOauthAccountInfo();
325185
325185
  if (oauthAccount) {
@@ -368154,7 +368154,7 @@ function getInstallationEnv() {
368154
368154
  return;
368155
368155
  }
368156
368156
  function getClaudeCodeVersion() {
368157
- return "1.6.0:beta";
368157
+ return "1.6.1:beta";
368158
368158
  }
368159
368159
  async function getInstalledVSCodeExtensionVersion(command) {
368160
368160
  const { stdout } = await execFileNoThrow(command, ["--list-extensions", "--show-versions"], {
@@ -370985,7 +370985,7 @@ function computeFingerprint(messageText, version2) {
370985
370985
  }
370986
370986
  function computeFingerprintFromMessages(messages) {
370987
370987
  const firstMessageText = extractFirstMessageText(messages);
370988
- return computeFingerprint(firstMessageText, "1.6.0:beta");
370988
+ return computeFingerprint(firstMessageText, "1.6.1:beta");
370989
370989
  }
370990
370990
  var FINGERPRINT_SALT = "59cf53e54c78";
370991
370991
  var init_fingerprint = () => {};
@@ -371027,7 +371027,7 @@ async function sideQuery(opts) {
371027
371027
  betas.push(STRUCTURED_OUTPUTS_BETA_HEADER);
371028
371028
  }
371029
371029
  const messageText = extractFirstUserMessageText(messages);
371030
- const fingerprint2 = computeFingerprint(messageText, "1.6.0:beta");
371030
+ const fingerprint2 = computeFingerprint(messageText, "1.6.1:beta");
371031
371031
  const attributionHeader = getAttributionHeader(fingerprint2);
371032
371032
  const systemBlocks = [
371033
371033
  attributionHeader ? { type: "text", text: attributionHeader } : null,
@@ -408769,7 +408769,7 @@ async function setupSdkMcpClients(sdkMcpConfigs, sendMcpMessage) {
408769
408769
  const client = new Client({
408770
408770
  name: "claude-code",
408771
408771
  title: "RAYU",
408772
- version: "1.6.0:beta",
408772
+ version: "1.6.1:beta",
408773
408773
  description: "Anthropic's agentic coding tool",
408774
408774
  websiteUrl: PRODUCT_URL
408775
408775
  }, {
@@ -409086,7 +409086,7 @@ var init_client5 = __esm(() => {
409086
409086
  const client = new Client({
409087
409087
  name: "claude-code",
409088
409088
  title: "RAYU",
409089
- version: "1.6.0:beta",
409089
+ version: "1.6.1:beta",
409090
409090
  description: "Anthropic's agentic coding tool",
409091
409091
  websiteUrl: PRODUCT_URL
409092
409092
  }, {
@@ -469252,7 +469252,7 @@ async function handshake(peer) {
469252
469252
  clientInfo: {
469253
469253
  name: "rayu_cli",
469254
469254
  title: "RAYU CLI",
469255
- version: typeof MACRO !== "undefined" ? "1.6.0:beta" : "0.0.0"
469255
+ version: typeof MACRO !== "undefined" ? "1.6.1:beta" : "0.0.0"
469256
469256
  },
469257
469257
  capabilities: { experimentalApi: false }
469258
469258
  };
@@ -500568,9 +500568,9 @@ async function assertMinVersion() {
500568
500568
  if (false) {}
500569
500569
  try {
500570
500570
  const versionConfig = await getDynamicConfig_BLOCKS_ON_INIT("tengu_version_config", { minVersion: "0.0.0" });
500571
- if (versionConfig.minVersion && lt("1.6.0:beta", versionConfig.minVersion)) {
500571
+ if (versionConfig.minVersion && lt("1.6.1:beta", versionConfig.minVersion)) {
500572
500572
  console.error(`
500573
- It looks like your version of RAYU (${"1.6.0:beta"}) needs an update.
500573
+ It looks like your version of RAYU (${"1.6.1:beta"}) needs an update.
500574
500574
  A newer version (${versionConfig.minVersion} or higher) is required to continue.
500575
500575
 
500576
500576
  To update, please run:
@@ -500734,7 +500734,7 @@ async function installGlobalPackage(specificVersion) {
500734
500734
  logError2(new AutoUpdaterError("Another process is currently installing an update"));
500735
500735
  logEvent("tengu_auto_updater_lock_contention", {
500736
500736
  pid: process.pid,
500737
- currentVersion: "1.6.0:beta"
500737
+ currentVersion: "1.6.1:beta"
500738
500738
  });
500739
500739
  return "in_progress";
500740
500740
  }
@@ -500743,7 +500743,7 @@ async function installGlobalPackage(specificVersion) {
500743
500743
  if (!env4.isRunningWithBun() && env4.isNpmFromWindowsPath()) {
500744
500744
  logError2(new Error("Windows NPM detected in WSL environment"));
500745
500745
  logEvent("tengu_auto_updater_windows_npm_in_wsl", {
500746
- currentVersion: "1.6.0:beta"
500746
+ currentVersion: "1.6.1:beta"
500747
500747
  });
500748
500748
  console.error(`
500749
500749
  Error: Windows NPM detected in WSL
@@ -501274,7 +501274,7 @@ function detectLinuxGlobPatternWarnings() {
501274
501274
  }
501275
501275
  async function getDoctorDiagnostic() {
501276
501276
  const installationType = await getCurrentInstallationType();
501277
- const version2 = typeof MACRO !== "undefined" ? "1.6.0:beta" : "unknown";
501277
+ const version2 = typeof MACRO !== "undefined" ? "1.6.1:beta" : "unknown";
501278
501278
  const installationPath = await getInstallationPath();
501279
501279
  const invokedBinary = getInvokedBinary();
501280
501280
  const multipleInstallations = await detectMultipleInstallations();
@@ -502069,8 +502069,8 @@ async function updateLatest(channelOrVersion, forceReinstall = false) {
502069
502069
  const maxVersion = await getMaxVersion();
502070
502070
  if (maxVersion && gt(version2, maxVersion)) {
502071
502071
  logForDebugging(`Native installer: maxVersion ${maxVersion} is set, capping update from ${version2} to ${maxVersion}`);
502072
- if (gte("1.6.0:beta", maxVersion)) {
502073
- logForDebugging(`Native installer: current version ${"1.6.0:beta"} is already at or above maxVersion ${maxVersion}, skipping update`);
502072
+ if (gte("1.6.1:beta", maxVersion)) {
502073
+ logForDebugging(`Native installer: current version ${"1.6.1:beta"} is already at or above maxVersion ${maxVersion}, skipping update`);
502074
502074
  logEvent("tengu_native_update_skipped_max_version", {
502075
502075
  latency_ms: Date.now() - startTime2,
502076
502076
  max_version: maxVersion,
@@ -502081,7 +502081,7 @@ async function updateLatest(channelOrVersion, forceReinstall = false) {
502081
502081
  version2 = maxVersion;
502082
502082
  }
502083
502083
  }
502084
- if (!forceReinstall && version2 === "1.6.0:beta" && await versionIsAvailable(version2) && await isPossibleClaudeBinary(executablePath)) {
502084
+ if (!forceReinstall && version2 === "1.6.1:beta" && await versionIsAvailable(version2) && await isPossibleClaudeBinary(executablePath)) {
502085
502085
  logForDebugging(`Found ${version2} at ${executablePath}, skipping install`);
502086
502086
  logEvent("tengu_native_update_complete", {
502087
502087
  latency_ms: Date.now() - startTime2,
@@ -503289,7 +503289,7 @@ function buildPrimarySection() {
503289
503289
  });
503290
503290
  return [{
503291
503291
  label: "Version",
503292
- value: "1.6.0:beta"
503292
+ value: "1.6.1:beta"
503293
503293
  }, {
503294
503294
  label: "Session name",
503295
503295
  value: nameValue
@@ -506972,7 +506972,7 @@ function Config({
506972
506972
  }
506973
506973
  })
506974
506974
  }) : showSubmenu === "ChannelDowngrade" ? /* @__PURE__ */ jsx_runtime168.jsx(ChannelDowngradeDialog, {
506975
- currentVersion: "1.6.0:beta",
506975
+ currentVersion: "1.6.1:beta",
506976
506976
  onChoice: (choice) => {
506977
506977
  setShowSubmenu(null);
506978
506978
  setTabsHidden(false);
@@ -506984,7 +506984,7 @@ function Config({
506984
506984
  autoUpdatesChannel: "stable"
506985
506985
  };
506986
506986
  if (choice === "stay") {
506987
- newSettings.minimumVersion = "1.6.0:beta";
506987
+ newSettings.minimumVersion = "1.6.1:beta";
506988
506988
  }
506989
506989
  updateSettingsForSource("userSettings", newSettings);
506990
506990
  setSettingsData((prev_27) => ({
@@ -515045,7 +515045,7 @@ function HelpV2(t0) {
515045
515045
  let t6;
515046
515046
  if ($3[31] !== tabs) {
515047
515047
  t6 = /* @__PURE__ */ jsx_runtime195.jsx(Tabs, {
515048
- title: `Rayu-CLI v${"1.6.0:beta"}`,
515048
+ title: `Rayu-CLI v${"1.6.1:beta"}`,
515049
515049
  color: "professionalBlue",
515050
515050
  defaultTab: "general",
515051
515051
  children: tabs
@@ -536264,7 +536264,7 @@ function getRecentReleaseNotes(currentVersion, previousVersion, changelogContent
536264
536264
  }
536265
536265
  return [];
536266
536266
  }
536267
- async function checkForReleaseNotes(lastSeenVersion, currentVersion = "1.6.0:beta") {
536267
+ async function checkForReleaseNotes(lastSeenVersion, currentVersion = "1.6.1:beta") {
536268
536268
  if (false) {}
536269
536269
  const cachedChangelog = await getStoredChangelog();
536270
536270
  if (lastSeenVersion !== currentVersion || !cachedChangelog) {
@@ -536277,7 +536277,7 @@ async function checkForReleaseNotes(lastSeenVersion, currentVersion = "1.6.0:bet
536277
536277
  releaseNotes
536278
536278
  };
536279
536279
  }
536280
- function checkForReleaseNotesSync(lastSeenVersion, currentVersion = "1.6.0:beta") {
536280
+ function checkForReleaseNotesSync(lastSeenVersion, currentVersion = "1.6.1:beta") {
536281
536281
  if (false) {}
536282
536282
  const releaseNotes = getRecentReleaseNotes(currentVersion, lastSeenVersion);
536283
536283
  return {
@@ -536405,7 +536405,7 @@ function getRecentActivitySync() {
536405
536405
  return cachedActivity;
536406
536406
  }
536407
536407
  function getLogoDisplayData() {
536408
- const version2 = process.env.DEMO_VERSION ?? "1.6.0:beta";
536408
+ const version2 = process.env.DEMO_VERSION ?? "1.6.1:beta";
536409
536409
  const serverUrl = getDirectConnectServerUrl();
536410
536410
  const displayPath = process.env.DEMO_VERSION ? "/code/claude" : getDisplayPath(getCwd());
536411
536411
  const cwd2 = serverUrl ? `${displayPath} in ${serverUrl.replace(/^https?:\/\//, "")}` : displayPath;
@@ -537617,7 +537617,7 @@ function LogoV2() {
537617
537617
  if ($3[2] === Symbol.for("react.memo_cache_sentinel")) {
537618
537618
  t2 = () => {
537619
537619
  const currentConfig = getGlobalConfig();
537620
- if (currentConfig.lastReleaseNotesSeen === "1.6.0:beta") {
537620
+ if (currentConfig.lastReleaseNotesSeen === "1.6.1:beta") {
537621
537621
  return;
537622
537622
  }
537623
537623
  saveGlobalConfig(_temp327);
@@ -538096,7 +538096,7 @@ function LogoV2() {
538096
538096
  t24 = $3[61];
538097
538097
  }
538098
538098
  const _latestNpm = getCachedLatestNpmVersionSync();
538099
- const _updateFeeds = _latestNpm && gt(_latestNpm, "1.6.0:beta") ? [createUpdateAvailableFeed("1.6.0:beta", _latestNpm)] : [];
538099
+ const _updateFeeds = _latestNpm && gt(_latestNpm, "1.6.1:beta") ? [createUpdateAvailableFeed("1.6.1:beta", _latestNpm)] : [];
538100
538100
  const t25 = layoutMode === "horizontal" && /* @__PURE__ */ jsx_runtime236.jsx(FeedColumn, {
538101
538101
  feeds: showOnboarding ? [createProjectOnboardingFeed(getSteps()), createRecentActivityFeed(activities)] : showGuestPassesUpsell ? [createRecentActivityFeed(activities), createGuestPassesFeed()] : showOverageCreditUpsell ? [createRecentActivityFeed(activities), createOverageCreditFeed()] : [createRecentActivityFeed(activities), ..._updateFeeds, createWhatsNewFeed(changelog)],
538102
538102
  maxWidth: rightWidth
@@ -538296,12 +538296,12 @@ function LogoV2() {
538296
538296
  return t41;
538297
538297
  }
538298
538298
  function _temp327(current) {
538299
- if (current.lastReleaseNotesSeen === "1.6.0:beta") {
538299
+ if (current.lastReleaseNotesSeen === "1.6.1:beta") {
538300
538300
  return current;
538301
538301
  }
538302
538302
  return {
538303
538303
  ...current,
538304
- lastReleaseNotesSeen: "1.6.0:beta"
538304
+ lastReleaseNotesSeen: "1.6.1:beta"
538305
538305
  };
538306
538306
  }
538307
538307
  function _temp241(s_0) {
@@ -564335,7 +564335,7 @@ function createRayuMcpServer(options) {
564335
564335
  commandsPromise ??= getCommands(options.cwd);
564336
564336
  return commandsPromise;
564337
564337
  };
564338
- const server = new Server({ name: RAYU_MCP_SERVER_NAME, version: "1.6.0:beta" }, { capabilities: { tools: {}, prompts: {} } });
564338
+ const server = new Server({ name: RAYU_MCP_SERVER_NAME, version: "1.6.1:beta" }, { capabilities: { tools: {}, prompts: {} } });
564339
564339
  server.setRequestHandler(ListToolsRequestSchema, async () => {
564340
564340
  const toolPermissionContext = getEmptyToolPermissionContext();
564341
564341
  const allTools = getTools(toolPermissionContext);
@@ -564435,7 +564435,7 @@ async function pingRayuMcpServer(cwd2) {
564435
564435
  const server = createRayuMcpServer2({ cwd: cwd2, debug: false, verbose: false });
564436
564436
  const [clientTransport, serverTransport] = createLinkedTransportPair();
564437
564437
  await server.connect(serverTransport);
564438
- client = new Client({ name: `${RAYU_MCP_SERVER_NAME}-healthcheck`, version: "1.6.0:beta" });
564438
+ client = new Client({ name: `${RAYU_MCP_SERVER_NAME}-healthcheck`, version: "1.6.1:beta" });
564439
564439
  await client.connect(clientTransport);
564440
564440
  const tools = await client.listTools();
564441
564441
  let promptCount = 0;
@@ -565138,7 +565138,7 @@ async function captureMemoryDiagnostics(trigger, dumpNumber = 0) {
565138
565138
  smapsRollup,
565139
565139
  platform: process.platform,
565140
565140
  nodeVersion: process.version,
565141
- ccVersion: "1.6.0:beta"
565141
+ ccVersion: "1.6.1:beta"
565142
565142
  };
565143
565143
  }
565144
565144
  async function performHeapDump(trigger = "manual", dumpNumber = 0) {
@@ -565660,7 +565660,7 @@ var init_bridge_kick = __esm(() => {
565660
565660
  var call52 = async () => {
565661
565661
  return {
565662
565662
  type: "text",
565663
- value: "1.6.0:beta"
565663
+ value: "1.6.1:beta"
565664
565664
  };
565665
565665
  }, version2, version_default;
565666
565666
  var init_version = __esm(() => {
@@ -567032,6 +567032,12 @@ async function loginRayu(opts) {
567032
567032
  user: data.user
567033
567033
  });
567034
567034
  await refreshRayuEntitlements().catch(() => {});
567035
+ if (hasRayuApiKeyConfigured()) {
567036
+ try {
567037
+ removeProvider(RAYU_API_PROVIDER_ID);
567038
+ clearRayuApiKeyValidation();
567039
+ } catch {}
567040
+ }
567035
567041
  try {
567036
567042
  syncRayuHostedProvider(getCachedEntitlements(), { activate: true });
567037
567043
  } catch {}
@@ -567056,6 +567062,9 @@ var init_rayuLogin = __esm(() => {
567056
567062
  init_rayuEntitlements();
567057
567063
  init_rayuHostedProvider();
567058
567064
  init_rayuSession();
567065
+ init_rayuApiKeyAuth();
567066
+ init_rayuConfig();
567067
+ init_rayuProviders();
567059
567068
  RAYU_SUCCESS_HTML = '<html><body style="font-family:sans-serif"><h3>Signed in to Rayu.</h3>' + "<p>You can close this tab and return to your terminal.</p></body></html>" + '<p>View Your dashboard: <a href="' + getRayuWebBaseUrl() + '/dashboard" target="_blank">here</a></p></body></html>';
567060
567069
  LOGIN_TIMEOUT_MS2 = 5 * 60 * 1000;
567061
567070
  });
@@ -567182,21 +567191,37 @@ __export(exports_logout, {
567182
567191
  call: () => call56
567183
567192
  });
567184
567193
  async function call56() {
567185
- const existing = readRayuSession();
567186
- if (!existing?.accessToken) {
567194
+ const hadSession = hasRayuSession();
567195
+ const hadApiKey = hasRayuApiKeyConfigured();
567196
+ if (!hadSession && !hadApiKey) {
567187
567197
  return { type: "text", value: "You are not signed in to Rayu." };
567188
567198
  }
567189
- clearRayuSession();
567190
- clearRayuEntitlements();
567191
- clearFeatureUsage();
567192
- clearMediaModels();
567193
- return { type: "text", value: "Signed out of Rayu." };
567199
+ if (hadSession) {
567200
+ clearRayuSession();
567201
+ clearRayuEntitlements();
567202
+ clearFeatureUsage();
567203
+ clearMediaModels();
567204
+ }
567205
+ if (hadApiKey) {
567206
+ try {
567207
+ removeProvider(RAYU_API_PROVIDER_ID);
567208
+ } catch {}
567209
+ clearRayuApiKeyValidation();
567210
+ }
567211
+ const what = hadSession && hadApiKey ? "Signed out of Rayu (cleared account session and API key)." : hadSession ? "Signed out of Rayu." : "Removed Rayu API key.";
567212
+ return {
567213
+ type: "text",
567214
+ value: `${what} Run /login to sign in again, or /connect → Rayu to use a different API key.`
567215
+ };
567194
567216
  }
567195
567217
  var init_logout = __esm(() => {
567196
567218
  init_mediaModels();
567197
567219
  init_rayuEntitlements();
567198
567220
  init_rayuFeatureUsage();
567221
+ init_rayuApiKeyAuth();
567199
567222
  init_rayuSession();
567223
+ init_rayuConfig();
567224
+ init_rayuProviders();
567200
567225
  });
567201
567226
 
567202
567227
  // src/commands/logout/index.ts
@@ -573470,7 +573495,7 @@ var init_user = __esm(() => {
573470
573495
  deviceId,
573471
573496
  sessionId: getSessionId(),
573472
573497
  email: getEmail(),
573473
- appVersion: "1.6.0:beta",
573498
+ appVersion: "1.6.1:beta",
573474
573499
  platform: getHostPlatformForAnalytics(),
573475
573500
  organizationUuid,
573476
573501
  accountUuid,
@@ -581127,7 +581152,7 @@ function generateHtmlReport(data, insights) {
581127
581152
  </html>`;
581128
581153
  }
581129
581154
  function buildExportData(data, insights, facets, remoteStats) {
581130
- const version3 = typeof MACRO !== "undefined" ? "1.6.0:beta" : "unknown";
581155
+ const version3 = typeof MACRO !== "undefined" ? "1.6.1:beta" : "unknown";
581131
581156
  const remote_hosts_collected = remoteStats?.hosts.filter((h3) => h3.sessionCount > 0).map((h3) => h3.name);
581132
581157
  const facets_summary = {
581133
581158
  total: facets.size,
@@ -585049,7 +585074,7 @@ var init_sessionStorage = __esm(() => {
585049
585074
  init_settings2();
585050
585075
  init_slowOperations();
585051
585076
  init_uuid();
585052
- VERSION5 = typeof MACRO !== "undefined" ? "1.6.0:beta" : "unknown";
585077
+ VERSION5 = typeof MACRO !== "undefined" ? "1.6.1:beta" : "unknown";
585053
585078
  MAX_TOMBSTONE_REWRITE_BYTES = 50 * 1024 * 1024;
585054
585079
  SKIP_FIRST_PROMPT_PATTERN = /^(?:\s*<[a-z][\w-]*[\s>]|\[Request interrupted by user[^\]]*\])/;
585055
585080
  EPHEMERAL_PROGRESS_TYPES = new Set([
@@ -586267,7 +586292,7 @@ var init_filesystem = __esm(() => {
586267
586292
  });
586268
586293
  getBundledSkillsRoot = memoize_default(function getBundledSkillsRoot2() {
586269
586294
  const nonce = randomBytes20(16).toString("hex");
586270
- return join156(getClaudeTempDir(), "bundled-skills", "1.6.0:beta", nonce);
586295
+ return join156(getClaudeTempDir(), "bundled-skills", "1.6.1:beta", nonce);
586271
586296
  });
586272
586297
  getResolvedWorkingDirPaths = memoize_default(getPathsForPermissionCheck);
586273
586298
  });
@@ -608224,7 +608249,7 @@ __export(exports_update, {
608224
608249
  classifyUpdateOutcome: () => classifyUpdateOutcome
608225
608250
  });
608226
608251
  async function update() {
608227
- writeToStdout(`Current version: ${"1.6.0:beta"}
608252
+ writeToStdout(`Current version: ${"1.6.1:beta"}
608228
608253
  `);
608229
608254
  const isBundled = isInBundledMode();
608230
608255
  if (isBundled) {
@@ -608255,18 +608280,18 @@ Manual check: npm view ${"@rayu-dev/rayu-cli"} version
608255
608280
  process.exit(1);
608256
608281
  return;
608257
608282
  }
608258
- if (latestVersion === "1.6.0:beta") {
608283
+ if (latestVersion === "1.6.1:beta") {
608259
608284
  writeToStdout(source_default.green(`
608260
- Rayu CLI is up to date (${"1.6.0:beta"})
608285
+ Rayu CLI is up to date (${"1.6.1:beta"})
608261
608286
  `));
608262
608287
  process.exit(0);
608263
608288
  }
608264
- writeToStdout(`New version available: ${latestVersion} (current: ${"1.6.0:beta"})
608289
+ writeToStdout(`New version available: ${latestVersion} (current: ${"1.6.1:beta"})
608265
608290
  `);
608266
608291
  writeToStdout(`Installing update...
608267
608292
 
608268
608293
  `);
608269
- const versionBeforeInstall = getInstalledVersion() ?? "1.6.0:beta";
608294
+ const versionBeforeInstall = getInstalledVersion() ?? "1.6.1:beta";
608270
608295
  const installSpec = buildPinnedSpec("@rayu-dev/rayu-cli", latestVersion) ?? `${"@rayu-dev/rayu-cli"}@latest`;
608271
608296
  if (!await acquireUpdateLock()) {
608272
608297
  process.stderr.write(source_default.yellow(`
@@ -608384,14 +608409,14 @@ async function updateNativeBinary() {
608384
608409
  } catch {
608385
608410
  latestVersion = "";
608386
608411
  }
608387
- if (latestVersion && latestVersion === "1.6.0:beta") {
608412
+ if (latestVersion && latestVersion === "1.6.1:beta") {
608388
608413
  writeToStdout(source_default.green(`
608389
- Rayu CLI is up to date (1.6.0:beta)
608414
+ Rayu CLI is up to date (1.6.1:beta)
608390
608415
  `));
608391
608416
  process.exit(0);
608392
608417
  }
608393
608418
  if (latestVersion) {
608394
- writeToStdout(`New version available: ${latestVersion} (current: 1.6.0:beta)
608419
+ writeToStdout(`New version available: ${latestVersion} (current: 1.6.1:beta)
608395
608420
  `);
608396
608421
  }
608397
608422
  writeToStdout(`Downloading and installing update...
@@ -608406,13 +608431,13 @@ Rayu CLI is up to date (1.6.0:beta)
608406
608431
  return;
608407
608432
  }
608408
608433
  writeToStdout(source_default.green(`
608409
- Rayu CLI is up to date (1.6.0:beta)
608434
+ Rayu CLI is up to date (1.6.1:beta)
608410
608435
  `));
608411
608436
  process.exit(0);
608412
608437
  }
608413
608438
  const updatedTo = result.latestVersion ?? latestVersion ?? "latest";
608414
608439
  writeToStdout(source_default.green(`
608415
- Successfully updated from 1.6.0:beta to ${updatedTo}
608440
+ Successfully updated from 1.6.1:beta to ${updatedTo}
608416
608441
  `));
608417
608442
  writeToStdout(`Restart your terminal to use the new version.
608418
608443
  `);
@@ -608847,7 +608872,7 @@ async function uninstall(args = []) {
608847
608872
  const keepData = args.includes("--keep-data");
608848
608873
  const dryRun = args.includes("--dry-run");
608849
608874
  const plan2 = await planUninstall({ keepData });
608850
- writeToStdout(`Rayu CLI ${"1.6.0:beta"}
608875
+ writeToStdout(`Rayu CLI ${"1.6.1:beta"}
608851
608876
 
608852
608877
  `);
608853
608878
  for (const line of describePlan(plan2))
@@ -609170,7 +609195,7 @@ function showFirstRunWelcome() {
609170
609195
  `);
609171
609196
  try {
609172
609197
  mkdirSync19(getRayuConfigHomeDir(), { recursive: true });
609173
- writeFileSync22(markerPath(), "1.6.0:beta", "utf8");
609198
+ writeFileSync22(markerPath(), "1.6.1:beta", "utf8");
609174
609199
  } catch {}
609175
609200
  }
609176
609201
  var init_firstRun = __esm(() => {
@@ -624240,7 +624265,7 @@ async function initializeBetaTracing(resource) {
624240
624265
  });
624241
624266
  import_api_logs.logs.setGlobalLoggerProvider(loggerProvider);
624242
624267
  setLoggerProvider(loggerProvider);
624243
- const eventLogger = import_api_logs.logs.getLogger("com.anthropic.claude_code.events", "1.6.0:beta");
624268
+ const eventLogger = import_api_logs.logs.getLogger("com.anthropic.claude_code.events", "1.6.1:beta");
624244
624269
  setEventLogger(eventLogger);
624245
624270
  process.on("beforeExit", async () => {
624246
624271
  await loggerProvider?.forceFlush();
@@ -624280,7 +624305,7 @@ async function initializeTelemetry() {
624280
624305
  const platform4 = getPlatform();
624281
624306
  const baseAttributes = {
624282
624307
  [import_semantic_conventions.ATTR_SERVICE_NAME]: "claude-code",
624283
- [import_semantic_conventions.ATTR_SERVICE_VERSION]: "1.6.0:beta"
624308
+ [import_semantic_conventions.ATTR_SERVICE_VERSION]: "1.6.1:beta"
624284
624309
  };
624285
624310
  if (platform4 === "wsl") {
624286
624311
  const wslVersion = getWslVersion();
@@ -624325,7 +624350,7 @@ async function initializeTelemetry() {
624325
624350
  } catch {}
624326
624351
  };
624327
624352
  registerCleanup(shutdownTelemetry2);
624328
- return meterProvider2.getMeter("com.anthropic.claude_code", "1.6.0:beta");
624353
+ return meterProvider2.getMeter("com.anthropic.claude_code", "1.6.1:beta");
624329
624354
  }
624330
624355
  const meterProvider = new import_sdk_metrics2.MeterProvider({
624331
624356
  resource,
@@ -624345,7 +624370,7 @@ async function initializeTelemetry() {
624345
624370
  });
624346
624371
  import_api_logs.logs.setGlobalLoggerProvider(loggerProvider);
624347
624372
  setLoggerProvider(loggerProvider);
624348
- const eventLogger = import_api_logs.logs.getLogger("com.anthropic.claude_code.events", "1.6.0:beta");
624373
+ const eventLogger = import_api_logs.logs.getLogger("com.anthropic.claude_code.events", "1.6.1:beta");
624349
624374
  setEventLogger(eventLogger);
624350
624375
  logForDebugging("[3P telemetry] Event logger set successfully");
624351
624376
  process.on("beforeExit", async () => {
@@ -624407,7 +624432,7 @@ Current timeout: ${timeoutMs}ms
624407
624432
  }
624408
624433
  };
624409
624434
  registerCleanup(shutdownTelemetry);
624410
- return meterProvider.getMeter("com.anthropic.claude_code", "1.6.0:beta");
624435
+ return meterProvider.getMeter("com.anthropic.claude_code", "1.6.1:beta");
624411
624436
  }
624412
624437
  async function flushTelemetry() {
624413
624438
  const meterProvider = getMeterProvider();
@@ -625914,7 +625939,7 @@ function buildSystemInitMessage(inputs) {
625914
625939
  slash_commands: inputs.commands.filter((c4) => c4.userInvocable !== false).map((c4) => c4.name),
625915
625940
  apiKeySource: getAnthropicApiKeyWithSource().source,
625916
625941
  betas: getSdkBetas(),
625917
- claude_code_version: "1.6.0:beta",
625942
+ claude_code_version: "1.6.1:beta",
625918
625943
  output_style: outputStyle2,
625919
625944
  agents: inputs.agents.map((agent2) => agent2.agentType),
625920
625945
  skills: inputs.skills.filter((s2) => s2.userInvocable !== false).map((skill) => skill.name),
@@ -629117,7 +629142,7 @@ function getDeviceFacts() {
629117
629142
  return {
629118
629143
  platform: process.platform,
629119
629144
  arch: process.arch,
629120
- version: "1.6.0:beta"
629145
+ version: "1.6.1:beta"
629121
629146
  };
629122
629147
  }
629123
629148
  var cached3 = null;
@@ -645700,7 +645725,7 @@ var init_useVoiceEnabled = __esm(() => {
645700
645725
  function getSemverPart(version3) {
645701
645726
  return `${import_semver13.major(version3, { loose: true })}.${import_semver13.minor(version3, { loose: true })}.${import_semver13.patch(version3, { loose: true })}`;
645702
645727
  }
645703
- function useUpdateNotification(updatedVersion, initialVersion = "1.6.0:beta") {
645728
+ function useUpdateNotification(updatedVersion, initialVersion = "1.6.1:beta") {
645704
645729
  const [lastNotifiedSemver, setLastNotifiedSemver] = import_react221.useState(() => getSemverPart(initialVersion));
645705
645730
  if (!updatedVersion) {
645706
645731
  return null;
@@ -645740,7 +645765,7 @@ function AutoUpdater({
645740
645765
  return;
645741
645766
  }
645742
645767
  if (false) {}
645743
- const currentVersion = "1.6.0:beta";
645768
+ const currentVersion = "1.6.1:beta";
645744
645769
  const channel2 = getInitialSettings()?.autoUpdatesChannel ?? "latest";
645745
645770
  let latestVersion = await getLatestVersion(channel2);
645746
645771
  const isDisabled = isAutoUpdaterDisabled();
@@ -645953,12 +645978,12 @@ function NativeAutoUpdater({
645953
645978
  logEvent("tengu_native_auto_updater_start", {});
645954
645979
  try {
645955
645980
  const maxVersion = await getMaxVersion();
645956
- if (maxVersion && gt("1.6.0:beta", maxVersion)) {
645981
+ if (maxVersion && gt("1.6.1:beta", maxVersion)) {
645957
645982
  const msg = await getMaxVersionMessage();
645958
645983
  setMaxVersionIssue(msg ?? "affects your version");
645959
645984
  }
645960
645985
  const result = await installLatest(channel2);
645961
- const currentVersion = "1.6.0:beta";
645986
+ const currentVersion = "1.6.1:beta";
645962
645987
  const latencyMs = Date.now() - startTime2;
645963
645988
  if (result.lockFailed) {
645964
645989
  logEvent("tengu_native_auto_updater_lock_contention", {
@@ -646095,17 +646120,17 @@ function PackageManagerAutoUpdater(t0) {
646095
646120
  const maxVersion = await getMaxVersion();
646096
646121
  if (maxVersion && latest && gt(latest, maxVersion)) {
646097
646122
  logForDebugging(`PackageManagerAutoUpdater: maxVersion ${maxVersion} is set, capping update from ${latest} to ${maxVersion}`);
646098
- if (gte("1.6.0:beta", maxVersion)) {
646099
- logForDebugging(`PackageManagerAutoUpdater: current version ${"1.6.0:beta"} is already at or above maxVersion ${maxVersion}, skipping update`);
646123
+ if (gte("1.6.1:beta", maxVersion)) {
646124
+ logForDebugging(`PackageManagerAutoUpdater: current version ${"1.6.1:beta"} is already at or above maxVersion ${maxVersion}, skipping update`);
646100
646125
  setUpdateAvailable(false);
646101
646126
  return;
646102
646127
  }
646103
646128
  latest = maxVersion;
646104
646129
  }
646105
- const hasUpdate = latest && !gte("1.6.0:beta", latest) && !shouldSkipVersion(latest);
646130
+ const hasUpdate = latest && !gte("1.6.1:beta", latest) && !shouldSkipVersion(latest);
646106
646131
  setUpdateAvailable(!!hasUpdate);
646107
646132
  if (hasUpdate) {
646108
- logForDebugging(`PackageManagerAutoUpdater: Update available ${"1.6.0:beta"} -> ${latest}`);
646133
+ logForDebugging(`PackageManagerAutoUpdater: Update available ${"1.6.1:beta"} -> ${latest}`);
646109
646134
  }
646110
646135
  };
646111
646136
  $3[0] = t1;
@@ -646139,7 +646164,7 @@ function PackageManagerAutoUpdater(t0) {
646139
646164
  wrap: "truncate",
646140
646165
  children: [
646141
646166
  "currentVersion: ",
646142
- "1.6.0:beta"
646167
+ "1.6.1:beta"
646143
646168
  ]
646144
646169
  });
646145
646170
  $3[3] = verbose;
@@ -646542,7 +646567,7 @@ function readNoticeEnvironment() {
646542
646567
  function UpdateAvailableNotice({
646543
646568
  detectInstallationType = getCurrentInstallationType,
646544
646569
  fetchLatestVersion,
646545
- currentVersion = "1.6.0:beta",
646570
+ currentVersion = "1.6.1:beta",
646546
646571
  readEnvironment = readNoticeEnvironment
646547
646572
  } = {}) {
646548
646573
  const [latestVersion, setLatestVersion] = import_react228.useState(() => getCachedLatestNpmVersionSync());
@@ -654393,7 +654418,7 @@ function buildStatusLineCommandInput(permissionMode, exceeds200kTokens, settings
654393
654418
  project_dir: getOriginalCwd(),
654394
654419
  added_dirs: addedDirs
654395
654420
  },
654396
- version: "1.6.0:beta",
654421
+ version: "1.6.1:beta",
654397
654422
  output_style: {
654398
654423
  name: outputStyleName
654399
654424
  },
@@ -665902,7 +665927,7 @@ async function submitTranscriptShare(messages, trigger, appearanceId) {
665902
665927
  } catch {}
665903
665928
  const data = {
665904
665929
  trigger,
665905
- version: "1.6.0:beta",
665930
+ version: "1.6.1:beta",
665906
665931
  platform: process.platform,
665907
665932
  transcript,
665908
665933
  subagentTranscripts: Object.keys(subagentTranscripts).length > 0 ? subagentTranscripts : undefined,
@@ -678226,17 +678251,19 @@ function RayuFirstRunSetup({
678226
678251
  label: "Use a Rayu API key — paste a rayu_sk_live_… key",
678227
678252
  value: "apikey"
678228
678253
  },
678229
- {
678230
- label: "Other provider — Anthropic, OpenAI, Bedrock, local, …",
678231
- value: "other"
678232
- }
678254
+ ...reason === "relaunch" ? [
678255
+ {
678256
+ label: "Other provider — Anthropic, OpenAI, Bedrock, local, …",
678257
+ value: "other"
678258
+ }
678259
+ ] : []
678233
678260
  ],
678234
678261
  onChange: (v2) => choose(v2),
678235
- onCancel: () => choose("other")
678262
+ onCancel: reason === "relaunch" ? () => choose("other") : undefined
678236
678263
  }),
678237
678264
  /* @__PURE__ */ jsx_runtime461.jsx(ThemedText, {
678238
678265
  dimColor: true,
678239
- children: "Enter to select"
678266
+ children: reason === "relaunch" ? "Enter to select · Esc for other providers" : "Enter to select — you can add other providers later with /connect"
678240
678267
  })
678241
678268
  ]
678242
678269
  });
@@ -678280,7 +678307,7 @@ function WelcomeV2() {
678280
678307
  dimColor: true,
678281
678308
  children: [
678282
678309
  "v",
678283
- "1.6.0:beta"
678310
+ "1.6.1:beta"
678284
678311
  ]
678285
678312
  })
678286
678313
  ]
@@ -679287,7 +679314,7 @@ function completeOnboarding() {
679287
679314
  saveGlobalConfig((current) => ({
679288
679315
  ...current,
679289
679316
  hasCompletedOnboarding: true,
679290
- lastOnboardingVersion: "1.6.0:beta"
679317
+ lastOnboardingVersion: "1.6.1:beta"
679291
679318
  }));
679292
679319
  }
679293
679320
  function showDialog(root2, renderer) {
@@ -684352,7 +684379,7 @@ function appendToLog(path24, message) {
684352
684379
  cwd: getFsImplementation().cwd(),
684353
684380
  userType: "external",
684354
684381
  sessionId: getSessionId(),
684355
- version: "1.6.0:beta"
684382
+ version: "1.6.1:beta"
684356
684383
  };
684357
684384
  getLogWriter(path24).write(messageWithTimestamp);
684358
684385
  }
@@ -688340,8 +688367,8 @@ async function getEnvLessBridgeConfig() {
688340
688367
  }
688341
688368
  async function checkEnvLessBridgeMinVersion() {
688342
688369
  const cfg = await getEnvLessBridgeConfig();
688343
- if (cfg.min_version && lt("1.6.0:beta", cfg.min_version)) {
688344
- return `Your version of RAYU (${"1.6.0:beta"}) is too old for Remote Control.
688370
+ if (cfg.min_version && lt("1.6.1:beta", cfg.min_version)) {
688371
+ return `Your version of RAYU (${"1.6.1:beta"}) is too old for Remote Control.
688345
688372
  Version ${cfg.min_version} or higher is required. Run \`claude update\` to update.`;
688346
688373
  }
688347
688374
  return null;
@@ -688814,7 +688841,7 @@ async function initBridgeCore(params) {
688814
688841
  const rawApi = createBridgeApiClient({
688815
688842
  baseUrl,
688816
688843
  getAccessToken,
688817
- runnerVersion: "1.6.0:beta",
688844
+ runnerVersion: "1.6.1:beta",
688818
688845
  onDebug: logForDebugging,
688819
688846
  onAuth401,
688820
688847
  getTrustedDeviceToken
@@ -696095,7 +696122,7 @@ ${customInstructions}` : customInstructions;
696095
696122
  }
696096
696123
  }
696097
696124
  logForDiagnosticsNoPII("info", "started", {
696098
- version: "1.6.0:beta",
696125
+ version: "1.6.1:beta",
696099
696126
  is_native_binary: isInBundledMode()
696100
696127
  });
696101
696128
  registerCleanup(async () => {
@@ -696818,7 +696845,7 @@ Usage: rayu --remote "your task description"`, () => gracefulShutdown(1));
696818
696845
  pendingHookMessages
696819
696846
  }, renderAndRun);
696820
696847
  }
696821
- }).version(`1.6.0:beta (${PRODUCT_NAME})`, "-v, --version", "Output the version number");
696848
+ }).version(`1.6.1:beta (${PRODUCT_NAME})`, "-v, --version", "Output the version number");
696822
696849
  program.option("-w, --worktree [name]", "Create a new git worktree for this session (optionally specify a name)");
696823
696850
  program.option("--tmux", "Create a tmux session for the worktree (requires --worktree). Uses iTerm2 native panes when available; use --tmux=classic for traditional tmux.");
696824
696851
  if (canUserConfigureAdvisor()) {
@@ -697283,7 +697310,7 @@ if (false) {}
697283
697310
  async function main2() {
697284
697311
  const args = process.argv.slice(2);
697285
697312
  if (args.length === 1 && (args[0] === "--version" || args[0] === "-v" || args[0] === "-V")) {
697286
- console.log(`${"1.6.0:beta"} (Rayu-CLI)`);
697313
+ console.log(`${"1.6.1:beta"} (Rayu-CLI)`);
697287
697314
  return;
697288
697315
  }
697289
697316
  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": "1.6.0",
3
+ "version": "1.6.1",
4
4
  "description": "Rayu-CLI — a multi-provider AI coding CLI",
5
5
  "type": "module",
6
6
  "bin": {