@rayss-dev/openclaude 0.30.3-by-rayss → 0.30.4-by-rayss

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/acp.mjs CHANGED
@@ -9436,14 +9436,14 @@ function getReleaseTagUrl(version = publicBuildVersion) {
9436
9436
  return `${OPENCLAUDE_RELEASES_URL}/tag/v${normalizePublicVersion(version)}`;
9437
9437
  }
9438
9438
  function getPublicBuildVersion() {
9439
- return "0.30.3-by-rayss";
9439
+ return "0.30.4-by-rayss";
9440
9440
  }
9441
9441
  var import_semver, OPENCLAUDE_RELEASES_URL = "https://github.com/rayss868/openclaude/releases", fallbackBuildVersion, publicBuildVersion;
9442
9442
  var init_version = __esm(() => {
9443
9443
  import_semver = __toESM(require_semver2(), 1);
9444
9444
  fallbackBuildVersion = (() => {
9445
9445
  try {
9446
- return "0.30.3-by-rayss";
9446
+ return "0.30.4-by-rayss";
9447
9447
  } catch {
9448
9448
  return "0.0.0";
9449
9449
  }
@@ -110064,7 +110064,7 @@ var init_metadata = __esm(() => {
110064
110064
  COMPOUND_OPERATOR_REGEX = /\s*(?:&&|\|\||[;|])\s*/;
110065
110065
  WHITESPACE_REGEX = /\s+/;
110066
110066
  getVersionBase = memoize_default(() => {
110067
- const match = "0.30.3-by-rayss".match(/^\d+\.\d+\.\d+(?:-[a-z]+)?/);
110067
+ const match = "0.30.4-by-rayss".match(/^\d+\.\d+\.\d+(?:-[a-z]+)?/);
110068
110068
  return match ? match[0] : undefined;
110069
110069
  });
110070
110070
  buildEnvContext = memoize_default(async () => {
@@ -110104,9 +110104,9 @@ var init_metadata = __esm(() => {
110104
110104
  isGithubAction: isEnvTruthy(process.env.GITHUB_ACTIONS),
110105
110105
  isClaudeCodeAction: isEnvTruthy(process.env.CLAUDE_CODE_ACTION),
110106
110106
  isClaudeAiAuth: isClaudeAISubscriber(),
110107
- version: "0.30.3-by-rayss",
110107
+ version: "0.30.4-by-rayss",
110108
110108
  versionBase: getVersionBase(),
110109
- buildTime: "2026-09-11T15:04:03.855Z",
110109
+ buildTime: "2026-09-21T05:01:33.171Z",
110110
110110
  deploymentEnvironment: env2.detectDeploymentEnvironment(),
110111
110111
  ...isEnvTruthy(process.env.GITHUB_ACTIONS) && {
110112
110112
  githubEventName: process.env.GITHUB_EVENT_NAME,
@@ -174210,11 +174210,11 @@ var init_codeIndexing = __esm(() => {
174210
174210
 
174211
174211
  // src/utils/userAgent.ts
174212
174212
  function getClaudeCodeUserAgent() {
174213
- return `claude-code/${"0.30.3-by-rayss"}`;
174213
+ return `claude-code/${"0.30.4-by-rayss"}`;
174214
174214
  }
174215
174215
  function getOpenClaudeUserAgent() {
174216
174216
  try {
174217
- return `openclaude/${"0.30.3-by-rayss"}`;
174217
+ return `openclaude/${"0.30.4-by-rayss"}`;
174218
174218
  } catch {
174219
174219
  return "openclaude/0.0.0";
174220
174220
  }
@@ -174236,7 +174236,7 @@ function getUserAgent() {
174236
174236
  const clientApp = process.env.CLAUDE_AGENT_SDK_CLIENT_APP ? `, client-app/${process.env.CLAUDE_AGENT_SDK_CLIENT_APP}` : "";
174237
174237
  const workload = getWorkload();
174238
174238
  const workloadSuffix = workload ? `, workload/${workload}` : "";
174239
- return `claude-cli/${"0.30.3-by-rayss"} (${process.env.USER_TYPE}, ${process.env.CLAUDE_CODE_ENTRYPOINT ?? "cli"}${agentSdkVersion}${clientApp}${workloadSuffix})`;
174239
+ return `claude-cli/${"0.30.4-by-rayss"} (${process.env.USER_TYPE}, ${process.env.CLAUDE_CODE_ENTRYPOINT ?? "cli"}${agentSdkVersion}${clientApp}${workloadSuffix})`;
174240
174240
  }
174241
174241
  function getMCPUserAgent() {
174242
174242
  const parts = [];
@@ -174250,7 +174250,7 @@ function getMCPUserAgent() {
174250
174250
  parts.push(`client-app/${process.env.CLAUDE_AGENT_SDK_CLIENT_APP}`);
174251
174251
  }
174252
174252
  const suffix = parts.length > 0 ? ` (${parts.join(", ")})` : "";
174253
- return `claude-code/${"0.30.3-by-rayss"}${suffix}`;
174253
+ return `claude-code/${"0.30.4-by-rayss"}${suffix}`;
174254
174254
  }
174255
174255
  function getWebFetchUserAgent() {
174256
174256
  const supportUrl = isFirstPartyAnthropicProvider() ? "https://support.anthropic.com/" : "https://github.com/rayss868/openclaude";
@@ -179325,7 +179325,7 @@ function getAttributionHeader(fingerprint, policy) {
179325
179325
  if (!policy.generate) {
179326
179326
  return "";
179327
179327
  }
179328
- const version2 = `${"0.30.3-by-rayss"}.${fingerprint}`;
179328
+ const version2 = `${"0.30.4-by-rayss"}.${fingerprint}`;
179329
179329
  const entrypoint = process.env.CLAUDE_CODE_ENTRYPOINT ?? "unknown";
179330
179330
  const cch = "";
179331
179331
  const workload = getWorkload();
@@ -187486,7 +187486,7 @@ function computeFingerprint(messageText2, version2) {
187486
187486
  }
187487
187487
  function computeFingerprintFromMessages(messages) {
187488
187488
  const firstMessageText = extractFirstMessageText(messages);
187489
- return computeFingerprint(firstMessageText, "0.30.3-by-rayss");
187489
+ return computeFingerprint(firstMessageText, "0.30.4-by-rayss");
187490
187490
  }
187491
187491
  var FINGERPRINT_SALT = "59cf53e54c78";
187492
187492
  var init_fingerprint = () => {};
@@ -188853,7 +188853,7 @@ var init_client3 = __esm(() => {
188853
188853
  const client = new Client({
188854
188854
  name: "claude-code",
188855
188855
  title: "OpenClaude",
188856
- version: "0.30.3-by-rayss",
188856
+ version: "0.30.4-by-rayss",
188857
188857
  description: "OpenClaude — coding-agent CLI for any LLM provider",
188858
188858
  websiteUrl: PRODUCT_URL
188859
188859
  }, {
@@ -202875,6 +202875,7 @@ __export(exports_claudemd, {
202875
202875
  processMdRules: () => processMdRules,
202876
202876
  processConditionedMdRules: () => processConditionedMdRules,
202877
202877
  isMemoryFilePath: () => isMemoryFilePath,
202878
+ haveMemoryFilesChanged: () => haveMemoryFilesChanged,
202878
202879
  hasExternalClaudeMdIncludes: () => hasExternalClaudeMdIncludes,
202879
202880
  getMemoryFilesForNestedDirectory: () => getMemoryFilesForNestedDirectory,
202880
202881
  getMemoryFiles: () => getMemoryFiles,
@@ -202885,7 +202886,9 @@ __export(exports_claudemd, {
202885
202886
  getClaudeMds: () => getClaudeMds,
202886
202887
  getAllMemoryFilePaths: () => getAllMemoryFilePaths,
202887
202888
  filterInjectedMemoryFiles: () => filterInjectedMemoryFiles,
202889
+ clearMemoryFileSnapshot: () => clearMemoryFileSnapshot,
202888
202890
  clearMemoryFileCaches: () => clearMemoryFileCaches,
202891
+ captureMemoryFileSnapshot: () => captureMemoryFileSnapshot,
202889
202892
  MAX_MEMORY_CHARACTER_COUNT: () => MAX_MEMORY_CHARACTER_COUNT
202890
202893
  });
202891
202894
  import {
@@ -203202,6 +203205,53 @@ function resetGetMemoryFilesCache(reason = "session_start") {
203202
203205
  shouldFireHook = true;
203203
203206
  clearMemoryFileCaches();
203204
203207
  }
203208
+ function captureMemoryFileSnapshot(files) {
203209
+ const fs2 = getFsImplementation();
203210
+ const snapshot2 = new Map;
203211
+ for (const file2 of files) {
203212
+ if (file2.content.trim().length === 0)
203213
+ continue;
203214
+ try {
203215
+ snapshot2.set(normalizePathForComparison(file2.path), fs2.statSync(file2.path).mtimeMs);
203216
+ } catch {}
203217
+ }
203218
+ if (memoryFileMtimeSnapshot !== null) {
203219
+ let dirty = snapshot2.size !== memoryFileMtimeSnapshot.size;
203220
+ if (!dirty) {
203221
+ for (const [path13, mtime] of snapshot2) {
203222
+ if (memoryFileMtimeSnapshot.get(path13) !== mtime) {
203223
+ dirty = true;
203224
+ break;
203225
+ }
203226
+ }
203227
+ }
203228
+ if (dirty)
203229
+ memoryFilesDirty = true;
203230
+ }
203231
+ memoryFileMtimeSnapshot = snapshot2;
203232
+ }
203233
+ function haveMemoryFilesChanged() {
203234
+ if (memoryFilesDirty) {
203235
+ memoryFilesDirty = false;
203236
+ return true;
203237
+ }
203238
+ if (memoryFileMtimeSnapshot === null)
203239
+ return false;
203240
+ const fs2 = getFsImplementation();
203241
+ for (const [path13, mtime] of memoryFileMtimeSnapshot) {
203242
+ try {
203243
+ if (fs2.statSync(path13).mtimeMs !== mtime)
203244
+ return true;
203245
+ } catch {
203246
+ return true;
203247
+ }
203248
+ }
203249
+ return false;
203250
+ }
203251
+ function clearMemoryFileSnapshot() {
203252
+ memoryFileMtimeSnapshot = null;
203253
+ memoryFilesDirty = false;
203254
+ }
203205
203255
  function getLargeMemoryFiles(files) {
203206
203256
  return files.filter((f) => f.content.length > MAX_MEMORY_CHARACTER_COUNT);
203207
203257
  }
@@ -203323,7 +203373,7 @@ function getAllMemoryFilePaths(files, readFileState) {
203323
203373
  }
203324
203374
  return Array.from(paths2);
203325
203375
  }
203326
- var import_ignore2, import_picomatch, teamMemPaths2, hasLoggedInitialLoad = false, MEMORY_INSTRUCTION_PROMPT = "Codebase and user instructions are shown below. Be sure to adhere to these instructions. IMPORTANT: These instructions OVERRIDE any default behavior and you MUST follow them exactly as written.", MAX_MEMORY_CHARACTER_COUNT = 40000, TEXT_FILE_EXTENSIONS, MAX_INCLUDE_DEPTH = 5, getMemoryFiles, nextEagerLoadReason = "session_start", shouldFireHook = true, getClaudeMds = (memoryFiles, filter2) => {
203376
+ var import_ignore2, import_picomatch, teamMemPaths2, hasLoggedInitialLoad = false, MEMORY_INSTRUCTION_PROMPT = "Codebase and user instructions are shown below. Be sure to adhere to these instructions. IMPORTANT: These instructions OVERRIDE any default behavior and you MUST follow them exactly as written.", MAX_MEMORY_CHARACTER_COUNT = 40000, TEXT_FILE_EXTENSIONS, MAX_INCLUDE_DEPTH = 5, getMemoryFiles, nextEagerLoadReason = "session_start", shouldFireHook = true, memoryFileMtimeSnapshot = null, memoryFilesDirty = false, getClaudeMds = (memoryFiles, filter2) => {
203327
203377
  const memories = [];
203328
203378
  const skipProjectLevel = getFeatureValue_CACHED_MAY_BE_STALE("tengu_paper_halyard", false);
203329
203379
  for (const file2 of memoryFiles) {
@@ -203627,6 +203677,7 @@ var init_claudemd = __esm(() => {
203627
203677
  }
203628
203678
  }
203629
203679
  }
203680
+ captureMemoryFileSnapshot(result);
203630
203681
  return result;
203631
203682
  });
203632
203683
  });
@@ -208434,7 +208485,32 @@ function setSystemPromptInjection(value) {
208434
208485
  getSystemContext.cache.clear?.();
208435
208486
  getRepoMapContext.cache.clear?.();
208436
208487
  }
208437
- var MAX_STATUS_CHARS = 2000, REPO_MAP_CONTEXT_TIMEOUT_MS = 5000, REPO_MAP_TIMEOUT, REPO_MAP_CANCELLED, systemPromptInjection = null, getGitStatus, getRepoMapContext, getSystemContext, getUserContext;
208488
+ function invalidateContextCachesIfMemoryFilesChanged() {
208489
+ if (!haveMemoryFilesChanged())
208490
+ return;
208491
+ clearMemoryFileCaches();
208492
+ clearMemoryFileSnapshot();
208493
+ getUserContext.cache.clear?.();
208494
+ getSystemContext.cache.clear?.();
208495
+ getRepoMapContext.cache.clear?.();
208496
+ }
208497
+ async function loadUserContext() {
208498
+ const startTime = Date.now();
208499
+ logForDiagnosticsNoPII("info", "user_context_started");
208500
+ const shouldDisableClaudeMd = isEnvTruthy(process.env.CLAUDE_CODE_DISABLE_CLAUDE_MDS) || isBareMode() && getAdditionalDirectoriesForClaudeMd().length === 0;
208501
+ const claudeMd = shouldDisableClaudeMd ? null : getClaudeMds(filterInjectedMemoryFiles(await getMemoryFiles()));
208502
+ setCachedClaudeMdContent(claudeMd || null);
208503
+ logForDiagnosticsNoPII("info", "user_context_completed", {
208504
+ duration_ms: Date.now() - startTime,
208505
+ claudemd_length: claudeMd?.length ?? 0,
208506
+ claudemd_disabled: Boolean(shouldDisableClaudeMd)
208507
+ });
208508
+ return {
208509
+ ...claudeMd && { claudeMd },
208510
+ currentDate: `Today's date is ${getLocalISODate()}.`
208511
+ };
208512
+ }
208513
+ var MAX_STATUS_CHARS = 2000, REPO_MAP_CONTEXT_TIMEOUT_MS = 5000, REPO_MAP_TIMEOUT, REPO_MAP_CANCELLED, systemPromptInjection = null, getGitStatus, getRepoMapContext, getSystemContext, loadUserContextMemoized, getUserContext;
208438
208514
  var init_context2 = __esm(() => {
208439
208515
  init_memoize();
208440
208516
  init_state();
@@ -208580,22 +208656,11 @@ ${result.map}`;
208580
208656
  ...{}
208581
208657
  };
208582
208658
  });
208583
- getUserContext = memoize_default(async () => {
208584
- const startTime = Date.now();
208585
- logForDiagnosticsNoPII("info", "user_context_started");
208586
- const shouldDisableClaudeMd = isEnvTruthy(process.env.CLAUDE_CODE_DISABLE_CLAUDE_MDS) || isBareMode() && getAdditionalDirectoriesForClaudeMd().length === 0;
208587
- const claudeMd = shouldDisableClaudeMd ? null : getClaudeMds(filterInjectedMemoryFiles(await getMemoryFiles()));
208588
- setCachedClaudeMdContent(claudeMd || null);
208589
- logForDiagnosticsNoPII("info", "user_context_completed", {
208590
- duration_ms: Date.now() - startTime,
208591
- claudemd_length: claudeMd?.length ?? 0,
208592
- claudemd_disabled: Boolean(shouldDisableClaudeMd)
208593
- });
208594
- return {
208595
- ...claudeMd && { claudeMd },
208596
- currentDate: `Today's date is ${getLocalISODate()}.`
208597
- };
208598
- });
208659
+ loadUserContextMemoized = memoize_default(loadUserContext);
208660
+ getUserContext = Object.assign(function getUserContext2() {
208661
+ invalidateContextCachesIfMemoryFilesChanged();
208662
+ return loadUserContextMemoized();
208663
+ }, { cache: loadUserContextMemoized.cache });
208599
208664
  });
208600
208665
 
208601
208666
  // src/utils/diff.ts
@@ -285196,6 +285261,20 @@ var init_prefetch = __esm(() => {
285196
285261
  init_localSearch();
285197
285262
  });
285198
285263
 
285264
+ // src/services/skillSearch/featureCheck.ts
285265
+ var exports_featureCheck = {};
285266
+ __export(exports_featureCheck, {
285267
+ isSkillSearchEnabled: () => isSkillSearchEnabled
285268
+ });
285269
+ function isSkillSearchEnabled() {
285270
+ if (false)
285271
+ ;
285272
+ return getInitialSettings().skillSearch === true;
285273
+ }
285274
+ var init_featureCheck = __esm(() => {
285275
+ init_settings3();
285276
+ });
285277
+
285199
285278
  // src/services/compact/snipCompact.ts
285200
285279
  var exports_snipCompact = {};
285201
285280
  __export(exports_snipCompact, {
@@ -285673,7 +285752,7 @@ async function* queryLoop(params, consumedCommandUuids) {
285673
285752
  agentStepLimit
285674
285753
  } = state2;
285675
285754
  const effectiveMaxOutputTokensOverride = maxOutputTokensOverride === undefined ? providerMaxOutputTokensCap : providerMaxOutputTokensCap === undefined ? maxOutputTokensOverride : Math.min(maxOutputTokensOverride, providerMaxOutputTokensCap);
285676
- const pendingSkillPrefetch = skillPrefetch?.startSkillDiscoveryPrefetch(null, messages, toolUseContext);
285755
+ const pendingSkillPrefetch = isSkillSearchEnabled2() ? skillPrefetch?.startSkillDiscoveryPrefetch(null, messages, toolUseContext) : null;
285677
285756
  yield { type: "stream_request_start" };
285678
285757
  queryCheckpoint("query_fn_entry");
285679
285758
  if (!toolUseContext.agentId) {
@@ -287061,7 +287140,7 @@ async function* queryLoop(params, consumedCommandUuids) {
287061
287140
  __callDispose(__stack, _err, _hasErr);
287062
287141
  }
287063
287142
  }
287064
- var reactiveCompact = null, contextCollapse, skillPrefetch, snipModule, taskSummaryModule, MAX_OUTPUT_TOKENS_RECOVERY_LIMIT = 3, MAX_CONTINUATION_NUDGES = 20;
287143
+ var reactiveCompact = null, contextCollapse, skillPrefetch, isSkillSearchEnabled2, snipModule, taskSummaryModule, MAX_OUTPUT_TOKENS_RECOVERY_LIMIT = 3, MAX_CONTINUATION_NUDGES = 20;
287065
287144
  var init_query = __esm(() => {
287066
287145
  init_withRetry();
287067
287146
  init_controller();
@@ -287108,6 +287187,7 @@ var init_query = __esm(() => {
287108
287187
  init_tokenBudget2();
287109
287188
  contextCollapse = (init_contextCollapse(), __toCommonJS(exports_contextCollapse));
287110
287189
  skillPrefetch = (init_prefetch(), __toCommonJS(exports_prefetch));
287190
+ ({ isSkillSearchEnabled: isSkillSearchEnabled2 } = (init_featureCheck(), __toCommonJS(exports_featureCheck)));
287111
287191
  snipModule = (init_snipCompact(), __toCommonJS(exports_snipCompact));
287112
287192
  taskSummaryModule = __toCommonJS(exports_taskSummary);
287113
287193
  });
@@ -287347,7 +287427,7 @@ function getAnthropicEnvMetadata() {
287347
287427
  function getBuildAgeMinutes() {
287348
287428
  if (false)
287349
287429
  ;
287350
- const buildTime = new Date("2026-09-11T15:04:03.855Z").getTime();
287430
+ const buildTime = new Date("2026-09-21T05:01:33.171Z").getTime();
287351
287431
  if (isNaN(buildTime))
287352
287432
  return;
287353
287433
  return Math.floor((Date.now() - buildTime) / 60000);
@@ -297821,7 +297901,7 @@ function Feedback({
297821
297901
  platform: env2.platform,
297822
297902
  gitRepo: envInfo.isGit,
297823
297903
  terminal: env2.terminal,
297824
- version: "0.30.3-by-rayss",
297904
+ version: "0.30.4-by-rayss",
297825
297905
  transcript: normalizeMessagesForAPI(messages),
297826
297906
  errors: sanitizedErrors,
297827
297907
  lastApiRequest: getLastAPIRequest(),
@@ -298010,7 +298090,7 @@ function Feedback({
298010
298090
  ", ",
298011
298091
  env2.terminal,
298012
298092
  ", v",
298013
- "0.30.3-by-rayss"
298093
+ "0.30.4-by-rayss"
298014
298094
  ]
298015
298095
  }, undefined, true, undefined, this)
298016
298096
  ]
@@ -298118,7 +298198,7 @@ ${sanitizedDescription}
298118
298198
  ` + `**Environment Info**
298119
298199
  ` + `- Platform: ${env2.platform}
298120
298200
  ` + `- Terminal: ${env2.terminal}
298121
- ` + `- Version: ${"0.30.3-by-rayss"}
298201
+ ` + `- Version: ${"0.30.4-by-rayss"}
298122
298202
  ` + feedbackIdLine + `
298123
298203
  **Errors**
298124
298204
  \`\`\`json
@@ -303972,7 +304052,7 @@ var init_user = __esm(() => {
303972
304052
  deviceId,
303973
304053
  sessionId: getSessionId(),
303974
304054
  email: getEmail(),
303975
- appVersion: "0.30.3-by-rayss",
304055
+ appVersion: "0.30.4-by-rayss",
303976
304056
  platform: getHostPlatformForAnalytics(),
303977
304057
  organizationUuid,
303978
304058
  accountUuid,
@@ -305106,7 +305186,7 @@ function detectLinuxGlobPatternWarnings() {
305106
305186
  }
305107
305187
  async function getDoctorDiagnostic() {
305108
305188
  const installationType = await getCurrentInstallationType();
305109
- const version2 = typeof MACRO !== "undefined" ? "0.30.3-by-rayss" : "unknown";
305189
+ const version2 = typeof MACRO !== "undefined" ? "0.30.4-by-rayss" : "unknown";
305110
305190
  const installationPath = await getInstallationPath();
305111
305191
  const invokedBinary = getInvokedBinary();
305112
305192
  const multipleInstallations = await detectMultipleInstallations();
@@ -306033,8 +306113,8 @@ async function updateLatest(channelOrVersion, forceReinstall = false) {
306033
306113
  const maxVersion = await getMaxVersion();
306034
306114
  if (maxVersion && gt(version2, maxVersion)) {
306035
306115
  logForDebugging(`Native installer: maxVersion ${maxVersion} is set, capping update from ${version2} to ${maxVersion}`);
306036
- if (gte("0.30.3-by-rayss", maxVersion)) {
306037
- logForDebugging(`Native installer: current version ${"0.30.3-by-rayss"} is already at or above maxVersion ${maxVersion}, skipping update`);
306116
+ if (gte("0.30.4-by-rayss", maxVersion)) {
306117
+ logForDebugging(`Native installer: current version ${"0.30.4-by-rayss"} is already at or above maxVersion ${maxVersion}, skipping update`);
306038
306118
  logEvent("tengu_native_update_skipped_max_version", {
306039
306119
  latency_ms: Date.now() - startTime,
306040
306120
  max_version: maxVersion,
@@ -306045,7 +306125,7 @@ async function updateLatest(channelOrVersion, forceReinstall = false) {
306045
306125
  version2 = maxVersion;
306046
306126
  }
306047
306127
  }
306048
- if (!forceReinstall && version2 === "0.30.3-by-rayss" && await versionIsAvailable(version2) && await isPossibleClaudeBinary(executablePath)) {
306128
+ if (!forceReinstall && version2 === "0.30.4-by-rayss" && await versionIsAvailable(version2) && await isPossibleClaudeBinary(executablePath)) {
306049
306129
  logForDebugging(`Found ${version2} at ${executablePath}, skipping install`);
306050
306130
  logEvent("tengu_native_update_complete", {
306051
306131
  latency_ms: Date.now() - startTime,
@@ -349991,7 +350071,7 @@ function buildPrimarySection() {
349991
350071
  }, undefined, false, undefined, this);
349992
350072
  return [{
349993
350073
  label: "Version",
349994
- value: "0.30.3-by-rayss"
350074
+ value: "0.30.4-by-rayss"
349995
350075
  }, {
349996
350076
  label: "Session name",
349997
350077
  value: nameValue
@@ -355957,6 +356037,38 @@ function Config({
355957
356037
  });
355958
356038
  }
355959
356039
  }] : [],
356040
+ ...[{
356041
+ id: "skillSearch",
356042
+ label: "Skill search discovery",
356043
+ searchText: "skill search discover skills",
356044
+ value: settingsData?.skillSearch === true,
356045
+ type: "boolean",
356046
+ onChange(enabled_ss) {
356047
+ updateSettingsForSource("userSettings", {
356048
+ skillSearch: enabled_ss ? true : undefined
356049
+ });
356050
+ setSettingsData((prev_ss) => ({
356051
+ ...prev_ss,
356052
+ skillSearch: enabled_ss
356053
+ }));
356054
+ }
356055
+ }],
356056
+ {
356057
+ id: "autoMemoryEnabled",
356058
+ label: "Auto-memory",
356059
+ searchText: "auto memory remember project context",
356060
+ value: settingsData?.autoMemoryEnabled !== false,
356061
+ type: "boolean",
356062
+ onChange(enabled_am) {
356063
+ updateSettingsForSource("userSettings", {
356064
+ autoMemoryEnabled: enabled_am ? undefined : false
356065
+ });
356066
+ setSettingsData((prev_am) => ({
356067
+ ...prev_am,
356068
+ autoMemoryEnabled: enabled_am
356069
+ }));
356070
+ }
356071
+ },
355960
356072
  ...isFileCheckpointingAvailable ? [{
355961
356073
  id: "fileCheckpointingEnabled",
355962
356074
  label: "Rewind code (checkpoints)",
@@ -357331,7 +357443,7 @@ function Config({
357331
357443
  }
357332
357444
  }, undefined, false, undefined, this)
357333
357445
  }, undefined, false, undefined, this) : showSubmenu === "ChannelDowngrade" ? /* @__PURE__ */ jsxDEV162(ChannelDowngradeDialog, {
357334
- currentVersion: "0.30.3-by-rayss",
357446
+ currentVersion: "0.30.4-by-rayss",
357335
357447
  onChoice: (choice) => {
357336
357448
  setShowSubmenu(null);
357337
357449
  setTabsHidden(false);
@@ -357343,7 +357455,7 @@ function Config({
357343
357455
  autoUpdatesChannel: "stable"
357344
357456
  };
357345
357457
  if (choice === "stay") {
357346
- newSettings.minimumVersion = "0.30.3-by-rayss";
357458
+ newSettings.minimumVersion = "0.30.4-by-rayss";
357347
357459
  }
357348
357460
  updateSettingsForSource("userSettings", newSettings);
357349
357461
  setSettingsData((prev_27) => ({
@@ -366418,21 +366530,21 @@ function readPackageManager(env4) {
366418
366530
  }
366419
366531
  function readMacroVersion() {
366420
366532
  try {
366421
- return "0.30.3-by-rayss";
366533
+ return "0.30.4-by-rayss";
366422
366534
  } catch {
366423
366535
  return;
366424
366536
  }
366425
366537
  }
366426
366538
  function readMacroDisplayVersion() {
366427
366539
  try {
366428
- return "0.30.3-by-rayss";
366540
+ return "0.30.4-by-rayss";
366429
366541
  } catch {
366430
366542
  return;
366431
366543
  }
366432
366544
  }
366433
366545
  function readMacroBuildTime() {
366434
366546
  try {
366435
- return "2026-09-11T15:04:03.855Z";
366547
+ return "2026-09-21T05:01:33.171Z";
366436
366548
  } catch {
366437
366549
  return;
366438
366550
  }
@@ -441499,7 +441611,7 @@ async function captureMemoryDiagnostics(trigger, dumpNumber = 0) {
441499
441611
  smapsRollup,
441500
441612
  platform: process.platform,
441501
441613
  nodeVersion: process.version,
441502
- ccVersion: "0.30.3-by-rayss"
441614
+ ccVersion: "0.30.4-by-rayss"
441503
441615
  };
441504
441616
  }
441505
441617
  async function performHeapDump(trigger = "manual", dumpNumber = 0) {
@@ -441766,7 +441878,7 @@ var init_bridge_kick = __esm(() => {
441766
441878
  var call73 = async () => {
441767
441879
  return {
441768
441880
  type: "text",
441769
- value: `${"0.30.3-by-rayss"} (built ${"2026-09-11T15:04:03.855Z"})`
441881
+ value: `${"0.30.4-by-rayss"} (built ${"2026-09-21T05:01:33.171Z"})`
441770
441882
  };
441771
441883
  }, version2, version_default;
441772
441884
  var init_version2 = __esm(() => {
@@ -442332,7 +442444,7 @@ async function call74(onDone, _context, args) {
442332
442444
  }, undefined, false, undefined, this));
442333
442445
  return null;
442334
442446
  }
442335
- var PACKAGE_URL = "@rayss-dev/openclaude", CURRENT_VERSION = "0.30.3-by-rayss";
442447
+ var PACKAGE_URL = "@rayss-dev/openclaude", CURRENT_VERSION = "0.30.4-by-rayss";
442336
442448
  var init_update = __esm(() => {
442337
442449
  init_StatusIcon();
442338
442450
  init_ink2();
@@ -454477,7 +454589,7 @@ function generateHtmlReport(data, insights) {
454477
454589
  </html>`;
454478
454590
  }
454479
454591
  function buildExportData(data, insights, facets) {
454480
- const version3 = typeof MACRO !== "undefined" ? "0.30.3-by-rayss" : "unknown";
454592
+ const version3 = typeof MACRO !== "undefined" ? "0.30.4-by-rayss" : "unknown";
454481
454593
  const facets_summary = {
454482
454594
  total: facets.size,
454483
454595
  goal_categories: {},
@@ -459116,7 +459228,7 @@ async function readLiteMetadata(filePath, fileSize, buf, sessionId) {
459116
459228
  const teamName = extractJsonStringField(head, "teamName");
459117
459229
  const agentSetting = extractJsonStringField(head, "agentSetting");
459118
459230
  const firstPrompt = extractFirstPromptFromChunk(head) || extractJsonStringFieldPrefix(head, "content", 200) || extractJsonStringFieldPrefix(head, "text", 200) || "";
459119
- const lastPrompt = extractLastJsonStringField(tail, "lastPrompt") || extractLastJsonStringField(tail, "content") || extractLastJsonStringField(tail, "text") || "";
459231
+ const lastPrompt = extractLastJsonStringField(tail, "lastPrompt") || extractLastPromptFromChunk(tail) || "";
459120
459232
  const customTitle = extractLastJsonStringField(tail, "customTitle") ?? extractLastJsonStringField(head, "customTitle") ?? extractLastJsonStringField(tail, "aiTitle") ?? extractLastJsonStringField(head, "aiTitle");
459121
459233
  const summary = extractLastJsonStringField(tail, "summary");
459122
459234
  const tagLine = tail.split(`
@@ -459231,6 +459343,71 @@ function extractFirstPromptFromChunk(chunk2) {
459231
459343
  ;
459232
459344
  return "";
459233
459345
  }
459346
+ function extractLastPromptFromChunk(chunk2) {
459347
+ let start = 0;
459348
+ let lastPrompt = "";
459349
+ while (start < chunk2.length) {
459350
+ const newlineIdx = chunk2.indexOf(`
459351
+ `, start);
459352
+ const line = newlineIdx >= 0 ? chunk2.slice(start, newlineIdx) : chunk2.slice(start);
459353
+ start = newlineIdx >= 0 ? newlineIdx + 1 : chunk2.length;
459354
+ if (!line.includes('"type":"user"') && !line.includes('"type": "user"')) {
459355
+ continue;
459356
+ }
459357
+ if (line.includes('"tool_result"'))
459358
+ continue;
459359
+ if (line.includes('"isMeta":true') || line.includes('"isMeta": true'))
459360
+ continue;
459361
+ try {
459362
+ const entry = jsonParse(line);
459363
+ if (entry.type !== "user")
459364
+ continue;
459365
+ const message = entry.message;
459366
+ if (!message)
459367
+ continue;
459368
+ const content = message.content;
459369
+ const texts = [];
459370
+ if (typeof content === "string") {
459371
+ texts.push(content);
459372
+ } else if (Array.isArray(content)) {
459373
+ for (const block2 of content) {
459374
+ const b = block2;
459375
+ if (b.type === "text" && typeof b.text === "string") {
459376
+ texts.push(b.text);
459377
+ }
459378
+ }
459379
+ }
459380
+ for (const text4 of texts) {
459381
+ if (!text4)
459382
+ continue;
459383
+ let result = text4.replace(/\n/g, " ").trim();
459384
+ const commandNameTag = extractTag(result, COMMAND_NAME_TAG);
459385
+ if (commandNameTag) {
459386
+ const name = commandNameTag.replace(/^\//, "");
459387
+ const commandArgs = extractTag(result, "command-args")?.trim() || "";
459388
+ if (getBuiltInCommandNames().has(name) || !commandArgs)
459389
+ continue;
459390
+ lastPrompt = `${commandNameTag} ${commandArgs}`;
459391
+ continue;
459392
+ }
459393
+ const bashInput = extractTag(result, "bash-input");
459394
+ if (bashInput) {
459395
+ lastPrompt = `! ${bashInput}`;
459396
+ continue;
459397
+ }
459398
+ if (SKIP_FIRST_PROMPT_PATTERN2.test(result))
459399
+ continue;
459400
+ if (result.length > 200) {
459401
+ result = result.slice(0, 200).trim() + "…";
459402
+ }
459403
+ lastPrompt = result;
459404
+ }
459405
+ } catch {
459406
+ continue;
459407
+ }
459408
+ }
459409
+ return lastPrompt;
459410
+ }
459234
459411
  function extractJsonStringFieldPrefix(text4, key, maxLen) {
459235
459412
  const patterns = [`"${key}":"`, `"${key}": "`];
459236
459413
  for (const pattern of patterns) {
@@ -459387,7 +459564,7 @@ var init_sessionStorage = __esm(() => {
459387
459564
  init_slowOperations();
459388
459565
  init_transcriptFileLock();
459389
459566
  init_uuid();
459390
- VERSION3 = typeof MACRO !== "undefined" ? "0.30.3-by-rayss" : "unknown";
459567
+ VERSION3 = typeof MACRO !== "undefined" ? "0.30.4-by-rayss" : "unknown";
459391
459568
  MAX_TOMBSTONE_REWRITE_BYTES = 50 * 1024 * 1024;
459392
459569
  TRANSCRIPT_COPY_CHUNK_BYTES = 64 * 1024;
459393
459570
  transcriptRewriteHooksForTesting = {};
@@ -460870,7 +461047,7 @@ var init_filesystem = __esm(() => {
460870
461047
  });
460871
461048
  getBundledSkillsRoot = memoize_default(function getBundledSkillsRoot2() {
460872
461049
  const nonce = randomBytes19(16).toString("hex");
460873
- return join145(getClaudeTempDir(), "bundled-skills", "0.30.3-by-rayss", nonce);
461050
+ return join145(getClaudeTempDir(), "bundled-skills", "0.30.4-by-rayss", nonce);
460874
461051
  });
460875
461052
  getResolvedWorkingDirPaths = memoize_default(getPathsForPermissionCheck);
460876
461053
  });
@@ -467133,20 +467310,6 @@ __export(exports_prompt5, {
467133
467310
  });
467134
467311
  var DISCOVER_SKILLS_TOOL_NAME = "DiscoverSkills";
467135
467312
 
467136
- // src/services/skillSearch/featureCheck.ts
467137
- var exports_featureCheck = {};
467138
- __export(exports_featureCheck, {
467139
- isSkillSearchEnabled: () => isSkillSearchEnabled
467140
- });
467141
- function isSkillSearchEnabled() {
467142
- if (false)
467143
- ;
467144
- return getInitialSettings().skillSearch === true;
467145
- }
467146
- var init_featureCheck = __esm(() => {
467147
- init_settings3();
467148
- });
467149
-
467150
467313
  // src/constants/prompts.ts
467151
467314
  import { type as osType2, version as osVersion, release as osRelease2 } from "os";
467152
467315
  function getHooksSection() {
@@ -467309,7 +467472,7 @@ function getSessionSpecificGuidanceSection(enabledTools, skillToolCommands) {
467309
467472
  `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.`
467310
467473
  ] : [],
467311
467474
  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,
467312
- DISCOVER_SKILLS_TOOL_NAME2 !== null && hasSkills && enabledTools.has(DISCOVER_SKILLS_TOOL_NAME2) ? getDiscoverSkillsGuidance() : null,
467475
+ DISCOVER_SKILLS_TOOL_NAME2 !== null && hasSkills && enabledTools.has(DISCOVER_SKILLS_TOOL_NAME2) && skillSearchFeatureCheck?.isSkillSearchEnabled() ? getDiscoverSkillsGuidance() : null,
467313
467476
  hasAgentTool && true && getFeatureValue_CACHED_MAY_BE_STALE("tengu_hive_evidence", false) ? `The contract: when non-trivial implementation happens on your turn, independent adversarial verification must happen before you report completion — regardless of who did the implementing (you directly, a fork you spawned, or a subagent). You are the one reporting to the user; you own the gate. Non-trivial means: 3+ file edits, backend/API changes, or infrastructure changes. Spawn the ${AGENT_TOOL_NAME} tool with subagent_type="${VERIFICATION_AGENT_TYPE}". Your own checks, caveats, and a fork's self-checks do NOT substitute — only the verifier assigns a verdict; you cannot self-assign PARTIAL. Pass the original user request, all files changed (by anyone), the approach, and the plan file path if applicable. Flag concerns if you have them but do NOT share test results or claim things work. On FAIL: fix, resume the verifier with its findings plus your fix, repeat until PASS. On PASS: spot-check it — re-run 2-3 commands from its report, confirm every PASS has a Command run block with output that matches your re-run. If any PASS lacks a command block or diverges, resume the verifier with the specifics. On PARTIAL (from the verifier): report what passed and what could not be verified.` : null
467314
467477
  ].filter((item) => item !== null);
467315
467478
  if (items.length === 0)
@@ -498592,7 +498755,7 @@ function buildSystemInitMessage(inputs) {
498592
498755
  slash_commands: inputs.commands.filter((c6) => c6.userInvocable !== false).map((c6) => c6.name),
498593
498756
  apiKeySource: getAnthropicApiKeyWithSource().source,
498594
498757
  betas: getSdkBetas(),
498595
- claude_code_version: "0.30.3-by-rayss",
498758
+ claude_code_version: "0.30.4-by-rayss",
498596
498759
  output_style: outputStyle2,
498597
498760
  agents: inputs.agents.map((agent) => agent.agentType),
498598
498761
  skills: inputs.skills.filter((s) => s.userInvocable !== false).map((skill) => skill.name),
@@ -500154,4 +500317,4 @@ export {
500154
500317
  createAcpServer
500155
500318
  };
500156
500319
 
500157
- //# debugId=51523C132167ED1964756E2164756E21
500320
+ //# debugId=95C3462EE95DE20564756E2164756E21