@productbrain/mcp 0.0.1-beta.13759 → 0.0.1-beta.13770
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-N3KVQBX6.js → chunk-6OKDC2OS.js} +13 -7
- package/dist/chunk-6OKDC2OS.js.map +1 -0
- package/dist/{chunk-HALHXZHK.js → chunk-GZ5DC3GX.js} +32 -11
- package/dist/chunk-GZ5DC3GX.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,11 @@ 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 ENTRY_BODY_CAPS = {
|
|
394
|
+
"key-results": { word: "key result", max: 4e3 }
|
|
395
|
+
};
|
|
396
|
+
var KEY_RESULT_BODY_HELP = `For a key result, open with what counts toward it; at most ${ENTRY_BODY_CAPS["key-results"].max} characters.`;
|
|
397
|
+
var ENTRY_BODY_HELP = `The detail, in Markdown. ${KEY_RESULT_BODY_HELP}`;
|
|
394
398
|
var SOURCE_EXCERPT_MAX_CHARS = 4e3;
|
|
395
399
|
var LABEL_DESCRIPTION_MAX_CHARS = 2e3;
|
|
396
400
|
var RELATION_BATCH_MAX = 25;
|
|
@@ -7236,7 +7240,7 @@ async function _handleOrient({ mode: mode2 = "full", tier, task, startupSignals,
|
|
|
7236
7240
|
lines.push("");
|
|
7237
7241
|
}
|
|
7238
7242
|
if (mode2 === "brief") {
|
|
7239
|
-
|
|
7243
|
+
for (const line of buildOrientBriefingLines(orientView)) lines.push(line);
|
|
7240
7244
|
if (orientView?.strategicContext) {
|
|
7241
7245
|
const sc = orientView.strategicContext;
|
|
7242
7246
|
if (sc.playingFieldCount != null && sc.playingFieldCount > 0) {
|
|
@@ -7387,7 +7391,8 @@ async function _handleOrient({ mode: mode2 = "full", tier, task, startupSignals,
|
|
|
7387
7391
|
}
|
|
7388
7392
|
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
7393
|
lines.push("");
|
|
7390
|
-
|
|
7394
|
+
for (const line of buildOrientBriefingLines(orientView)) lines.push(line);
|
|
7395
|
+
lines.push("");
|
|
7391
7396
|
let fullCoherenceSnapshot;
|
|
7392
7397
|
if (readiness) {
|
|
7393
7398
|
if (!sampleTruncated && readiness.gaps.length > 0) {
|
|
@@ -10260,7 +10265,8 @@ async function handleStart2(data, clientName) {
|
|
|
10260
10265
|
const noticeLines = formatNoticeLines(result2.notices?.filter((n) => n !== questionNotice));
|
|
10261
10266
|
if (noticeLines.length > 0) lines.push("", "Notices:", ...noticeLines);
|
|
10262
10267
|
const openQuestions = (questionNotice?.payload?.questions ?? []).map((q) => ({ entryId: q.sourcePointer, title: q.name, ageDays: q.ageDays }));
|
|
10263
|
-
lines.push(""
|
|
10268
|
+
lines.push("");
|
|
10269
|
+
for (const line of formatBriefingLines({
|
|
10264
10270
|
workspaceName: result2.workspaceName,
|
|
10265
10271
|
facts: result2.briefing,
|
|
10266
10272
|
ruleLists: result2.ruleLists,
|
|
@@ -10268,7 +10274,7 @@ async function handleStart2(data, clientName) {
|
|
|
10268
10274
|
openQuestionsTruncated: questionNotice?.payload?.truncated === true,
|
|
10269
10275
|
surface: "mcp",
|
|
10270
10276
|
sessionStart: true
|
|
10271
|
-
}));
|
|
10277
|
+
})) lines.push(line);
|
|
10272
10278
|
if (!methodServed) lines.push("", START_PREFLIGHT_NEXT);
|
|
10273
10279
|
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
10280
|
return {
|
|
@@ -12088,4 +12094,4 @@ export {
|
|
|
12088
12094
|
SERVER_VERSION,
|
|
12089
12095
|
createProductBrainServer
|
|
12090
12096
|
};
|
|
12091
|
-
//# sourceMappingURL=chunk-
|
|
12097
|
+
//# sourceMappingURL=chunk-6OKDC2OS.js.map
|