@productbrain/mcp 0.0.1-beta.4586 → 0.0.1-beta.4595
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.
|
@@ -6183,7 +6183,7 @@ function registerContextTools(server) {
|
|
|
6183
6183
|
"context",
|
|
6184
6184
|
{
|
|
6185
6185
|
title: "Context",
|
|
6186
|
-
description: "Assemble knowledge context in one call. Nine actions:\n\n- **gather**: Three modes \u2014 (1) By entry: traverse the graph around a specific entry. (2) By task: load task-relevant governance, binding constraints, and supporting domain knowledge for a natural-language task. (3) Graph mode (entryId + mode='graph'): enhanced traversal with provenance paths.\n- **build**: Structured build spec for any entry \u2014 data, related entries, business rules, glossary terms, chain refs. Use when starting a build. Requires active session.\n- **neighborhood**: Typed graph neighborhood \u2014 blocking chain (what this blocks, 3 hops), dependency chain (what blocks this), parent context (sibling count), related tensions, staleness signal, isolation signal. Fast indexed lookups. Requires entryId.\n- **changes**: Detect entries modified and relations created since a timestamp. Use for incremental updates instead of full traversal. Requires 'since' (ISO 8601). Returns grouped counts by collection. Cap: 200 entries.\n- **chain**: Directed deep traversal along one relation type to depth 4. Use for dependency analysis, governance chains, strategic alignment. Requires entryId. Optional: direction (outgoing/incoming), relationType, maxHops (1-4). Cycle detection, fan-out cap 10/hop, total cap 100 nodes. Returns tree + edges.\n- **cross-cut**: Structural aggregation \u2014 all relations of a given type across the workspace, grouped by source collection. Use to answer 'show me everything connected by part_of'. Requires 'relationType'. Cap: 500 entries.\n- **incremental**: Delta since last brief run for a skill. Returns only entries changed since the skill's last brief, filtering out previously surfaced entries. Requires 'skill' parameter. Use for steering briefs that need incremental awareness.\n- **brief**: Compound intelligence query composing multiple primitives. Requires 'briefType': 'steering' (7d changes + structure + delta + readiness), 'confidence' (7d changes + active
|
|
6186
|
+
description: "Assemble knowledge context in one call. Nine actions:\n\n- **gather**: Three modes \u2014 (1) By entry: traverse the graph around a specific entry. (2) By task: load task-relevant governance, binding constraints, and supporting domain knowledge for a natural-language task. (3) Graph mode (entryId + mode='graph'): enhanced traversal with provenance paths.\n- **build**: Structured build spec for any entry \u2014 data, related entries, business rules, glossary terms, chain refs. Use when starting a build. Requires active session.\n- **neighborhood**: Typed graph neighborhood \u2014 blocking chain (what this blocks, 3 hops), dependency chain (what blocks this), parent context (sibling count), related tensions, staleness signal, isolation signal. Fast indexed lookups. Requires entryId.\n- **changes**: Detect entries modified and relations created since a timestamp. Use for incremental updates instead of full traversal. Requires 'since' (ISO 8601). Returns grouped counts by collection. Cap: 200 entries.\n- **chain**: Directed deep traversal along one relation type to depth 4. Use for dependency analysis, governance chains, strategic alignment. Requires entryId. Optional: direction (outgoing/incoming), relationType, maxHops (1-4). Cycle detection, fan-out cap 10/hop, total cap 100 nodes. Returns tree + edges.\n- **cross-cut**: Structural aggregation \u2014 all relations of a given type across the workspace, grouped by source collection. Use to answer 'show me everything connected by part_of'. Requires 'relationType'. Cap: 500 entries.\n- **incremental**: Delta since last brief run for a skill. Returns only entries changed since the skill's last brief, filtering out previously surfaced entries. Requires 'skill' parameter. Use for steering briefs that need incremental awareness.\n- **brief**: Compound intelligence query composing multiple primitives. Requires 'briefType': 'steering' (7d changes + structure + delta + readiness), 'confidence' (7d changes + active work packages + tensions), or 'delta' (changes since custom timestamp). Auto-records brief run for steering.\n- **last-verified-brief**: Fetch the most recent verified brief snapshot for a (templateId, scopeKey) pair (absorbs `documents`). Use to build delta narratives.",
|
|
6187
6187
|
inputSchema: contextSchema,
|
|
6188
6188
|
annotations: { readOnlyHint: true, idempotentHint: true, openWorldHint: false }
|
|
6189
6189
|
},
|
|
@@ -7091,14 +7091,14 @@ function formatConfidencePass(result2) {
|
|
|
7091
7091
|
`_${changes.entries.length} entries modified${changes.truncated ? " (TRUNCATED)" : ""}_`,
|
|
7092
7092
|
""
|
|
7093
7093
|
];
|
|
7094
|
-
lines.push(`## Active
|
|
7094
|
+
lines.push(`## Active Work Packages (${result2.workPackageCount})`);
|
|
7095
7095
|
if (result2.activeBets.length > 0) {
|
|
7096
7096
|
for (const bet of result2.activeBets) {
|
|
7097
7097
|
const id = bet.entryId ? `**${bet.entryId}:** ` : "";
|
|
7098
7098
|
lines.push(`- ${id}${bet.name} [${bet.status}]`);
|
|
7099
7099
|
}
|
|
7100
7100
|
} else {
|
|
7101
|
-
lines.push("_No active
|
|
7101
|
+
lines.push("_No active work packages._");
|
|
7102
7102
|
}
|
|
7103
7103
|
lines.push("");
|
|
7104
7104
|
lines.push(`## Active Tensions (${result2.tensionCount})`);
|
|
@@ -9118,8 +9118,8 @@ async function buildOrientResponse(wsCtx, agentSessionId, errors, task) {
|
|
|
9118
9118
|
if (task) {
|
|
9119
9119
|
if (activeBets.length > 0) {
|
|
9120
9120
|
lines.push("");
|
|
9121
|
-
lines.push("## Active
|
|
9122
|
-
lines.push("_Work outside these
|
|
9121
|
+
lines.push("## Active work packages \u2014 current scope");
|
|
9122
|
+
lines.push("_Work outside these work packages requires explicit user confirmation._");
|
|
9123
9123
|
lines.push("");
|
|
9124
9124
|
for (const e of activeBets) {
|
|
9125
9125
|
lines.push(`- \`${e.entryId ?? e.name}\` ${e.name}`);
|
|
@@ -9163,8 +9163,8 @@ async function buildOrientResponse(wsCtx, agentSessionId, errors, task) {
|
|
|
9163
9163
|
} else {
|
|
9164
9164
|
if (activeBets.length > 0) {
|
|
9165
9165
|
lines.push("");
|
|
9166
|
-
lines.push("## Active
|
|
9167
|
-
lines.push("_Work outside these
|
|
9166
|
+
lines.push("## Active work packages \u2014 current scope");
|
|
9167
|
+
lines.push("_Work outside these work packages requires explicit user confirmation._");
|
|
9168
9168
|
lines.push("");
|
|
9169
9169
|
for (const e of activeBets) {
|
|
9170
9170
|
lines.push(`- \`${e.entryId ?? e.name}\` ${e.name}`);
|
|
@@ -13317,7 +13317,7 @@ function registerSessionTools(server) {
|
|
|
13317
13317
|
"session",
|
|
13318
13318
|
{
|
|
13319
13319
|
title: "Session \u2014 Lifecycle & Facilitation",
|
|
13320
|
-
description: "Session lifecycle, wrapup review, and work package facilitation.\n\n- **start**: Begin a tracked write session for attribution. **This is the ONLY call that creates a session** \u2014 write tools (capture, entries action=update/commit, relations) require it. `orient action=start` orients an existing session and loads stage-aware context, but does NOT create one: call `session action=start` first, then `orient action=start`.\n- **close**: End the current session. Records structured data (entries created, modified, relations). Run `session action=wrapup-review` before closing.\n- **status**: Check current session \u2014 active or not, oriented, activity counts.\n- **wrapup-review**: Review uncommitted drafts with quality scores, suggested links. Run before close.\n- **wrapup-commit**: Accept all uncommitted drafts and create suggested links.\n- **resume**: Load session state (
|
|
13320
|
+
description: "Session lifecycle, wrapup review, and work package facilitation.\n\n- **start**: Begin a tracked write session for attribution. **This is the ONLY call that creates a session** \u2014 write tools (capture, entries action=update/commit, relations) require it. `orient action=start` orients an existing session and loads stage-aware context, but does NOT create one: call `session action=start` first, then `orient action=start`.\n- **close**: End the current session. Records structured data (entries created, modified, relations). Run `session action=wrapup-review` before closing.\n- **status**: Check current session \u2014 active or not, oriented, activity counts.\n- **wrapup-review**: Review uncommitted drafts with quality scores, suggested links. Run before close.\n- **wrapup-commit**: Accept all uncommitted drafts and create suggested links.\n- **resume**: Load session state (work package data, constellation, drafts) from an existing work package entry.\n- **commit-constellation**: Atomically accept a work package and all its linked draft entries in one call.",
|
|
13321
13321
|
inputSchema: sessionSchema,
|
|
13322
13322
|
// Mixed read/write noun (§3 R3): wrapup-commit/resume/commit-constellation write.
|
|
13323
13323
|
annotations: { readOnlyHint: false, destructiveHint: false, openWorldHint: false }
|
|
@@ -17048,4 +17048,4 @@ export {
|
|
|
17048
17048
|
createProductBrainServer,
|
|
17049
17049
|
initFeatureFlags
|
|
17050
17050
|
};
|
|
17051
|
-
//# sourceMappingURL=chunk-
|
|
17051
|
+
//# sourceMappingURL=chunk-IEPC2AQN.js.map
|