aegis-bridge 2.3.9 → 2.3.10

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.
@@ -179,12 +179,19 @@ export async function readNewEntries(filePath, fromOffset) {
179
179
  finally {
180
180
  await fd.close();
181
181
  }
182
+ let foundNewline = false;
182
183
  for (let i = scanBuf.length - 1; i >= 0; i--) {
183
184
  if (scanBuf[i] === 0x0a) { // '\n'
184
185
  effectiveOffset = scanStart + i + 1;
186
+ foundNewline = true;
185
187
  break;
186
188
  }
187
189
  }
190
+ // Issue #579: If no newline found and we didn't scan from byte 0,
191
+ // fall back to offset 0 to avoid starting mid-line.
192
+ if (!foundNewline && scanStart > 0) {
193
+ effectiveOffset = 0;
194
+ }
188
195
  }
189
196
  const slicedContent = await new Promise((resolve, reject) => {
190
197
  const chunks = [];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aegis-bridge",
3
- "version": "2.3.9",
3
+ "version": "2.3.10",
4
4
  "type": "module",
5
5
  "description": "Orchestrate Claude Code sessions via API. Create, brief, monitor, refine, ship.",
6
6
  "main": "dist/server.js",