@productbrain/mcp 0.0.1-beta.7979 → 0.0.1-beta.7984
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.
- package/dist/{chunk-XBWBIJNZ.js → chunk-3NICJHNZ.js} +3 -39
- package/dist/{chunk-XBWBIJNZ.js.map → chunk-3NICJHNZ.js.map} +1 -1
- package/dist/{chunk-5PWQ5IHG.js → chunk-SLQ5XKT5.js} +2 -20
- package/dist/chunk-SLQ5XKT5.js.map +1 -0
- package/dist/cli/index.js +1 -1
- package/dist/http.js +2 -2
- package/dist/index.js +2 -2
- package/dist/{setup-2J2WRUGY.js → setup-JUWT7RRD.js} +2 -2
- package/package.json +1 -1
- package/dist/chunk-5PWQ5IHG.js.map +0 -1
- /package/dist/{setup-2J2WRUGY.js.map → setup-JUWT7RRD.js.map} +0 -0
|
@@ -38,9 +38,8 @@ import {
|
|
|
38
38
|
trackQualityCheck,
|
|
39
39
|
trackQualityVerdict,
|
|
40
40
|
trackSessionCaptureRate,
|
|
41
|
-
trackWriteBackHintServed,
|
|
42
41
|
trackZeroCaptureAuditFired
|
|
43
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-SLQ5XKT5.js";
|
|
44
43
|
|
|
45
44
|
// src/server.ts
|
|
46
45
|
import { McpServer as McpServer2 } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
@@ -8514,15 +8513,6 @@ async function _handleOrient({ mode = "full", tier, task, startupSignals, invoca
|
|
|
8514
8513
|
recoveryBlock = orientView.recoveryBlock ?? null;
|
|
8515
8514
|
}
|
|
8516
8515
|
const hasTaskGrounding = Boolean(task && (orientView?.taskContext?.context?.length ?? 0) > 0);
|
|
8517
|
-
if (wsCtx && hasTaskGrounding && orientView?.writeBackHints) {
|
|
8518
|
-
const hints = Array.isArray(orientView.writeBackHints) ? orientView.writeBackHints : [];
|
|
8519
|
-
if (hints.length > 0) {
|
|
8520
|
-
trackWriteBackHintServed(wsCtx.workspaceId, {
|
|
8521
|
-
hint_count: hints.length,
|
|
8522
|
-
has_task: !!task
|
|
8523
|
-
});
|
|
8524
|
-
}
|
|
8525
|
-
}
|
|
8526
8516
|
let allCollections = [];
|
|
8527
8517
|
try {
|
|
8528
8518
|
allCollections = await kernelQuery("chain.listCollections") ?? [];
|
|
@@ -8610,13 +8600,6 @@ async function _handleOrient({ mode = "full", tier, task, startupSignals, invoca
|
|
|
8610
8600
|
const degradedLineBrief = buildDegradedPreloadsLine(orientView?.degradedPreloads);
|
|
8611
8601
|
if (degradedLineBrief) lines.push(degradedLineBrief);
|
|
8612
8602
|
lines.push(...buildRitualsSurfaceLines(orientView, { fetchFailed: orientFetchFailed || orientView?.fetchFailed === true }));
|
|
8613
|
-
if (orientView?.writeBackHints && orientView.writeBackHints.length > 0) {
|
|
8614
|
-
lines.push("");
|
|
8615
|
-
lines.push("Write-back hints (what to capture this session):");
|
|
8616
|
-
for (const h of orientView.writeBackHints) {
|
|
8617
|
-
lines.push(` ${h.collectionSlug}: ${h.hint}`);
|
|
8618
|
-
}
|
|
8619
|
-
}
|
|
8620
8603
|
const briefActiveWps = orientView?.activeWorkPackages ?? [];
|
|
8621
8604
|
if (briefActiveWps.length > 0) {
|
|
8622
8605
|
for (const e of briefActiveWps) {
|
|
@@ -8879,16 +8862,6 @@ async function _handleOrient({ mode = "full", tier, task, startupSignals, invoca
|
|
|
8879
8862
|
orientView.taskContext.constellationBetName
|
|
8880
8863
|
));
|
|
8881
8864
|
}
|
|
8882
|
-
if (orientView?.writeBackHints && orientView.writeBackHints.length > 0) {
|
|
8883
|
-
lines.push("");
|
|
8884
|
-
lines.push("## Write-Back Hints");
|
|
8885
|
-
lines.push("_What to capture this session (derived from task context):_");
|
|
8886
|
-
lines.push("");
|
|
8887
|
-
for (const h of orientView.writeBackHints) {
|
|
8888
|
-
lines.push(`- **${h.collectionSlug}**: ${h.hint}`);
|
|
8889
|
-
}
|
|
8890
|
-
lines.push("");
|
|
8891
|
-
}
|
|
8892
8865
|
if (orientView) {
|
|
8893
8866
|
lines.push(...buildTaskAlignmentLines(orientView.taskAlignment));
|
|
8894
8867
|
const degradedLineFull = buildDegradedPreloadsLine(orientView.degradedPreloads);
|
|
@@ -11646,13 +11619,6 @@ async function runWrapupReview() {
|
|
|
11646
11619
|
lines.push("### Capture Audit");
|
|
11647
11620
|
lines.push("");
|
|
11648
11621
|
lines.push(`_${data.captureAudit.message}_`);
|
|
11649
|
-
if (data.captureAudit.suggestions.length > 0) {
|
|
11650
|
-
lines.push("");
|
|
11651
|
-
lines.push("**What to consider capturing:**");
|
|
11652
|
-
for (const s of data.captureAudit.suggestions) {
|
|
11653
|
-
lines.push(`- **${s.collectionSlug}**: ${s.hint}`);
|
|
11654
|
-
}
|
|
11655
|
-
}
|
|
11656
11622
|
lines.push("");
|
|
11657
11623
|
}
|
|
11658
11624
|
lines.push(...data.acceptIndependenceDigest?.lines.length ? ["", "### Accept Independence", "", `_${data.acceptIndependenceDigest.header}_`, ...data.acceptIndependenceDigest.lines.map((l) => `- ${l}`), ""] : []);
|
|
@@ -11661,9 +11627,7 @@ async function runWrapupReview() {
|
|
|
11661
11627
|
if (data.captureAudit) {
|
|
11662
11628
|
const wsCtx = await getWorkspaceContext();
|
|
11663
11629
|
if (wsCtx) {
|
|
11664
|
-
trackZeroCaptureAuditFired(wsCtx.workspaceId
|
|
11665
|
-
suggestion_count: data.captureAudit.suggestions.length
|
|
11666
|
-
});
|
|
11630
|
+
trackZeroCaptureAuditFired(wsCtx.workspaceId);
|
|
11667
11631
|
}
|
|
11668
11632
|
}
|
|
11669
11633
|
const gapCount = getSessionGaps().length;
|
|
@@ -14904,4 +14868,4 @@ export {
|
|
|
14904
14868
|
createProductBrainServer,
|
|
14905
14869
|
initFeatureFlags
|
|
14906
14870
|
};
|
|
14907
|
-
//# sourceMappingURL=chunk-
|
|
14871
|
+
//# sourceMappingURL=chunk-3NICJHNZ.js.map
|