@productbrain/mcp 0.0.1-beta.13752 → 0.0.1-beta.13764
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-HALHXZHK.js → chunk-GZ5DC3GX.js} +32 -11
- package/dist/chunk-GZ5DC3GX.js.map +1 -0
- package/dist/{chunk-N3KVQBX6.js → chunk-RRBZXJM4.js} +10 -7
- package/dist/chunk-RRBZXJM4.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-QQWQLYAI.js → setup-K2ZQAM66.js} +2 -2
- package/package.json +1 -1
- package/dist/chunk-HALHXZHK.js.map +0 -1
- package/dist/chunk-N3KVQBX6.js.map +0 -1
- /package/dist/{setup-QQWQLYAI.js.map → setup-K2ZQAM66.js.map} +0 -0
|
@@ -45,7 +45,7 @@ import {
|
|
|
45
45
|
startAgentSession,
|
|
46
46
|
startTimingLine,
|
|
47
47
|
withAcceptPrompt
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-GZ5DC3GX.js";
|
|
49
49
|
|
|
50
50
|
// src/server.ts
|
|
51
51
|
import { McpServer as McpServer2 } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
@@ -390,7 +390,8 @@ function nameLimitsSentence() {
|
|
|
390
390
|
return `At most ${[...clauses, `${ENTRY_NAME_CAPS.other} for any other kind`].join(", ")}.`;
|
|
391
391
|
}
|
|
392
392
|
var ENTRY_NAME_HELP = `A short name. ${nameLimitsSentence()}`;
|
|
393
|
-
var
|
|
393
|
+
var KEY_RESULT_BODY_HELP = "For a key result, open with what counts toward it.";
|
|
394
|
+
var ENTRY_BODY_HELP = `The detail, in Markdown. ${KEY_RESULT_BODY_HELP}`;
|
|
394
395
|
var SOURCE_EXCERPT_MAX_CHARS = 4e3;
|
|
395
396
|
var LABEL_DESCRIPTION_MAX_CHARS = 2e3;
|
|
396
397
|
var RELATION_BATCH_MAX = 25;
|
|
@@ -7236,7 +7237,7 @@ async function _handleOrient({ mode: mode2 = "full", tier, task, startupSignals,
|
|
|
7236
7237
|
lines.push("");
|
|
7237
7238
|
}
|
|
7238
7239
|
if (mode2 === "brief") {
|
|
7239
|
-
|
|
7240
|
+
for (const line of buildOrientBriefingLines(orientView)) lines.push(line);
|
|
7240
7241
|
if (orientView?.strategicContext) {
|
|
7241
7242
|
const sc = orientView.strategicContext;
|
|
7242
7243
|
if (sc.playingFieldCount != null && sc.playingFieldCount > 0) {
|
|
@@ -7387,7 +7388,8 @@ async function _handleOrient({ mode: mode2 = "full", tier, task, startupSignals,
|
|
|
7387
7388
|
}
|
|
7388
7389
|
lines.push("_Need a collection that doesn't exist yet? Creating one is not available through this tool. Ask a platform admin to provision it, or enable the module ontology pack that owns it._");
|
|
7389
7390
|
lines.push("");
|
|
7390
|
-
|
|
7391
|
+
for (const line of buildOrientBriefingLines(orientView)) lines.push(line);
|
|
7392
|
+
lines.push("");
|
|
7391
7393
|
let fullCoherenceSnapshot;
|
|
7392
7394
|
if (readiness) {
|
|
7393
7395
|
if (!sampleTruncated && readiness.gaps.length > 0) {
|
|
@@ -10260,7 +10262,8 @@ async function handleStart2(data, clientName) {
|
|
|
10260
10262
|
const noticeLines = formatNoticeLines(result2.notices?.filter((n) => n !== questionNotice));
|
|
10261
10263
|
if (noticeLines.length > 0) lines.push("", "Notices:", ...noticeLines);
|
|
10262
10264
|
const openQuestions = (questionNotice?.payload?.questions ?? []).map((q) => ({ entryId: q.sourcePointer, title: q.name, ageDays: q.ageDays }));
|
|
10263
|
-
lines.push(""
|
|
10265
|
+
lines.push("");
|
|
10266
|
+
for (const line of formatBriefingLines({
|
|
10264
10267
|
workspaceName: result2.workspaceName,
|
|
10265
10268
|
facts: result2.briefing,
|
|
10266
10269
|
ruleLists: result2.ruleLists,
|
|
@@ -10268,7 +10271,7 @@ async function handleStart2(data, clientName) {
|
|
|
10268
10271
|
openQuestionsTruncated: questionNotice?.payload?.truncated === true,
|
|
10269
10272
|
surface: "mcp",
|
|
10270
10273
|
sessionStart: true
|
|
10271
|
-
}));
|
|
10274
|
+
})) lines.push(line);
|
|
10272
10275
|
if (!methodServed) lines.push("", START_PREFLIGHT_NEXT);
|
|
10273
10276
|
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.`;
|
|
10274
10277
|
return {
|
|
@@ -12088,4 +12091,4 @@ export {
|
|
|
12088
12091
|
SERVER_VERSION,
|
|
12089
12092
|
createProductBrainServer
|
|
12090
12093
|
};
|
|
12091
|
-
//# sourceMappingURL=chunk-
|
|
12094
|
+
//# sourceMappingURL=chunk-RRBZXJM4.js.map
|