@productbrain/mcp 0.0.1-beta.12095 → 0.0.1-beta.12112

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.
@@ -40,7 +40,7 @@ import {
40
40
  runWithToolContext,
41
41
  setSessionOriented,
42
42
  startAgentSession
43
- } from "./chunk-PD5WOI5O.js";
43
+ } from "./chunk-X3F2D6NI.js";
44
44
 
45
45
  // src/server.ts
46
46
  import { McpServer as McpServer2 } from "@modelcontextprotocol/sdk/server/mcp.js";
@@ -9278,6 +9278,8 @@ function isStructural(value) {
9278
9278
  ]) {
9279
9279
  if (value[key] != null && !isStringArray(value[key])) return false;
9280
9280
  }
9281
+ const stranded = value.strandedWorkPackages;
9282
+ if (stranded != null && !(Array.isArray(stranded) && stranded.every((w) => isRecord(w) && typeof w.id === "string" && isStringArray(w.pastTargetIds)))) return false;
9281
9283
  return value.visionPurposeConnectivityTruncated === void 0 || typeof value.visionPurposeConnectivityTruncated === "boolean";
9282
9284
  }
9283
9285
  function isStrategy(value) {
@@ -9291,7 +9293,7 @@ function readSpineVerdict(value) {
9291
9293
  if (!isRecord(value) || typeof value.noSpineEntries !== "boolean") return { kind: "malformed" };
9292
9294
  if (value.noSpineEntries) return { kind: "empty" };
9293
9295
  if (!isStructural(value.structural) || !Array.isArray(value.perStrategy) || !value.perStrategy.every(isStrategy) || !isStory(value.story)) return { kind: "malformed" };
9294
- for (const key of ["strategiesTruncated", "perStrategyEvaluationTruncated", "objectivesTruncated", "keyResultsTruncated"]) {
9296
+ for (const key of ["strategiesTruncated", "perStrategyEvaluationTruncated", "objectivesTruncated", "keyResultsTruncated", "workPackagesTruncated"]) {
9295
9297
  if (value[key] !== void 0 && typeof value[key] !== "boolean") return { kind: "malformed" };
9296
9298
  }
9297
9299
  return { kind: "graded", verdict: value };
@@ -9302,7 +9304,7 @@ function describeSpineStaleness(changedMemberCount, membershipTruncated = false,
9302
9304
  return reason + (membershipTruncated ? "; membership scan incomplete" : "");
9303
9305
  }
9304
9306
  if (relationsChanged) {
9305
- return "the spine's relation topology (a part_of edge) changed since this was computed" + (membershipTruncated ? "; membership scan incomplete" : "");
9307
+ return "a part_of or validates link changed since this check ran" + (membershipTruncated ? "; membership scan incomplete" : "");
9306
9308
  }
9307
9309
  return "freshness could not be verified; the changed-entry count is unknown" + (membershipTruncated ? "; membership scan incomplete" : "");
9308
9310
  }
@@ -11883,4 +11885,4 @@ export {
11883
11885
  SERVER_VERSION,
11884
11886
  createProductBrainServer
11885
11887
  };
11886
- //# sourceMappingURL=chunk-WLWNFSAV.js.map
11888
+ //# sourceMappingURL=chunk-INCWDY4M.js.map