@phren/cli 0.0.48 → 0.0.50

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.
@@ -712,6 +712,12 @@ function isSentinelFresh(phrenPath, sentinel) {
712
712
  path.join(phrenPath, ".config"),
713
713
  path.join(phrenPath, ".runtime"),
714
714
  ];
715
+ // Also check team store root directories so changes there invalidate the cache
716
+ if (_cachedStoreProjectDirs && _cachedStorePhrenPath === phrenPath) {
717
+ const storeRoots = new Set(_cachedStoreProjectDirs.map(d => path.dirname(d)));
718
+ for (const root of storeRoots)
719
+ dirsToCheck.push(root);
720
+ }
715
721
  for (const dir of dirsToCheck) {
716
722
  try {
717
723
  const stat = fs.statSync(dir);
@@ -1,4 +1,4 @@
1
- import { mcpResponse } from "./types.js";
1
+ import { mcpResponse, resolveStoreForProject } from "./types.js";
2
2
  import { z } from "zod";
3
3
  import * as fs from "fs";
4
4
  import * as path from "path";
@@ -615,9 +615,10 @@ async function handleListProjects(ctx, { page, page_size }) {
615
615
  });
616
616
  }
617
617
  async function handleGetFindings(ctx, { project, limit, include_superseded, include_history, status }) {
618
- const { phrenPath } = ctx;
619
618
  if (!isValidProjectName(project))
620
619
  return mcpResponse({ ok: false, error: `Invalid project name: "${project}"` });
620
+ const resolved = resolveStoreForProject(ctx, project);
621
+ const { phrenPath } = resolved;
621
622
  const includeHistory = include_history ?? include_superseded ?? false;
622
623
  // Always read with archive so we can compute historyCount without a second read
623
624
  const result = readFindings(phrenPath, project, { includeArchived: true });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@phren/cli",
3
- "version": "0.0.48",
3
+ "version": "0.0.50",
4
4
  "description": "Knowledge layer for AI agents. Phren learns and recalls.",
5
5
  "type": "module",
6
6
  "bin": {