@productbrain/mcp 0.0.1-beta.9022 → 0.0.1-beta.9030
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.
|
@@ -6958,6 +6958,16 @@ function formatActingRoleLines(role) {
|
|
|
6958
6958
|
else lines.push(emptyRoleBodyHint(role.entryId ? sanitizeRuleListField(role.entryId) : "<ROL-id>"));
|
|
6959
6959
|
return lines;
|
|
6960
6960
|
}
|
|
6961
|
+
var GOVERNANCE_HERE_LINES = [
|
|
6962
|
+
"How governance works here:",
|
|
6963
|
+
[
|
|
6964
|
+
"Governance here is roles, rules, and the entries each role owns.",
|
|
6965
|
+
"Every decision, tension and question belongs to a role; the person seated in that role decides and accepts it, and an empty role falls to its Team Lead.",
|
|
6966
|
+
"Rules are the team's standing agreements, and every agent reads them when a session starts.",
|
|
6967
|
+
"When something is not yours, draft it for the owning role, ask that role a question, or link a tension to say you disagree.",
|
|
6968
|
+
"There is no voting, proposal or domain setup: write your roles and rules, and decide by owning."
|
|
6969
|
+
].join(" ")
|
|
6970
|
+
];
|
|
6961
6971
|
var BRIEFING_PULL_COMMANDS = {
|
|
6962
6972
|
cli: 'pb orient --task "<what you are doing>" \xB7 pb get <ID> \xB7 pb search <query>',
|
|
6963
6973
|
mcp: 'orient task="<what you are doing>" \xB7 entries action=get entryId=<ID> \xB7 entries action=search query=<query>'
|
|
@@ -7003,6 +7013,7 @@ function formatBriefingLines(view) {
|
|
|
7003
7013
|
if (f.spineUnavailable) lines.push("Objective: unavailable \u2014 the objectives read failed; orient again to retry.");
|
|
7004
7014
|
if (f.truncated) lines.push("(A bounded read hit its cap: a fact above may be missing or not the current one.)");
|
|
7005
7015
|
if (f.role) lines.push("", ...formatActingRoleLines(f.role));
|
|
7016
|
+
if (view.sessionStart) lines.push("", ...GOVERNANCE_HERE_LINES);
|
|
7006
7017
|
const ruleLines = formatRuleListsLines(view.ruleLists);
|
|
7007
7018
|
const rl = view.ruleLists;
|
|
7008
7019
|
const ruleRows = rl ? rl.everyone.rows.length + (rl.team?.rows.length ?? 0) + rl.role.rows.length : 0;
|
|
@@ -11118,7 +11129,8 @@ async function handleStart2(data) {
|
|
|
11118
11129
|
ruleLists: result2.ruleLists,
|
|
11119
11130
|
openQuestions,
|
|
11120
11131
|
openQuestionsTruncated: questionNotice?.payload?.truncated === true,
|
|
11121
|
-
surface: "mcp"
|
|
11132
|
+
surface: "mcp",
|
|
11133
|
+
sessionStart: true
|
|
11122
11134
|
}));
|
|
11123
11135
|
const summary = `Session ${result2.sessionId} active. Workspace ${result2.workspaceName}. Pass sessionId="${result2.sessionId}" on every write. Orient with a task first; workflow checkpoints and organisation-structure writes still require it.`;
|
|
11124
11136
|
return {
|
|
@@ -13612,4 +13624,4 @@ export {
|
|
|
13612
13624
|
createProductBrainServer,
|
|
13613
13625
|
initFeatureFlags
|
|
13614
13626
|
};
|
|
13615
|
-
//# sourceMappingURL=chunk-
|
|
13627
|
+
//# sourceMappingURL=chunk-STYLOG6K.js.map
|