glassbox 1.2.0-beta.2 → 1.2.0-beta.3

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/cli.js +4 -3
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -32585,16 +32585,17 @@ function AnnotationRows({ annotations }) {
32585
32585
 
32586
32586
  // src/review-notes/reanchor.ts
32587
32587
  var MATCH_RADIUS = 50;
32588
+ var stripCr = (s) => s.replace(/\r$/, "");
32588
32589
  function reanchorReviewNotes(notes, diff) {
32589
32590
  const byLine = /* @__PURE__ */ new Map();
32590
32591
  for (const hunk of diff.hunks) {
32591
32592
  for (const line of hunk.lines) {
32592
- if (line.newNum !== null) byLine.set(line.newNum, line.content);
32593
+ if (line.newNum !== null) byLine.set(line.newNum, stripCr(line.content));
32593
32594
  }
32594
32595
  }
32595
32596
  return notes.map((note) => {
32596
32597
  if (note.snippet === void 0 || note.snippet === "") return note;
32597
- const anchor = note.snippet.split("\n")[0];
32598
+ const anchor = stripCr(note.snippet.split("\n")[0]);
32598
32599
  const current = byLine.get(note.line);
32599
32600
  if (current === anchor) return note;
32600
32601
  let best = null;
@@ -35510,7 +35511,7 @@ async function main() {
35510
35511
  console.log("AI service test mode enabled \u2014 using mock AI responses");
35511
35512
  }
35512
35513
  if (debug) {
35513
- console.log(`[debug] Build timestamp: ${"2026-08-26T05:50:06.508Z"}`);
35514
+ console.log(`[debug] Build timestamp: ${"2026-08-26T06:41:20.768Z"}`);
35514
35515
  }
35515
35516
  if (projectDir !== null) {
35516
35517
  if (!existsSync23(projectDir) || !statSync9(projectDir).isDirectory()) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "glassbox",
3
- "version": "1.2.0-beta.2",
3
+ "version": "1.2.0-beta.3",
4
4
  "description": "A local code review tool for AI-generated code. Review diffs, annotate lines, and export structured feedback that AI tools can act on.",
5
5
  "type": "module",
6
6
  "license": "MIT",