@productbrain/mcp 0.0.1-beta.6705 → 0.0.1-beta.6722
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-Y47HOJQP.js → chunk-BDKCT6MT.js} +7 -15
- package/dist/chunk-BDKCT6MT.js.map +1 -0
- package/dist/{chunk-EUKYUOF7.js → chunk-WS34EBF7.js} +2 -1
- package/dist/chunk-WS34EBF7.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-ZCBYUHJN.js → setup-QFJLKI3K.js} +2 -2
- package/package.json +1 -1
- package/dist/chunk-EUKYUOF7.js.map +0 -1
- package/dist/chunk-Y47HOJQP.js.map +0 -1
- /package/dist/{setup-ZCBYUHJN.js.map → setup-QFJLKI3K.js.map} +0 -0
|
@@ -41,7 +41,7 @@ import {
|
|
|
41
41
|
trackSessionCaptureRate,
|
|
42
42
|
trackWriteBackHintServed,
|
|
43
43
|
trackZeroCaptureAuditFired
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-WS34EBF7.js";
|
|
45
45
|
|
|
46
46
|
// src/server.ts
|
|
47
47
|
import { McpServer as McpServer2 } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
@@ -5069,7 +5069,7 @@ var CONTEXT_ACTIONS = ["gather", "build", "neighborhood", "changes", "chain", "c
|
|
|
5069
5069
|
var contextSchema = z14.object({
|
|
5070
5070
|
// provenance: neighborhood BET-142; changes/chain/cross-cut/incremental/brief BET-239 (E4, E6)
|
|
5071
5071
|
action: z14.enum(CONTEXT_ACTIONS).describe(
|
|
5072
|
-
"'gather': assemble knowledge context (entry graph, task auto-load, journey mode, or graph mode). 'build': structured build spec for an entry. 'neighborhood': typed graph neighborhood for an entry \u2014 blocking chain, dependencies, parent context, tensions, staleness. 'changes': entries modified and relations created since a timestamp. Requires 'since' parameter. 'chain': directed traversal along one relation type to depth 4. Requires entryId. Optional: direction, relationType, maxHops (1-4). 'cross-cut': structural aggregation \u2014 all relations of a given type grouped by source collection. Requires 'relationType' parameter. 'incremental': delta since last brief run for a skill. Requires 'skill' parameter. Returns only entries changed since the skill's last brief. 'brief': compound intelligence query. Requires 'briefType' parameter: 'steering' (changes + structure + delta + readiness), 'confidence' (changes + active bets
|
|
5072
|
+
"'gather': assemble knowledge context (entry graph, task auto-load, journey mode, or graph mode). 'build': structured build spec for an entry. 'neighborhood': typed graph neighborhood for an entry \u2014 blocking chain, dependencies, parent context, tensions, staleness. 'changes': entries modified and relations created since a timestamp. Requires 'since' parameter. 'chain': directed traversal along one relation type to depth 4. Requires entryId. Optional: direction, relationType, maxHops (1-4). 'cross-cut': structural aggregation \u2014 all relations of a given type grouped by source collection. Requires 'relationType' parameter. 'incremental': delta since last brief run for a skill. Requires 'skill' parameter. Returns only entries changed since the skill's last brief. 'brief': compound intelligence query. Requires 'briefType' parameter: 'steering' (changes + structure + delta + readiness), 'confidence' (changes + active bets \u2014 use the pb CLI's `tensions list` for tensions), or 'delta' (changes + relations since timestamp). Optional 'since' for delta type. 'last-verified-brief': fetch the most recent verified brief snapshot for a (templateId, scopeKey) pair (absorbs documents action=get-last-verified-brief). Requires templateId and scopeKey."
|
|
5073
5073
|
),
|
|
5074
5074
|
entryId: z14.string().max(200).optional().describe("For 'build'/'neighborhood'/'chain': entry ID, e.g. '<PREFIX>-<n>'. For 'gather': optional entry ID for entry-graph mode."),
|
|
5075
5075
|
mapEntryId: z14.string().max(200).optional().describe(
|
|
@@ -5091,7 +5091,7 @@ var contextSchema = z14.object({
|
|
|
5091
5091
|
"Skill name for 'incremental' action \u2014 identifies which skill's brief history to compare against. Examples: 'preflight', 'shaping', 'review'. Required when action is 'incremental'."
|
|
5092
5092
|
),
|
|
5093
5093
|
briefType: z14.enum(["steering", "confidence", "delta"]).optional().describe(
|
|
5094
|
-
"Compound query type for 'brief' action. 'steering': 7d changes + structural aggregation (part_of, depends_on, constrains) + incremental delta + workspace readiness. 'confidence': 7d changes + active bets summary
|
|
5094
|
+
"Compound query type for 'brief' action. 'steering': 7d changes + structural aggregation (part_of, depends_on, constrains) + incremental delta + workspace readiness. 'confidence': 7d changes + active bets summary (tensions: use the pb CLI's `tensions list`, not this action). 'delta': changes + relations since a custom timestamp (use 'since' param). Required when action is 'brief'."
|
|
5095
5095
|
),
|
|
5096
5096
|
templateId: z14.string().max(200).optional().describe(
|
|
5097
5097
|
"For 'last-verified-brief': brief template identifier \u2014 currently 'steering-brief' is the only registered template."
|
|
@@ -5195,7 +5195,7 @@ function registerContextTools(server) {
|
|
|
5195
5195
|
"context",
|
|
5196
5196
|
{
|
|
5197
5197
|
title: "Context",
|
|
5198
|
-
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
|
|
5198
|
+
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 \u2014 tensions: use the pb CLI's `tensions list`), 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.",
|
|
5199
5199
|
inputSchema: contextSchema,
|
|
5200
5200
|
annotations: { readOnlyHint: true, idempotentHint: true, openWorldHint: false }
|
|
5201
5201
|
},
|
|
@@ -6114,15 +6114,7 @@ function formatConfidencePass(result2) {
|
|
|
6114
6114
|
lines.push("_No active work packages._");
|
|
6115
6115
|
}
|
|
6116
6116
|
lines.push("");
|
|
6117
|
-
lines.push(
|
|
6118
|
-
if (result2.activeTensions.length > 0) {
|
|
6119
|
-
for (const tension of result2.activeTensions) {
|
|
6120
|
-
const id = tension.entryId ? `**${tension.entryId}:** ` : "";
|
|
6121
|
-
lines.push(`- ${id}${tension.name}`);
|
|
6122
|
-
}
|
|
6123
|
-
} else {
|
|
6124
|
-
lines.push("_No active tensions._");
|
|
6125
|
-
}
|
|
6117
|
+
lines.push("_Tensions: see `pb tensions list` on the CLI \u2014 this pass no longer carries a tension count._");
|
|
6126
6118
|
lines.push("");
|
|
6127
6119
|
lines.push("## Trust");
|
|
6128
6120
|
lines.push("_Trust-weighted scoring active: agent-origin and unverified entries receive lower confidence scores (human=1.0, agent+verified=0.7, agent+unverified=0.56). Use `entries action=get` to inspect individual entry origin/verification. Use `orient -b` for workspace trust metrics._");
|
|
@@ -6133,7 +6125,7 @@ function formatConfidencePass(result2) {
|
|
|
6133
6125
|
return {
|
|
6134
6126
|
content: [{ type: "text", text: lines.join("\n") }],
|
|
6135
6127
|
structuredContent: success(
|
|
6136
|
-
`Confidence pass: ${changes.entries.length} changes, ${result2.workPackageCount} active work packages
|
|
6128
|
+
`Confidence pass: ${changes.entries.length} changes, ${result2.workPackageCount} active work packages.`,
|
|
6137
6129
|
{ ...result2, trustFilterActive: true }
|
|
6138
6130
|
)
|
|
6139
6131
|
};
|
|
@@ -14966,4 +14958,4 @@ export {
|
|
|
14966
14958
|
createProductBrainServer,
|
|
14967
14959
|
initFeatureFlags
|
|
14968
14960
|
};
|
|
14969
|
-
//# sourceMappingURL=chunk-
|
|
14961
|
+
//# sourceMappingURL=chunk-BDKCT6MT.js.map
|