@productbrain/mcp 0.0.1-beta.1406 → 0.0.1-beta.1414
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.
|
@@ -9551,8 +9551,11 @@ function registerVerifyTools(server) {
|
|
|
9551
9551
|
});
|
|
9552
9552
|
let allEntryIds;
|
|
9553
9553
|
try {
|
|
9554
|
-
const allEntries = await kernelQuery(
|
|
9555
|
-
|
|
9554
|
+
const allEntries = await kernelQuery(
|
|
9555
|
+
"chain.listEntries",
|
|
9556
|
+
{ fields: ["entryId"] }
|
|
9557
|
+
);
|
|
9558
|
+
allEntryIds = new Set((allEntries ?? []).map((e) => e.entryId).filter(Boolean));
|
|
9556
9559
|
} catch {
|
|
9557
9560
|
allEntryIds = new Set(scopedEntries.map((e) => e.entryId).filter(Boolean));
|
|
9558
9561
|
}
|
|
@@ -9781,7 +9784,9 @@ function buildPlannedWork(allEntries) {
|
|
|
9781
9784
|
}
|
|
9782
9785
|
async function queryPlannedWork() {
|
|
9783
9786
|
try {
|
|
9784
|
-
const allEntries = await kernelQuery("chain.listEntries", {
|
|
9787
|
+
const allEntries = await kernelQuery("chain.listEntries", {
|
|
9788
|
+
fields: ["_id", "entryId", "name", "status", "workflowStatus", "collectionSlug", "stratum", "canonicalKey"]
|
|
9789
|
+
});
|
|
9785
9790
|
if (!allEntries) return { uncommittedDrafts: [], inProgressEntries: [], openTensions: [] };
|
|
9786
9791
|
return buildPlannedWork(allEntries);
|
|
9787
9792
|
} catch {
|
|
@@ -10460,11 +10465,12 @@ async function buildOrientResponse(wsCtx, agentSessionId, errors, task) {
|
|
|
10460
10465
|
lines.push(...formatRecoveryBlock(recoveryBlock));
|
|
10461
10466
|
}
|
|
10462
10467
|
try {
|
|
10463
|
-
const allEntries = await kernelQuery(
|
|
10464
|
-
|
|
10465
|
-
|
|
10468
|
+
const allEntries = await kernelQuery(
|
|
10469
|
+
"chain.listEntries",
|
|
10470
|
+
{ fields: ["seededByPlatform", "collectionId"] }
|
|
10466
10471
|
);
|
|
10467
|
-
const
|
|
10472
|
+
const committed = (allEntries ?? []).filter((e) => !e.seededByPlatform);
|
|
10473
|
+
const committedCollections = new Set(committed.map((e) => e.collectionId));
|
|
10468
10474
|
if (committed.length >= 10 && committedCollections.size >= 3) {
|
|
10469
10475
|
lines.push("");
|
|
10470
10476
|
lines.push(`_${committed.length} entries across ${committedCollections.size} collections on the Chain._`);
|
|
@@ -12380,7 +12386,9 @@ async function _handleOrient({ mode = "full", tier, task, scope }) {
|
|
|
12380
12386
|
}
|
|
12381
12387
|
let allEntries = [];
|
|
12382
12388
|
try {
|
|
12383
|
-
allEntries = await kernelQuery("chain.listEntries", {
|
|
12389
|
+
allEntries = await kernelQuery("chain.listEntries", {
|
|
12390
|
+
fields: ["_id", "entryId", "name", "status", "workflowStatus", "collectionSlug", "stratum", "canonicalKey"]
|
|
12391
|
+
}) ?? [];
|
|
12384
12392
|
} catch {
|
|
12385
12393
|
}
|
|
12386
12394
|
const plannedWork = buildPlannedWork(allEntries);
|
|
@@ -12645,11 +12653,14 @@ function formatOrgHealthLines(orgHealth, maxFlags = 3) {
|
|
|
12645
12653
|
}
|
|
12646
12654
|
async function fetchOrganisationHealth() {
|
|
12647
12655
|
try {
|
|
12648
|
-
const allEntries = await kernelQuery(
|
|
12656
|
+
const allEntries = await kernelQuery(
|
|
12657
|
+
"chain.listEntries",
|
|
12658
|
+
{ fields: ["name", "description", "collectionSlug"] }
|
|
12659
|
+
);
|
|
12649
12660
|
if (!allEntries || allEntries.length === 0) return null;
|
|
12650
12661
|
const classifyInput = allEntries.map((e) => ({
|
|
12651
12662
|
name: e.name ?? "",
|
|
12652
|
-
description: typeof e.
|
|
12663
|
+
description: typeof e.description === "string" ? e.description : ""
|
|
12653
12664
|
}));
|
|
12654
12665
|
const classifications = await kernelQuery(
|
|
12655
12666
|
"chain.batchClassifyHeuristic",
|
|
@@ -12680,8 +12691,11 @@ async function handleHealthCheck() {
|
|
|
12680
12691
|
let totalEntries = 0;
|
|
12681
12692
|
if (collections.length > 0) {
|
|
12682
12693
|
try {
|
|
12683
|
-
const entries = await kernelQuery(
|
|
12684
|
-
|
|
12694
|
+
const entries = await kernelQuery(
|
|
12695
|
+
"chain.listEntries",
|
|
12696
|
+
{ fields: ["entryId"] }
|
|
12697
|
+
);
|
|
12698
|
+
totalEntries = (entries ?? []).length;
|
|
12685
12699
|
} catch (e) {
|
|
12686
12700
|
errors.push(`Entry count failed: ${e instanceof Error ? e.message : String(e)}`);
|
|
12687
12701
|
}
|
|
@@ -14398,4 +14412,4 @@ export {
|
|
|
14398
14412
|
createProductBrainServer,
|
|
14399
14413
|
initFeatureFlags
|
|
14400
14414
|
};
|
|
14401
|
-
//# sourceMappingURL=chunk-
|
|
14415
|
+
//# sourceMappingURL=chunk-K5LBOKWM.js.map
|