@phren/cli 0.3.15 → 0.3.16

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.
@@ -372,8 +372,14 @@ export class TranscriptReader {
372
372
  // instead of silently merging two disjoint windows. A pending diff
373
373
  // holds its row for a later poll and is not a completed page.
374
374
  const skippedLiveLines = before === undefined && held === undefined && cursor > lower;
375
- return { entries: entries.reverse(), totalLines: index.lines, startLine: cursor, hasMore: cursor > 0,
376
- reset: (resuming && !pastEnd ? false : reset) || skippedLiveLines };
375
+ // The phone resumes after `totalLines - 1`, so a live page does not
376
+ // count a held row or what follows it: those are still owed. An older
377
+ // page is never a replacement. The history route reads with a fresh
378
+ // reader, and a reset there made the phone drop every recent row it
379
+ // held and keep only the older page.
380
+ return { entries: entries.reverse(), totalLines: held ?? index.lines,
381
+ startLine: cursor, hasMore: cursor > 0,
382
+ reset: before !== undefined ? false : (resuming && !pastEnd ? false : reset) || skippedLiveLines };
377
383
  }, signal);
378
384
  }
379
385
  }
@@ -25348,7 +25348,7 @@ var init_package_metadata = __esm({
25348
25348
  __dirname = path15.dirname(fileURLToPath2(import.meta.url));
25349
25349
  ROOT = path15.join(__dirname, "..");
25350
25350
  PACKAGE_JSON_PATH = path15.join(ROOT, "package.json");
25351
- BUNDLED_VERSION = true ? "0.3.15" : "0.0.0";
25351
+ BUNDLED_VERSION = true ? "0.3.16" : "0.0.0";
25352
25352
  PACKAGE_JSON = readPackageJson();
25353
25353
  PACKAGE_NAME = PACKAGE_JSON.name || "phren";
25354
25354
  VERSION = PACKAGE_JSON.version || BUNDLED_VERSION;
@@ -28893,10 +28893,10 @@ var init_transcripts = __esm({
28893
28893
  const skippedLiveLines = before === void 0 && held === void 0 && cursor > lower;
28894
28894
  return {
28895
28895
  entries: entries2.reverse(),
28896
- totalLines: index2.lines,
28896
+ totalLines: held ?? index2.lines,
28897
28897
  startLine: cursor,
28898
28898
  hasMore: cursor > 0,
28899
- reset: (resuming && !pastEnd ? false : reset) || skippedLiveLines
28899
+ reset: before !== void 0 ? false : (resuming && !pastEnd ? false : reset) || skippedLiveLines
28900
28900
  };
28901
28901
  }, signal);
28902
28902
  }
@@ -59144,7 +59144,7 @@ async function readSecret(prompt) {
59144
59144
  // src/bridge/hook-main.ts
59145
59145
  init_utils_helpers();
59146
59146
  Object.assign(process.env, nonInteractiveGitEnv());
59147
- runBridge(process.argv.slice(2), "0.3.15").then((code) => {
59147
+ runBridge(process.argv.slice(2), "0.3.16").then((code) => {
59148
59148
  process.exitCode = code;
59149
59149
  }).catch((error62) => {
59150
59150
  console.error(error62 instanceof Error ? error62.message : "Phren Hook failed.");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@phren/cli",
3
- "version": "0.3.15",
3
+ "version": "0.3.16",
4
4
  "description": "Knowledge layer for AI agents - CLI, MCP server, and data layer",
5
5
  "type": "module",
6
6
  "bin": {