@productbrain/mcp 0.0.1-beta.206 → 0.0.1-beta.208
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.
|
@@ -7919,8 +7919,8 @@ function registerSessionTools(server) {
|
|
|
7919
7919
|
server.registerTool(
|
|
7920
7920
|
"session",
|
|
7921
7921
|
{
|
|
7922
|
-
title: "Session",
|
|
7923
|
-
description: "
|
|
7922
|
+
title: "Session \u2014 Low-Level Lifecycle",
|
|
7923
|
+
description: "Low-level session lifecycle management. **For user-facing 'begin a session', call `start_pb` instead** \u2014 it is the canonical opener and handles session start automatically.\n\nThree actions:\n\n- **start**: Low-level \u2014 begin a tracked session for attribution. Most agents should NOT call this directly; use `start_pb` which wraps it with stage-aware context. Use `session start` only for explicit session control (e.g. supersession after CLI work).\n- **close**: End the current session. Records structured data (entries created, modified, relations). If uncommitted drafts exist and wrapup hasn't run, shows a review summary. Run session-wrapup before closing.\n- **status**: Check current session \u2014 active or not, oriented, activity counts.",
|
|
7924
7924
|
inputSchema: sessionSchema,
|
|
7925
7925
|
annotations: { readOnlyHint: false, destructiveHint: false, openWorldHint: false }
|
|
7926
7926
|
},
|
|
@@ -10706,7 +10706,7 @@ function checkDocCompleteness(collections, checkedAt) {
|
|
|
10706
10706
|
};
|
|
10707
10707
|
}
|
|
10708
10708
|
function renderDocCompletenessLines(report) {
|
|
10709
|
-
const lines = ["##
|
|
10709
|
+
const lines = ["## Collection Documentation Gaps"];
|
|
10710
10710
|
if (report.summary.total === 0) {
|
|
10711
10711
|
lines.push(`All ${report.totalChecked} collection docs have required fields populated.`);
|
|
10712
10712
|
lines.push("");
|
|
@@ -10718,21 +10718,23 @@ function renderDocCompletenessLines(report) {
|
|
|
10718
10718
|
lines.push(`**${report.summary.total} gap${report.summary.total === 1 ? "" : "s"}** across ${report.totalChecked} collections (${parts.join(", ")})`);
|
|
10719
10719
|
const errors = report.violations.filter((v) => v.severity === "error");
|
|
10720
10720
|
const warnings = report.violations.filter((v) => v.severity === "warning");
|
|
10721
|
+
const ERROR_INLINE = 10;
|
|
10722
|
+
const WARNING_INLINE = 10;
|
|
10721
10723
|
if (errors.length > 0) {
|
|
10722
10724
|
lines.push("");
|
|
10723
10725
|
lines.push("**Errors** (must fix):");
|
|
10724
|
-
for (const v of errors.slice(0,
|
|
10726
|
+
for (const v of errors.slice(0, ERROR_INLINE)) {
|
|
10725
10727
|
lines.push(`- ${v.message} \u2014 ${v.fix}`);
|
|
10726
10728
|
}
|
|
10727
|
-
if (errors.length >
|
|
10729
|
+
if (errors.length > ERROR_INLINE) lines.push(`- ...and ${errors.length - ERROR_INLINE} more`);
|
|
10728
10730
|
}
|
|
10729
10731
|
if (warnings.length > 0) {
|
|
10730
10732
|
lines.push("");
|
|
10731
10733
|
lines.push("**Warnings**:");
|
|
10732
|
-
for (const v of warnings.slice(0,
|
|
10734
|
+
for (const v of warnings.slice(0, WARNING_INLINE)) {
|
|
10733
10735
|
lines.push(`- ${v.message}`);
|
|
10734
10736
|
}
|
|
10735
|
-
if (warnings.length >
|
|
10737
|
+
if (warnings.length > WARNING_INLINE) lines.push(`- ...and ${warnings.length - WARNING_INLINE} more`);
|
|
10736
10738
|
}
|
|
10737
10739
|
lines.push("");
|
|
10738
10740
|
return lines;
|
|
@@ -13175,8 +13177,8 @@ function registerOrientTool(server) {
|
|
|
13175
13177
|
server.registerTool(
|
|
13176
13178
|
"orient",
|
|
13177
13179
|
{
|
|
13178
|
-
title: "Orient \u2014
|
|
13179
|
-
description: "
|
|
13180
|
+
title: "Orient \u2014 Task Grounding",
|
|
13181
|
+
description: "Task-grounded context loader. Use AFTER `start_pb` (the canonical session opener) to load governance and context for a specific task. Returns workspace context with a single recommended next action for low-readiness workspaces, or a standup-style briefing for established workspaces.\n\n**Not the session opener.** For 'how do I begin a session' or 'Start PB', call `start_pb` instead. `orient` is for refreshing or scoping context once a session is already underway.\n\nCompleting orientation unlocks write tools for the active session.\n\n**tier:** Controls payload depth. `standard` (default, ~256 KB) is the recommended default. `summary` (~10 KB) for quick mid-session re-orientation. `full` for complete payload when deep context is needed.\n\n**mode:** `full` (default) returns full context. `brief` returns compact summary \u2014 mapped to tier=summary internally. Prefer `tier` for explicit depth control.\n\n**task:** Optional natural-language task description. When provided, returns task-scoped context (scored, relevant entries) in addition to standard orient sections.\n\n**scope:** Optional domain scope. Filters governance entries to those relevant for the specified domain. Authority roots include strategy, product, product-design, engineering, architecture, data, governance, and go-to-market. Child scopes such as product-design/ux, engineering/frontend, data/analytics, and governance/principles are accepted. Legacy internal scopes remain accepted.",
|
|
13180
13182
|
inputSchema: orientSchema,
|
|
13181
13183
|
annotations: { readOnlyHint: true, idempotentHint: true, openWorldHint: false }
|
|
13182
13184
|
},
|
|
@@ -15674,4 +15676,4 @@ export {
|
|
|
15674
15676
|
createProductBrainServer,
|
|
15675
15677
|
initFeatureFlags
|
|
15676
15678
|
};
|
|
15677
|
-
//# sourceMappingURL=chunk-
|
|
15679
|
+
//# sourceMappingURL=chunk-BBK5IO4R.js.map
|