@rayu-dev/rayu-cli 1.3.439 → 1.3.440

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 +94 -84
  2. package/package.json +1 -1
package/dist/rayu.js CHANGED
@@ -37046,6 +37046,7 @@ var init_rayuConfig = __esm(() => {
37046
37046
  [/deepseek[-/]?v4[-/]?(flash|pro)/i, 1e6],
37047
37047
  [/minimax/i, 1e6],
37048
37048
  [/kimi-k1|kimi.*long/i, 200000],
37049
+ [/kimi[-_.]?k2[-_.]?(thinking|\d{4}|[5-9])/i, 256000],
37049
37050
  [/kimi|moonshot/i, 131072],
37050
37051
  [/qwen[-.]?3[-.]?(coder|next)/i, 256000],
37051
37052
  [/jamba/i, 256000],
@@ -148546,7 +148547,7 @@ var init_auth = __esm(() => {
148546
148547
 
148547
148548
  // src/utils/userAgent.ts
148548
148549
  function getRayuUserAgent() {
148549
- return `rayu/${"1.3.439"}`;
148550
+ return `rayu/${"1.3.440"}`;
148550
148551
  }
148551
148552
  var getClaudeCodeUserAgent;
148552
148553
  var init_userAgent = __esm(() => {
@@ -148572,7 +148573,7 @@ function getUserAgent() {
148572
148573
  const clientApp = process.env.RAYU_AGENT_SDK_CLIENT_APP ? `, client-app/${process.env.RAYU_AGENT_SDK_CLIENT_APP}` : "";
148573
148574
  const workload = getWorkload();
148574
148575
  const workloadSuffix = workload ? `, workload/${workload}` : "";
148575
- return `rayu/${"1.3.439"} (${"external"}, ${process.env.RAYU_ENTRYPOINT ?? "cli"}${agentSdkVersion}${clientApp}${workloadSuffix})`;
148576
+ return `rayu/${"1.3.440"} (${"external"}, ${process.env.RAYU_ENTRYPOINT ?? "cli"}${agentSdkVersion}${clientApp}${workloadSuffix})`;
148576
148577
  }
148577
148578
  function getMCPUserAgent() {
148578
148579
  const parts = [];
@@ -148586,7 +148587,7 @@ function getMCPUserAgent() {
148586
148587
  parts.push(`client-app/${process.env.RAYU_AGENT_SDK_CLIENT_APP}`);
148587
148588
  }
148588
148589
  const suffix = parts.length > 0 ? ` (${parts.join(", ")})` : "";
148589
- return `rayu/${"1.3.439"}${suffix}`;
148590
+ return `rayu/${"1.3.440"}${suffix}`;
148590
148591
  }
148591
148592
  function getWebFetchUserAgent() {
148592
148593
  return `Rayu-User (${getRayuUserAgent()})`;
@@ -148709,7 +148710,7 @@ var init_user = __esm(() => {
148709
148710
  deviceId,
148710
148711
  sessionId: getSessionId(),
148711
148712
  email: getEmail(),
148712
- appVersion: "1.3.439",
148713
+ appVersion: "1.3.440",
148713
148714
  platform: getHostPlatformForAnalytics(),
148714
148715
  organizationUuid,
148715
148716
  accountUuid,
@@ -165891,6 +165892,9 @@ function makeGatewayRoutingFetch(provider, inner = globalThis.fetch) {
165891
165892
  headers.set("X-Rayu-Provider", provider.id);
165892
165893
  try {
165893
165894
  const res = await inner(gatewayUrl, { ...init, headers });
165895
+ if (res.headers.get(LIMIT_HEADER)) {
165896
+ return res;
165897
+ }
165894
165898
  if (!res.headers.get(PROXIED_HEADER)) {
165895
165899
  return inner(input, init);
165896
165900
  }
@@ -165901,7 +165905,7 @@ function makeGatewayRoutingFetch(provider, inner = globalThis.fetch) {
165901
165905
  };
165902
165906
  return wrapped;
165903
165907
  }
165904
- var PROXIED_HEADER = "x-rayu-proxied";
165908
+ var PROXIED_HEADER = "x-rayu-proxied", LIMIT_HEADER = "x-rayu-limit";
165905
165909
  var init_gatewayRouting = __esm(() => {
165906
165910
  init_rayuSession();
165907
165911
  init_envUtils();
@@ -184593,7 +184597,7 @@ var init_metadata = __esm(() => {
184593
184597
  COMPOUND_OPERATOR_REGEX = /\s*(?:&&|\|\||[;|])\s*/;
184594
184598
  WHITESPACE_REGEX = /\s+/;
184595
184599
  getVersionBase = memoize_default(() => {
184596
- const match = "1.3.439".match(/^\d+\.\d+\.\d+(?:-[a-z]+)?/);
184600
+ const match = "1.3.440".match(/^\d+\.\d+\.\d+(?:-[a-z]+)?/);
184597
184601
  return match ? match[0] : undefined;
184598
184602
  });
184599
184603
  buildEnvContext = memoize_default(async () => {
@@ -184632,7 +184636,7 @@ var init_metadata = __esm(() => {
184632
184636
  },
184633
184637
  isGithubAction: isEnvTruthy(process.env.GITHUB_ACTIONS),
184634
184638
  isRayuAction: isEnvTruthy(process.env.RAYU_ACTION),
184635
- version: "1.3.439",
184639
+ version: "1.3.440",
184636
184640
  versionBase: getVersionBase(),
184637
184641
  buildTime: "",
184638
184642
  deploymentEnvironment: env4.detectDeploymentEnvironment(),
@@ -185246,7 +185250,7 @@ function initialize1PEventLogging() {
185246
185250
  const platform2 = getPlatform();
185247
185251
  const attributes = {
185248
185252
  [import_semantic_conventions.ATTR_SERVICE_NAME]: "rayu",
185249
- [import_semantic_conventions.ATTR_SERVICE_VERSION]: "1.3.439"
185253
+ [import_semantic_conventions.ATTR_SERVICE_VERSION]: "1.3.440"
185250
185254
  };
185251
185255
  if (platform2 === "wsl") {
185252
185256
  const wslVersion = getWslVersion();
@@ -185273,7 +185277,7 @@ function initialize1PEventLogging() {
185273
185277
  })
185274
185278
  ]
185275
185279
  });
185276
- firstPartyEventLogger = firstPartyEventLoggerProvider.getLogger("io.rayu.events", "1.3.439");
185280
+ firstPartyEventLogger = firstPartyEventLoggerProvider.getLogger("io.rayu.events", "1.3.440");
185277
185281
  }
185278
185282
  async function reinitialize1PEventLoggingIfConfigChanged() {
185279
185283
  if (!is1PEventLoggingEnabled() || !firstPartyEventLoggerProvider) {
@@ -221189,7 +221193,7 @@ function getAttributionHeader(fingerprint) {
221189
221193
  if (!isAttributionHeaderEnabled()) {
221190
221194
  return "";
221191
221195
  }
221192
- const version2 = `${"1.3.439"}.${fingerprint}`;
221196
+ const version2 = `${"1.3.440"}.${fingerprint}`;
221193
221197
  const entrypoint = process.env.CLAUDE_CODE_ENTRYPOINT ?? "unknown";
221194
221198
  const cch = "";
221195
221199
  const workload = getWorkload();
@@ -306109,7 +306113,7 @@ function getTelemetryAttributes() {
306109
306113
  attributes["session.id"] = sessionId;
306110
306114
  }
306111
306115
  if (shouldIncludeAttribute("OTEL_METRICS_INCLUDE_VERSION")) {
306112
- attributes["app.version"] = "1.3.439";
306116
+ attributes["app.version"] = "1.3.440";
306113
306117
  }
306114
306118
  const oauthAccount = getOauthAccountInfo();
306115
306119
  if (oauthAccount) {
@@ -416464,7 +416468,7 @@ function getInstallationEnv() {
416464
416468
  return;
416465
416469
  }
416466
416470
  function getClaudeCodeVersion() {
416467
- return "1.3.439";
416471
+ return "1.3.440";
416468
416472
  }
416469
416473
  async function getInstalledVSCodeExtensionVersion(command) {
416470
416474
  const { stdout } = await execFileNoThrow(command, ["--list-extensions", "--show-versions"], {
@@ -421702,7 +421706,7 @@ async function setupSdkMcpClients(sdkMcpConfigs, sendMcpMessage) {
421702
421706
  const client4 = new Client({
421703
421707
  name: "claude-code",
421704
421708
  title: "RAYU",
421705
- version: "1.3.439",
421709
+ version: "1.3.440",
421706
421710
  description: "Anthropic's agentic coding tool",
421707
421711
  websiteUrl: PRODUCT_URL
421708
421712
  }, {
@@ -422019,7 +422023,7 @@ var init_client7 = __esm(() => {
422019
422023
  const client4 = new Client({
422020
422024
  name: "claude-code",
422021
422025
  title: "RAYU",
422022
- version: "1.3.439",
422026
+ version: "1.3.440",
422023
422027
  description: "Anthropic's agentic coding tool",
422024
422028
  websiteUrl: PRODUCT_URL
422025
422029
  }, {
@@ -436824,7 +436828,7 @@ function computeFingerprint(messageText, version2) {
436824
436828
  }
436825
436829
  function computeFingerprintFromMessages(messages) {
436826
436830
  const firstMessageText = extractFirstMessageText(messages);
436827
- return computeFingerprint(firstMessageText, "1.3.439");
436831
+ return computeFingerprint(firstMessageText, "1.3.440");
436828
436832
  }
436829
436833
  var FINGERPRINT_SALT = "59cf53e54c78";
436830
436834
  var init_fingerprint = () => {};
@@ -436866,7 +436870,7 @@ async function sideQuery(opts) {
436866
436870
  betas.push(STRUCTURED_OUTPUTS_BETA_HEADER);
436867
436871
  }
436868
436872
  const messageText = extractFirstUserMessageText(messages);
436869
- const fingerprint = computeFingerprint(messageText, "1.3.439");
436873
+ const fingerprint = computeFingerprint(messageText, "1.3.440");
436870
436874
  const attributionHeader = getAttributionHeader(fingerprint);
436871
436875
  const systemBlocks = [
436872
436876
  attributionHeader ? { type: "text", text: attributionHeader } : null,
@@ -512254,7 +512258,7 @@ ${m3.content}`,
512254
512258
  }
512255
512259
  return wrapMessagesInSystemReminder([
512256
512260
  createUserMessage({
512257
- content: `The following skills are available for use with the Skill tool:
512261
+ content: `The following skills are available via the Skill tool. Before you start the user's task, you MUST first scan this list and decide whether any skill matches what is being asked. A skill is a pre-built, validated procedure for that kind of task — if one clearly matches, invoke it with the Skill tool BEFORE doing any work or writing any other response, and follow the skill's procedure instead of improvising your own. Pick the single most relevant skill (if several could apply, choose the most specific). Only skip this when no listed skill genuinely fits the task — do not force a skill that does not match, and do not claim to use a skill without actually calling the tool.
512258
512262
 
512259
512263
  ${attachment.content}`,
512260
512264
  isMeta: true
@@ -522478,6 +522482,7 @@ function getSessionSpecificGuidanceSection(enabledTools, skillToolCommands) {
522478
522482
  `For simple, directed codebase searches (e.g. for a specific file/class/function) use ${searchTools} directly.`,
522479
522483
  `For broader codebase exploration and deep research, use the ${AGENT_TOOL_NAME} tool with subagent_type=${EXPLORE_AGENT.agentType}. This is slower than using ${searchTools} directly, so use this only when a simple, directed search proves to be insufficient or when your task will clearly require more than ${EXPLORE_AGENT_MIN_QUERIES} queries.`
522480
522484
  ] : [],
522485
+ hasSkills ? `Skills are pre-built, validated procedures for specific tasks. At the START of every task, FIRST review the available skills (listed via the ${SKILL_TOOL_NAME} tool and in system-reminder messages) and decide whether one matches the user's request. If a skill clearly matches, invoke it with the ${SKILL_TOOL_NAME} tool BEFORE doing the work and follow its procedure rather than improvising — prefer a matching skill over an ad-hoc approach. Choose the single most relevant skill; if none clearly fits, proceed normally without forcing one.` : null,
522481
522486
  hasSkills ? `/<skill-name> (e.g., /commit) is shorthand for users to invoke a user-invocable skill. When executed, the skill gets expanded to a full prompt. Use the ${SKILL_TOOL_NAME} tool to execute them. IMPORTANT: Only use ${SKILL_TOOL_NAME} for skills listed in its user-invocable skills section - do not guess or use built-in CLI commands.` : null,
522482
522487
  DISCOVER_SKILLS_TOOL_NAME !== null && hasSkills && enabledTools.has(DISCOVER_SKILLS_TOOL_NAME) ? getDiscoverSkillsGuidance() : null,
522483
522488
  null
@@ -532043,7 +532048,7 @@ function Feedback({
532043
532048
  platform: env4.platform,
532044
532049
  gitRepo: envInfo.isGit,
532045
532050
  terminal: env4.terminal,
532046
- version: "1.3.439",
532051
+ version: "1.3.440",
532047
532052
  transcript: normalizeMessagesForAPI(messages),
532048
532053
  errors: sanitizedErrors,
532049
532054
  lastApiRequest: getLastAPIRequest(),
@@ -532235,7 +532240,7 @@ function Feedback({
532235
532240
  ", ",
532236
532241
  env4.terminal,
532237
532242
  ", v",
532238
- "1.3.439"
532243
+ "1.3.440"
532239
532244
  ]
532240
532245
  }, undefined, true, undefined, this)
532241
532246
  ]
@@ -532341,7 +532346,7 @@ ${sanitizedDescription}
532341
532346
  ` + `**Environment Info**
532342
532347
  ` + `- Platform: ${env4.platform}
532343
532348
  ` + `- Terminal: ${env4.terminal}
532344
- ` + `- Version: ${"1.3.439"}
532349
+ ` + `- Version: ${"1.3.440"}
532345
532350
  ` + `- Feedback ID: ${feedbackId}
532346
532351
  ` + `
532347
532352
  **Errors**
@@ -535181,9 +535186,9 @@ async function assertMinVersion() {
535181
535186
  if (false) {}
535182
535187
  try {
535183
535188
  const versionConfig = await getDynamicConfig_BLOCKS_ON_INIT("tengu_version_config", { minVersion: "0.0.0" });
535184
- if (versionConfig.minVersion && lt("1.3.439", versionConfig.minVersion)) {
535189
+ if (versionConfig.minVersion && lt("1.3.440", versionConfig.minVersion)) {
535185
535190
  console.error(`
535186
- It looks like your version of RAYU (${"1.3.439"}) needs an update.
535191
+ It looks like your version of RAYU (${"1.3.440"}) needs an update.
535187
535192
  A newer version (${versionConfig.minVersion} or higher) is required to continue.
535188
535193
 
535189
535194
  To update, please run:
@@ -535409,7 +535414,7 @@ async function installGlobalPackage(specificVersion) {
535409
535414
  logError2(new AutoUpdaterError("Another process is currently installing an update"));
535410
535415
  logEvent("tengu_auto_updater_lock_contention", {
535411
535416
  pid: process.pid,
535412
- currentVersion: "1.3.439"
535417
+ currentVersion: "1.3.440"
535413
535418
  });
535414
535419
  return "in_progress";
535415
535420
  }
@@ -535418,7 +535423,7 @@ async function installGlobalPackage(specificVersion) {
535418
535423
  if (!env4.isRunningWithBun() && env4.isNpmFromWindowsPath()) {
535419
535424
  logError2(new Error("Windows NPM detected in WSL environment"));
535420
535425
  logEvent("tengu_auto_updater_windows_npm_in_wsl", {
535421
- currentVersion: "1.3.439"
535426
+ currentVersion: "1.3.440"
535422
535427
  });
535423
535428
  console.error(`
535424
535429
  Error: Windows NPM detected in WSL
@@ -535954,7 +535959,7 @@ function detectLinuxGlobPatternWarnings() {
535954
535959
  }
535955
535960
  async function getDoctorDiagnostic() {
535956
535961
  const installationType = await getCurrentInstallationType();
535957
- const version2 = typeof MACRO !== "undefined" ? "1.3.439" : "unknown";
535962
+ const version2 = typeof MACRO !== "undefined" ? "1.3.440" : "unknown";
535958
535963
  const installationPath = await getInstallationPath();
535959
535964
  const invokedBinary = getInvokedBinary();
535960
535965
  const multipleInstallations = await detectMultipleInstallations();
@@ -536749,8 +536754,8 @@ async function updateLatest(channelOrVersion, forceReinstall = false) {
536749
536754
  const maxVersion = await getMaxVersion();
536750
536755
  if (maxVersion && gt(version2, maxVersion)) {
536751
536756
  logForDebugging(`Native installer: maxVersion ${maxVersion} is set, capping update from ${version2} to ${maxVersion}`);
536752
- if (gte("1.3.439", maxVersion)) {
536753
- logForDebugging(`Native installer: current version ${"1.3.439"} is already at or above maxVersion ${maxVersion}, skipping update`);
536757
+ if (gte("1.3.440", maxVersion)) {
536758
+ logForDebugging(`Native installer: current version ${"1.3.440"} is already at or above maxVersion ${maxVersion}, skipping update`);
536754
536759
  logEvent("tengu_native_update_skipped_max_version", {
536755
536760
  latency_ms: Date.now() - startTime,
536756
536761
  max_version: maxVersion,
@@ -536761,7 +536766,7 @@ async function updateLatest(channelOrVersion, forceReinstall = false) {
536761
536766
  version2 = maxVersion;
536762
536767
  }
536763
536768
  }
536764
- if (!forceReinstall && version2 === "1.3.439" && await versionIsAvailable(version2) && await isPossibleClaudeBinary(executablePath)) {
536769
+ if (!forceReinstall && version2 === "1.3.440" && await versionIsAvailable(version2) && await isPossibleClaudeBinary(executablePath)) {
536765
536770
  logForDebugging(`Found ${version2} at ${executablePath}, skipping install`);
536766
536771
  logEvent("tengu_native_update_complete", {
536767
536772
  latency_ms: Date.now() - startTime,
@@ -537957,7 +537962,7 @@ function buildPrimarySection() {
537957
537962
  }, undefined, false, undefined, this);
537958
537963
  return [{
537959
537964
  label: "Version",
537960
- value: "1.3.439"
537965
+ value: "1.3.440"
537961
537966
  }, {
537962
537967
  label: "Session name",
537963
537968
  value: nameValue
@@ -541648,7 +541653,7 @@ function Config({
541648
541653
  }
541649
541654
  }, undefined, false, undefined, this)
541650
541655
  }, undefined, false, undefined, this) : showSubmenu === "ChannelDowngrade" ? /* @__PURE__ */ jsx_dev_runtime170.jsxDEV(ChannelDowngradeDialog, {
541651
- currentVersion: "1.3.439",
541656
+ currentVersion: "1.3.440",
541652
541657
  onChoice: (choice) => {
541653
541658
  setShowSubmenu(null);
541654
541659
  setTabsHidden(false);
@@ -541660,7 +541665,7 @@ function Config({
541660
541665
  autoUpdatesChannel: "stable"
541661
541666
  };
541662
541667
  if (choice === "stay") {
541663
- newSettings.minimumVersion = "1.3.439";
541668
+ newSettings.minimumVersion = "1.3.440";
541664
541669
  }
541665
541670
  updateSettingsForSource("userSettings", newSettings);
541666
541671
  setSettingsData((prev_27) => ({
@@ -549722,7 +549727,7 @@ function HelpV2(t0) {
549722
549727
  let t6;
549723
549728
  if ($3[31] !== tabs) {
549724
549729
  t6 = /* @__PURE__ */ jsx_dev_runtime197.jsxDEV(Tabs, {
549725
- title: `Rayu-CLI v${"1.3.439"}`,
549730
+ title: `Rayu-CLI v${"1.3.440"}`,
549726
549731
  color: "professionalBlue",
549727
549732
  defaultTab: "general",
549728
549733
  children: tabs
@@ -569809,7 +569814,7 @@ function getRecentReleaseNotes(currentVersion, previousVersion, changelogContent
569809
569814
  }
569810
569815
  return [];
569811
569816
  }
569812
- async function checkForReleaseNotes(lastSeenVersion, currentVersion = "1.3.439") {
569817
+ async function checkForReleaseNotes(lastSeenVersion, currentVersion = "1.3.440") {
569813
569818
  if (false) {}
569814
569819
  const cachedChangelog = await getStoredChangelog();
569815
569820
  if (lastSeenVersion !== currentVersion || !cachedChangelog) {
@@ -569822,7 +569827,7 @@ async function checkForReleaseNotes(lastSeenVersion, currentVersion = "1.3.439")
569822
569827
  releaseNotes
569823
569828
  };
569824
569829
  }
569825
- function checkForReleaseNotesSync(lastSeenVersion, currentVersion = "1.3.439") {
569830
+ function checkForReleaseNotesSync(lastSeenVersion, currentVersion = "1.3.440") {
569826
569831
  if (false) {}
569827
569832
  const releaseNotes = getRecentReleaseNotes(currentVersion, lastSeenVersion);
569828
569833
  return {
@@ -569950,7 +569955,7 @@ function getRecentActivitySync() {
569950
569955
  return cachedActivity;
569951
569956
  }
569952
569957
  function getLogoDisplayData() {
569953
- const version2 = process.env.DEMO_VERSION ?? "1.3.439";
569958
+ const version2 = process.env.DEMO_VERSION ?? "1.3.440";
569954
569959
  const serverUrl = getDirectConnectServerUrl();
569955
569960
  const displayPath = process.env.DEMO_VERSION ? "/code/claude" : getDisplayPath(getCwd());
569956
569961
  const cwd2 = serverUrl ? `${displayPath} in ${serverUrl.replace(/^https?:\/\//, "")}` : displayPath;
@@ -571197,7 +571202,7 @@ function LogoV2() {
571197
571202
  if ($3[2] === Symbol.for("react.memo_cache_sentinel")) {
571198
571203
  t2 = () => {
571199
571204
  const currentConfig = getGlobalConfig();
571200
- if (currentConfig.lastReleaseNotesSeen === "1.3.439") {
571205
+ if (currentConfig.lastReleaseNotesSeen === "1.3.440") {
571201
571206
  return;
571202
571207
  }
571203
571208
  saveGlobalConfig(_temp327);
@@ -571675,7 +571680,7 @@ function LogoV2() {
571675
571680
  t24 = $3[61];
571676
571681
  }
571677
571682
  const _latestNpm = getCachedLatestNpmVersionSync();
571678
- const _updateFeeds = _latestNpm && gt(_latestNpm, "1.3.439") ? [createUpdateAvailableFeed("1.3.439", _latestNpm)] : [];
571683
+ const _updateFeeds = _latestNpm && gt(_latestNpm, "1.3.440") ? [createUpdateAvailableFeed("1.3.440", _latestNpm)] : [];
571679
571684
  const t25 = layoutMode === "horizontal" && /* @__PURE__ */ jsx_dev_runtime239.jsxDEV(FeedColumn, {
571680
571685
  feeds: showOnboarding ? [createProjectOnboardingFeed(getSteps()), createRecentActivityFeed(activities)] : showGuestPassesUpsell ? [createRecentActivityFeed(activities), createGuestPassesFeed()] : showOverageCreditUpsell ? [createRecentActivityFeed(activities), createOverageCreditFeed()] : [createRecentActivityFeed(activities), ..._updateFeeds, createWhatsNewFeed(changelog)],
571681
571686
  maxWidth: rightWidth
@@ -571875,12 +571880,12 @@ function LogoV2() {
571875
571880
  return t41;
571876
571881
  }
571877
571882
  function _temp327(current) {
571878
- if (current.lastReleaseNotesSeen === "1.3.439") {
571883
+ if (current.lastReleaseNotesSeen === "1.3.440") {
571879
571884
  return current;
571880
571885
  }
571881
571886
  return {
571882
571887
  ...current,
571883
- lastReleaseNotesSeen: "1.3.439"
571888
+ lastReleaseNotesSeen: "1.3.440"
571884
571889
  };
571885
571890
  }
571886
571891
  function _temp241(s_0) {
@@ -596787,7 +596792,7 @@ async function captureMemoryDiagnostics(trigger, dumpNumber = 0) {
596787
596792
  smapsRollup,
596788
596793
  platform: process.platform,
596789
596794
  nodeVersion: process.version,
596790
- ccVersion: "1.3.439"
596795
+ ccVersion: "1.3.440"
596791
596796
  };
596792
596797
  }
596793
596798
  async function performHeapDump(trigger = "manual", dumpNumber = 0) {
@@ -597309,7 +597314,7 @@ var init_bridge_kick = __esm(() => {
597309
597314
  var call49 = async () => {
597310
597315
  return {
597311
597316
  type: "text",
597312
- value: "1.3.439"
597317
+ value: "1.3.440"
597313
597318
  };
597314
597319
  }, version2, version_default;
597315
597320
  var init_version = __esm(() => {
@@ -598836,6 +598841,11 @@ function formatRayuUsageSummary(c4) {
598836
598841
  if (c4.topUpEnabled) {
598837
598842
  lines2.push(`Top-up balance: ${c4.topupBalance.toLocaleString()} credits`);
598838
598843
  }
598844
+ if (c4.maxDailyTurns != null && c4.maxDailyTurns > 0) {
598845
+ const used = c4.turnsUsedToday ?? 0;
598846
+ const left = c4.turnsRemaining ?? Math.max(0, c4.maxDailyTurns - used);
598847
+ lines2.push(`Daily turns: ${used.toLocaleString()} / ${c4.maxDailyTurns.toLocaleString()} used · ${left.toLocaleString()} left (resets in ${fmtReset(c4.turnsResetSeconds ?? 0)})`);
598848
+ }
598839
598849
  return lines2.join(`
598840
598850
  `);
598841
598851
  }
@@ -607233,7 +607243,7 @@ function generateHtmlReport(data, insights) {
607233
607243
  </html>`;
607234
607244
  }
607235
607245
  function buildExportData(data, insights, facets, remoteStats) {
607236
- const version3 = typeof MACRO !== "undefined" ? "1.3.439" : "unknown";
607246
+ const version3 = typeof MACRO !== "undefined" ? "1.3.440" : "unknown";
607237
607247
  const remote_hosts_collected = remoteStats?.hosts.filter((h3) => h3.sessionCount > 0).map((h3) => h3.name);
607238
607248
  const facets_summary = {
607239
607249
  total: facets.size,
@@ -611143,7 +611153,7 @@ var init_sessionStorage = __esm(() => {
611143
611153
  init_settings2();
611144
611154
  init_slowOperations();
611145
611155
  init_uuid();
611146
- VERSION6 = typeof MACRO !== "undefined" ? "1.3.439" : "unknown";
611156
+ VERSION6 = typeof MACRO !== "undefined" ? "1.3.440" : "unknown";
611147
611157
  MAX_TOMBSTONE_REWRITE_BYTES = 50 * 1024 * 1024;
611148
611158
  SKIP_FIRST_PROMPT_PATTERN = /^(?:\s*<[a-z][\w-]*[\s>]|\[Request interrupted by user[^\]]*\])/;
611149
611159
  EPHEMERAL_PROGRESS_TYPES = new Set([
@@ -612363,7 +612373,7 @@ var init_filesystem = __esm(() => {
612363
612373
  });
612364
612374
  getBundledSkillsRoot = memoize_default(function getBundledSkillsRoot2() {
612365
612375
  const nonce = randomBytes19(16).toString("hex");
612366
- return join154(getClaudeTempDir(), "bundled-skills", "1.3.439", nonce);
612376
+ return join154(getClaudeTempDir(), "bundled-skills", "1.3.440", nonce);
612367
612377
  });
612368
612378
  getResolvedWorkingDirPaths = memoize_default(getPathsForPermissionCheck);
612369
612379
  });
@@ -617478,7 +617488,7 @@ __export(exports_update, {
617478
617488
  import { execFileSync as execFileSync3 } from "node:child_process";
617479
617489
  import { homedir as homedir35 } from "os";
617480
617490
  async function update() {
617481
- writeToStdout(`Current version: ${"1.3.439"}
617491
+ writeToStdout(`Current version: ${"1.3.440"}
617482
617492
  `);
617483
617493
  const isBundled = isInBundledMode();
617484
617494
  if (isBundled) {
@@ -617504,13 +617514,13 @@ Manual check: npm view ${"@rayu-dev/rayu-cli"} version
617504
617514
  process.exit(1);
617505
617515
  return;
617506
617516
  }
617507
- if (latestVersion === "1.3.439") {
617517
+ if (latestVersion === "1.3.440") {
617508
617518
  writeToStdout(source_default.green(`
617509
- Rayu CLI is up to date (${"1.3.439"})
617519
+ Rayu CLI is up to date (${"1.3.440"})
617510
617520
  `));
617511
617521
  process.exit(0);
617512
617522
  }
617513
- writeToStdout(`New version available: ${latestVersion} (current: ${"1.3.439"})
617523
+ writeToStdout(`New version available: ${latestVersion} (current: ${"1.3.440"})
617514
617524
  `);
617515
617525
  writeToStdout(`Installing update...
617516
617526
 
@@ -617534,7 +617544,7 @@ Try manually:
617534
617544
  return;
617535
617545
  }
617536
617546
  writeToStdout(source_default.green(`
617537
- Successfully updated from ${"1.3.439"} to ${latestVersion}
617547
+ Successfully updated from ${"1.3.440"} to ${latestVersion}
617538
617548
  `));
617539
617549
  process.exit(0);
617540
617550
  }
@@ -617548,14 +617558,14 @@ async function updateNativeBinary() {
617548
617558
  } catch {
617549
617559
  latestVersion = "";
617550
617560
  }
617551
- if (latestVersion && latestVersion === "1.3.439") {
617561
+ if (latestVersion && latestVersion === "1.3.440") {
617552
617562
  writeToStdout(source_default.green(`
617553
- Rayu CLI is up to date (1.3.439)
617563
+ Rayu CLI is up to date (1.3.440)
617554
617564
  `));
617555
617565
  process.exit(0);
617556
617566
  }
617557
617567
  if (latestVersion) {
617558
- writeToStdout(`New version available: ${latestVersion} (current: 1.3.439)
617568
+ writeToStdout(`New version available: ${latestVersion} (current: 1.3.440)
617559
617569
  `);
617560
617570
  }
617561
617571
  writeToStdout(`Downloading and installing update...
@@ -617570,13 +617580,13 @@ Rayu CLI is up to date (1.3.439)
617570
617580
  return;
617571
617581
  }
617572
617582
  writeToStdout(source_default.green(`
617573
- Rayu CLI is up to date (1.3.439)
617583
+ Rayu CLI is up to date (1.3.440)
617574
617584
  `));
617575
617585
  process.exit(0);
617576
617586
  }
617577
617587
  const updatedTo = result.latestVersion ?? latestVersion ?? "latest";
617578
617588
  writeToStdout(source_default.green(`
617579
- Successfully updated from 1.3.439 to ${updatedTo}
617589
+ Successfully updated from 1.3.440 to ${updatedTo}
617580
617590
  `));
617581
617591
  writeToStdout(`Restart your terminal to use the new version.
617582
617592
  `);
@@ -617607,7 +617617,7 @@ __export(exports_uninstall, {
617607
617617
  import { execFileSync as execFileSync4 } from "node:child_process";
617608
617618
  import { homedir as homedir36 } from "os";
617609
617619
  async function uninstall() {
617610
- writeToStdout(`Uninstalling Rayu CLI (${"1.3.439"})...
617620
+ writeToStdout(`Uninstalling Rayu CLI (${"1.3.440"})...
617611
617621
  `);
617612
617622
  writeToStdout(`Running: npm uninstall -g ${"@rayu-dev/rayu-cli"}
617613
617623
 
@@ -617630,7 +617640,7 @@ Try running manually:
617630
617640
  process.exit(1);
617631
617641
  }
617632
617642
  writeToStdout(source_default.green(`
617633
- Successfully uninstalled ${"@rayu-dev/rayu-cli"} ${"1.3.439"}
617643
+ Successfully uninstalled ${"@rayu-dev/rayu-cli"} ${"1.3.440"}
617634
617644
  `));
617635
617645
  writeToStdout(`Thanks for using Rayu CLI!
617636
617646
  `);
@@ -617682,7 +617692,7 @@ function showFirstRunWelcome() {
617682
617692
  `);
617683
617693
  try {
617684
617694
  mkdirSync16(getRayuConfigHomeDir(), { recursive: true });
617685
- writeFileSync18(markerPath(), "1.3.439", "utf8");
617695
+ writeFileSync18(markerPath(), "1.3.440", "utf8");
617686
617696
  } catch {}
617687
617697
  }
617688
617698
  var init_firstRun = __esm(() => {
@@ -629525,7 +629535,7 @@ async function initializeBetaTracing(resource) {
629525
629535
  });
629526
629536
  import_api_logs.logs.setGlobalLoggerProvider(loggerProvider);
629527
629537
  setLoggerProvider(loggerProvider);
629528
- const eventLogger = import_api_logs.logs.getLogger("com.anthropic.claude_code.events", "1.3.439");
629538
+ const eventLogger = import_api_logs.logs.getLogger("com.anthropic.claude_code.events", "1.3.440");
629529
629539
  setEventLogger(eventLogger);
629530
629540
  process.on("beforeExit", async () => {
629531
629541
  await loggerProvider?.forceFlush();
@@ -629565,7 +629575,7 @@ async function initializeTelemetry() {
629565
629575
  const platform4 = getPlatform();
629566
629576
  const baseAttributes = {
629567
629577
  [import_semantic_conventions2.ATTR_SERVICE_NAME]: "claude-code",
629568
- [import_semantic_conventions2.ATTR_SERVICE_VERSION]: "1.3.439"
629578
+ [import_semantic_conventions2.ATTR_SERVICE_VERSION]: "1.3.440"
629569
629579
  };
629570
629580
  if (platform4 === "wsl") {
629571
629581
  const wslVersion = getWslVersion();
@@ -629610,7 +629620,7 @@ async function initializeTelemetry() {
629610
629620
  } catch {}
629611
629621
  };
629612
629622
  registerCleanup(shutdownTelemetry2);
629613
- return meterProvider2.getMeter("com.anthropic.claude_code", "1.3.439");
629623
+ return meterProvider2.getMeter("com.anthropic.claude_code", "1.3.440");
629614
629624
  }
629615
629625
  const meterProvider = new import_sdk_metrics2.MeterProvider({
629616
629626
  resource,
@@ -629630,7 +629640,7 @@ async function initializeTelemetry() {
629630
629640
  });
629631
629641
  import_api_logs.logs.setGlobalLoggerProvider(loggerProvider);
629632
629642
  setLoggerProvider(loggerProvider);
629633
- const eventLogger = import_api_logs.logs.getLogger("com.anthropic.claude_code.events", "1.3.439");
629643
+ const eventLogger = import_api_logs.logs.getLogger("com.anthropic.claude_code.events", "1.3.440");
629634
629644
  setEventLogger(eventLogger);
629635
629645
  logForDebugging("[3P telemetry] Event logger set successfully");
629636
629646
  process.on("beforeExit", async () => {
@@ -629692,7 +629702,7 @@ Current timeout: ${timeoutMs}ms
629692
629702
  }
629693
629703
  };
629694
629704
  registerCleanup(shutdownTelemetry);
629695
- return meterProvider.getMeter("com.anthropic.claude_code", "1.3.439");
629705
+ return meterProvider.getMeter("com.anthropic.claude_code", "1.3.440");
629696
629706
  }
629697
629707
  async function flushTelemetry() {
629698
629708
  const meterProvider = getMeterProvider();
@@ -631205,7 +631215,7 @@ function buildSystemInitMessage(inputs) {
631205
631215
  slash_commands: inputs.commands.filter((c4) => c4.userInvocable !== false).map((c4) => c4.name),
631206
631216
  apiKeySource: getAnthropicApiKeyWithSource().source,
631207
631217
  betas: getSdkBetas(),
631208
- claude_code_version: "1.3.439",
631218
+ claude_code_version: "1.3.440",
631209
631219
  output_style: outputStyle2,
631210
631220
  agents: inputs.agents.map((agent) => agent.agentType),
631211
631221
  skills: inputs.skills.filter((s2) => s2.userInvocable !== false).map((skill) => skill.name),
@@ -647539,7 +647549,7 @@ var init_useVoiceEnabled = __esm(() => {
647539
647549
  function getSemverPart(version3) {
647540
647550
  return `${import_semver12.major(version3, { loose: true })}.${import_semver12.minor(version3, { loose: true })}.${import_semver12.patch(version3, { loose: true })}`;
647541
647551
  }
647542
- function useUpdateNotification(updatedVersion, initialVersion = "1.3.439") {
647552
+ function useUpdateNotification(updatedVersion, initialVersion = "1.3.440") {
647543
647553
  const [lastNotifiedSemver, setLastNotifiedSemver] = import_react217.useState(() => getSemverPart(initialVersion));
647544
647554
  if (!updatedVersion) {
647545
647555
  return null;
@@ -647579,7 +647589,7 @@ function AutoUpdater({
647579
647589
  return;
647580
647590
  }
647581
647591
  if (false) {}
647582
- const currentVersion = "1.3.439";
647592
+ const currentVersion = "1.3.440";
647583
647593
  const channel = getInitialSettings()?.autoUpdatesChannel ?? "latest";
647584
647594
  let latestVersion = await getLatestVersion(channel);
647585
647595
  const isDisabled = isAutoUpdaterDisabled();
@@ -647792,12 +647802,12 @@ function NativeAutoUpdater({
647792
647802
  logEvent("tengu_native_auto_updater_start", {});
647793
647803
  try {
647794
647804
  const maxVersion = await getMaxVersion();
647795
- if (maxVersion && gt("1.3.439", maxVersion)) {
647805
+ if (maxVersion && gt("1.3.440", maxVersion)) {
647796
647806
  const msg = await getMaxVersionMessage();
647797
647807
  setMaxVersionIssue(msg ?? "affects your version");
647798
647808
  }
647799
647809
  const result = await installLatest(channel);
647800
- const currentVersion = "1.3.439";
647810
+ const currentVersion = "1.3.440";
647801
647811
  const latencyMs = Date.now() - startTime;
647802
647812
  if (result.lockFailed) {
647803
647813
  logEvent("tengu_native_auto_updater_lock_contention", {
@@ -647934,17 +647944,17 @@ function PackageManagerAutoUpdater(t0) {
647934
647944
  const maxVersion = await getMaxVersion();
647935
647945
  if (maxVersion && latest && gt(latest, maxVersion)) {
647936
647946
  logForDebugging(`PackageManagerAutoUpdater: maxVersion ${maxVersion} is set, capping update from ${latest} to ${maxVersion}`);
647937
- if (gte("1.3.439", maxVersion)) {
647938
- logForDebugging(`PackageManagerAutoUpdater: current version ${"1.3.439"} is already at or above maxVersion ${maxVersion}, skipping update`);
647947
+ if (gte("1.3.440", maxVersion)) {
647948
+ logForDebugging(`PackageManagerAutoUpdater: current version ${"1.3.440"} is already at or above maxVersion ${maxVersion}, skipping update`);
647939
647949
  setUpdateAvailable(false);
647940
647950
  return;
647941
647951
  }
647942
647952
  latest = maxVersion;
647943
647953
  }
647944
- const hasUpdate = latest && !gte("1.3.439", latest) && !shouldSkipVersion(latest);
647954
+ const hasUpdate = latest && !gte("1.3.440", latest) && !shouldSkipVersion(latest);
647945
647955
  setUpdateAvailable(!!hasUpdate);
647946
647956
  if (hasUpdate) {
647947
- logForDebugging(`PackageManagerAutoUpdater: Update available ${"1.3.439"} -> ${latest}`);
647957
+ logForDebugging(`PackageManagerAutoUpdater: Update available ${"1.3.440"} -> ${latest}`);
647948
647958
  }
647949
647959
  };
647950
647960
  $3[0] = t1;
@@ -647978,7 +647988,7 @@ function PackageManagerAutoUpdater(t0) {
647978
647988
  wrap: "truncate",
647979
647989
  children: [
647980
647990
  "currentVersion: ",
647981
- "1.3.439"
647991
+ "1.3.440"
647982
647992
  ]
647983
647993
  }, undefined, true, undefined, this);
647984
647994
  $3[3] = verbose;
@@ -656143,7 +656153,7 @@ function buildStatusLineCommandInput(permissionMode, exceeds200kTokens, settings
656143
656153
  project_dir: getOriginalCwd(),
656144
656154
  added_dirs: addedDirs
656145
656155
  },
656146
- version: "1.3.439",
656156
+ version: "1.3.440",
656147
656157
  output_style: {
656148
656158
  name: outputStyleName
656149
656159
  },
@@ -667547,7 +667557,7 @@ async function submitTranscriptShare(messages, trigger, appearanceId) {
667547
667557
  } catch {}
667548
667558
  const data = {
667549
667559
  trigger,
667550
- version: "1.3.439",
667560
+ version: "1.3.440",
667551
667561
  platform: process.platform,
667552
667562
  transcript,
667553
667563
  subagentTranscripts: Object.keys(subagentTranscripts).length > 0 ? subagentTranscripts : undefined,
@@ -679592,7 +679602,7 @@ function WelcomeV2() {
679592
679602
  dimColor: true,
679593
679603
  children: [
679594
679604
  "v",
679595
- "1.3.439"
679605
+ "1.3.440"
679596
679606
  ]
679597
679607
  }, undefined, true, undefined, this)
679598
679608
  ]
@@ -681326,7 +681336,7 @@ function completeOnboarding() {
681326
681336
  saveGlobalConfig((current) => ({
681327
681337
  ...current,
681328
681338
  hasCompletedOnboarding: true,
681329
- lastOnboardingVersion: "1.3.439"
681339
+ lastOnboardingVersion: "1.3.440"
681330
681340
  }));
681331
681341
  }
681332
681342
  function showDialog(root2, renderer) {
@@ -686269,7 +686279,7 @@ function appendToLog(path30, message) {
686269
686279
  cwd: getFsImplementation().cwd(),
686270
686280
  userType: "external",
686271
686281
  sessionId: getSessionId(),
686272
- version: "1.3.439"
686282
+ version: "1.3.440"
686273
686283
  };
686274
686284
  getLogWriter(path30).write(messageWithTimestamp);
686275
686285
  }
@@ -690377,8 +690387,8 @@ async function getEnvLessBridgeConfig() {
690377
690387
  }
690378
690388
  async function checkEnvLessBridgeMinVersion() {
690379
690389
  const cfg = await getEnvLessBridgeConfig();
690380
- if (cfg.min_version && lt("1.3.439", cfg.min_version)) {
690381
- return `Your version of RAYU (${"1.3.439"}) is too old for Remote Control.
690390
+ if (cfg.min_version && lt("1.3.440", cfg.min_version)) {
690391
+ return `Your version of RAYU (${"1.3.440"}) is too old for Remote Control.
690382
690392
  Version ${cfg.min_version} or higher is required. Run \`claude update\` to update.`;
690383
690393
  }
690384
690394
  return null;
@@ -690852,7 +690862,7 @@ async function initBridgeCore(params) {
690852
690862
  const rawApi = createBridgeApiClient({
690853
690863
  baseUrl,
690854
690864
  getAccessToken,
690855
- runnerVersion: "1.3.439",
690865
+ runnerVersion: "1.3.440",
690856
690866
  onDebug: logForDebugging,
690857
690867
  onAuth401,
690858
690868
  getTrustedDeviceToken
@@ -696214,7 +696224,7 @@ async function startMCPServer(cwd3, debug4, verbose) {
696214
696224
  setCwd(cwd3);
696215
696225
  const server = new Server({
696216
696226
  name: "claude/tengu",
696217
- version: "1.3.439"
696227
+ version: "1.3.440"
696218
696228
  }, {
696219
696229
  capabilities: {
696220
696230
  tools: {}
@@ -698740,7 +698750,7 @@ ${customInstructions}` : customInstructions;
698740
698750
  }
698741
698751
  }
698742
698752
  logForDiagnosticsNoPII("info", "started", {
698743
- version: "1.3.439",
698753
+ version: "1.3.440",
698744
698754
  is_native_binary: isInBundledMode()
698745
698755
  });
698746
698756
  registerCleanup(async () => {
@@ -699459,7 +699469,7 @@ Usage: rayu --remote "your task description"`, () => gracefulShutdown(1));
699459
699469
  pendingHookMessages
699460
699470
  }, renderAndRun);
699461
699471
  }
699462
- }).version("1.3.439 (Rayu-CLI)", "-v, --version", "Output the version number");
699472
+ }).version("1.3.440 (Rayu-CLI)", "-v, --version", "Output the version number");
699463
699473
  program.option("-w, --worktree [name]", "Create a new git worktree for this session (optionally specify a name)");
699464
699474
  program.option("--tmux", "Create a tmux session for the worktree (requires --worktree). Uses iTerm2 native panes when available; use --tmux=classic for traditional tmux.");
699465
699475
  if (canUserConfigureAdvisor()) {
@@ -699925,7 +699935,7 @@ if (false) {}
699925
699935
  async function main2() {
699926
699936
  const args = process.argv.slice(2);
699927
699937
  if (args.length === 1 && (args[0] === "--version" || args[0] === "-v" || args[0] === "-V")) {
699928
- console.log(`${"1.3.439"} (Rayu-CLI)`);
699938
+ console.log(`${"1.3.440"} (Rayu-CLI)`);
699929
699939
  return;
699930
699940
  }
699931
699941
  const {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rayu-dev/rayu-cli",
3
- "version": "1.3.439",
3
+ "version": "1.3.440",
4
4
  "description": "Rayu-CLI — a multi-provider AI coding CLI",
5
5
  "type": "module",
6
6
  "bin": {