@productbrain/mcp 0.0.1-beta.943 → 0.0.1-beta.947
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.
|
@@ -10814,6 +10814,12 @@ var CORE_PROTOCOL_BASE = [
|
|
|
10814
10814
|
];
|
|
10815
10815
|
var RULE5_WITH_GOVERNANCE = "**Validate against governance.** Before proposing any solution, check it against the Workspace Governance directives below. If your proposal conflicts with a principle, standard, or business rule \u2014 stop, name the conflict, and get explicit user confirmation before proceeding.";
|
|
10816
10816
|
var RULE5_COMPACT = '**Validate against governance.** Before proposing or building anything, call `orient task="<your task>"` to load relevant governance. If your proposal conflicts with a principle, standard, or business rule \u2014 stop, name the conflict, and get explicit user confirmation.';
|
|
10817
|
+
function provenanceMark(p) {
|
|
10818
|
+
if (p === "authoritative") return "\u2605 ";
|
|
10819
|
+
if (p === "provisional") return "~ ";
|
|
10820
|
+
if (p === "floor") return "\xB7 ";
|
|
10821
|
+
return "";
|
|
10822
|
+
}
|
|
10817
10823
|
var MAX_ENTRIES_NO_TASK = 3;
|
|
10818
10824
|
var MAX_ENTRIES_WITH_TASK = 5;
|
|
10819
10825
|
function extractKeywords(text) {
|
|
@@ -10835,7 +10841,9 @@ function formatGovernanceEntry(entry) {
|
|
|
10835
10841
|
const id = entry.entryId ?? entry.name;
|
|
10836
10842
|
const desc = entry.description ? ` \u2014 ${entry.description.slice(0, 120)}${entry.description.length > 120 ? "..." : ""}` : "";
|
|
10837
10843
|
const tierLabel = entry.tier === 1 ? " `[direct]`" : entry.tier === 2 ? " `[domain]`" : "";
|
|
10838
|
-
|
|
10844
|
+
const mark = provenanceMark(entry.provenance);
|
|
10845
|
+
const anchorSuffix = entry.anchoredBy ? ` (${entry.anchoredBy})` : "";
|
|
10846
|
+
return `- ${mark}**[${id}]** ${entry.name}${anchorSuffix}${tierLabel}${desc}`;
|
|
10839
10847
|
}
|
|
10840
10848
|
function buildOperatingProtocol(governanceOrStandards, task) {
|
|
10841
10849
|
const governance = Array.isArray(governanceOrStandards) ? { standards: governanceOrStandards } : governanceOrStandards ?? {};
|
|
@@ -12835,7 +12843,10 @@ function registerOrientTool(server) {
|
|
|
12835
12843
|
entryId: e.entryId,
|
|
12836
12844
|
name: e.name,
|
|
12837
12845
|
description: typeof e.preview === "string" ? e.preview : void 0,
|
|
12838
|
-
tier: typeof e.tier === "number" ? e.tier : void 0
|
|
12846
|
+
tier: typeof e.tier === "number" ? e.tier : void 0,
|
|
12847
|
+
// Phase 4 (DEC-1141): thread provenance fields to buildOperatingProtocol.
|
|
12848
|
+
provenance: e.provenance,
|
|
12849
|
+
anchoredBy: typeof e.anchoredBy === "string" ? e.anchoredBy : void 0
|
|
12839
12850
|
});
|
|
12840
12851
|
const gov = orientView.governance ?? { principles: [], standards: [], businessRules: [] };
|
|
12841
12852
|
lines.push(...buildOperatingProtocol({
|
|
@@ -12944,7 +12955,9 @@ function registerOrientTool(server) {
|
|
|
12944
12955
|
const reviewOverdue = e.reviewAt && new Date(e.reviewAt).getTime() < Date.now();
|
|
12945
12956
|
const overduePart = reviewOverdue ? " [review overdue]" : "";
|
|
12946
12957
|
const originPart = e.origin ? ` (origin: ${e.origin})` : "";
|
|
12947
|
-
|
|
12958
|
+
const mark = provenanceMark(e.provenance);
|
|
12959
|
+
const anchorSuffix = e.anchoredBy ? ` (${e.anchoredBy})` : "";
|
|
12960
|
+
return `- ${mark}\`${e.entryId ?? e._id}\` [${type} \xB7 ${stratum}] ${e.name}${anchorSuffix}${originPart}${confidencePart}${overduePart}`;
|
|
12948
12961
|
};
|
|
12949
12962
|
const fullCoherence = buildCoherenceSection();
|
|
12950
12963
|
if (fullCoherence) {
|
|
@@ -13152,7 +13165,10 @@ function registerOrientTool(server) {
|
|
|
13152
13165
|
entryId: e.entryId,
|
|
13153
13166
|
name: e.name,
|
|
13154
13167
|
description: typeof e.preview === "string" ? e.preview : void 0,
|
|
13155
|
-
tier: typeof e.tier === "number" ? e.tier : void 0
|
|
13168
|
+
tier: typeof e.tier === "number" ? e.tier : void 0,
|
|
13169
|
+
// Phase 4 (DEC-1141): thread provenance fields to buildOperatingProtocol.
|
|
13170
|
+
provenance: e.provenance,
|
|
13171
|
+
anchoredBy: typeof e.anchoredBy === "string" ? e.anchoredBy : void 0
|
|
13156
13172
|
});
|
|
13157
13173
|
const gov = orientView.governance ?? { principles: [], standards: [], businessRules: [] };
|
|
13158
13174
|
lines.push(...buildOperatingProtocol({
|
|
@@ -15188,4 +15204,4 @@ export {
|
|
|
15188
15204
|
createProductBrainServer,
|
|
15189
15205
|
initFeatureFlags
|
|
15190
15206
|
};
|
|
15191
|
-
//# sourceMappingURL=chunk-
|
|
15207
|
+
//# sourceMappingURL=chunk-ZPK5CSCQ.js.map
|