@jefuriiij/synthra 0.4.0 → 0.5.0

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.
@@ -3283,10 +3283,16 @@ ${fileNode.content}`);
3283
3283
  }
3284
3284
  const lines = fileNode.content.split(/\r?\n/);
3285
3285
  const body = lines.slice(symbol.start_line - 1, symbol.end_line).join("\n");
3286
+ const offset = Math.max(1, symbol.start_line - 2);
3287
+ const limit = symbol.end_line - symbol.start_line + 1 + 4;
3288
+ const editHint = `
3289
+
3290
+ ---
3291
+ \u270E To edit this symbol: Read("${fileNode.path}", offset=${offset}, limit=${limit}) then Edit \u2014 that satisfies Claude Code's read-gate at ~${limit} lines; do NOT re-read the whole file.`;
3286
3292
  return textContent(
3287
3293
  `# ${fileNode.path}::${symbol.name} (L${symbol.start_line}-${symbol.end_line})
3288
3294
 
3289
- ${body}`
3295
+ ${body}${editHint}`
3290
3296
  );
3291
3297
  }
3292
3298
  var editedFiles = /* @__PURE__ */ new Set();
@@ -3600,6 +3606,11 @@ function looksLikeNonSymbolQuery(pattern) {
3600
3606
  if (/:\s*\d/.test(pattern) || /\d(?:px|rem|em|vh|vw)\b/.test(pattern) || /\d%/.test(pattern)) {
3601
3607
  return true;
3602
3608
  }
3609
+ if (/--[a-zA-Z]/.test(pattern)) return true;
3610
+ if (/#[0-9a-fA-F]{3,8}\b/.test(pattern)) return true;
3611
+ const branches = pattern.replace(/\[[^\]]*\]/g, "").split("|").map((b) => b.trim()).filter(Boolean);
3612
+ const isKebab = (b) => /^[a-z][a-z0-9]*(?:-[a-z0-9]+)+$/i.test(b);
3613
+ if (branches.length > 0 && branches.every(isKebab)) return true;
3603
3614
  return false;
3604
3615
  }
3605
3616
  function recentlyTouchedMatchesQuery(recentPaths, queryTokens, graph) {