@productbrain/mcp 0.0.1-beta.14662 → 0.0.1-beta.14677
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-2HWJSTO6.js → chunk-66GISMQZ.js} +14 -5
- package/dist/chunk-66GISMQZ.js.map +1 -0
- package/dist/{chunk-ILCW5ZWI.js → chunk-VUVVJBNK.js} +2 -1
- package/dist/cli/index.js +1 -1
- package/dist/http.js +2 -2
- package/dist/index.js +2 -2
- package/dist/{setup-3S3T7NQ6.js → setup-3G6CEW2Y.js} +2 -2
- package/package.json +1 -1
- package/dist/chunk-2HWJSTO6.js.map +0 -1
- /package/dist/{chunk-ILCW5ZWI.js.map → chunk-VUVVJBNK.js.map} +0 -0
- /package/dist/{setup-3S3T7NQ6.js.map → setup-3G6CEW2Y.js.map} +0 -0
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import {
|
|
2
|
+
KPI_KIND,
|
|
2
3
|
KernelCallError,
|
|
3
4
|
ORGANISATION_VALIDATION_REFUSALS,
|
|
4
5
|
PASS_SESSION_ID,
|
|
@@ -50,7 +51,7 @@ import {
|
|
|
50
51
|
startAgentSession,
|
|
51
52
|
startTimingLine,
|
|
52
53
|
withAcceptPrompt
|
|
53
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-VUVVJBNK.js";
|
|
54
55
|
|
|
55
56
|
// src/server.ts
|
|
56
57
|
import { McpServer as McpServer2 } from "@modelcontextprotocol/server";
|
|
@@ -298,6 +299,13 @@ var LIST_COUNTS_OF_ROWS_READ = "The counts here are of the rows read.";
|
|
|
298
299
|
|
|
299
300
|
// src/lib/checklist.ts
|
|
300
301
|
var FIRST_SPINE_SUBJECT = "work_package";
|
|
302
|
+
var packageNumber = (label2 = kindWord) => `${label2(SPINE_RUNG_SEQUENCE[0].targetKey)} or ${label2(KPI_KIND)}`;
|
|
303
|
+
var STRANDED_WORK_WORDS = {
|
|
304
|
+
number: packageNumber(),
|
|
305
|
+
heading: (n) => `Work packages with no live ${packageNumber()} (${n}):`,
|
|
306
|
+
onlyPast: (ids) => `validates only past ${kindWord(SPINE_RUNG_SEQUENCE[0].targetKey)}s or ${kindWord(KPI_KIND)}s (${ids.join(", ")})`,
|
|
307
|
+
none: `validates no ${packageNumber()}`
|
|
308
|
+
};
|
|
301
309
|
var spineSubject = (kind, label2 = kindWord) => {
|
|
302
310
|
const words = withArticle(label2(kind));
|
|
303
311
|
return words[0].toUpperCase() + words.slice(1);
|
|
@@ -306,14 +314,15 @@ function rungLine(rung, label2 = kindWord) {
|
|
|
306
314
|
const index = SPINE_RUNG_SEQUENCE.findIndex((spec) => spec.targetKey === rung);
|
|
307
315
|
if (index < 0) return null;
|
|
308
316
|
const { relationType: relationType2, targetKey } = SPINE_RUNG_SEQUENCE[index];
|
|
309
|
-
const parent = `an accepted ${label2(targetKey)}`;
|
|
317
|
+
const parent = `an accepted ${index === 0 ? packageNumber(label2) : label2(targetKey)}`;
|
|
310
318
|
const subject = spineSubject(index === 0 ? FIRST_SPINE_SUBJECT : SPINE_RUNG_SEQUENCE[index - 1].targetKey, label2);
|
|
311
319
|
return relationType2 === "part_of" ? `${subject} hangs on ${parent} with ${relationType2}.` : `${subject} ${relationType2} ${parent}.`;
|
|
312
320
|
}
|
|
313
321
|
var SPINE_RUNG_LINES = SPINE_RUNG_SEQUENCE.map((spec) => rungLine(spec.targetKey));
|
|
314
|
-
var DIRECTION_LINE = `Direction runs ${[...SPINE_RUNG_SEQUENCE].reverse().map((rung) => kindWord(rung.targetKey)).join(", ")}: each ${SPINE_RUNG_SEQUENCE[1].relationType} the one above and accepted after it; a work package is the plan under a
|
|
322
|
+
var DIRECTION_LINE = `Direction runs ${[...SPINE_RUNG_SEQUENCE].reverse().map((rung) => kindWord(rung.targetKey)).join(", ")}: each ${SPINE_RUNG_SEQUENCE[1].relationType} the one above and accepted after it; a work package is the plan under a ${kindWord(SPINE_RUNG_SEQUENCE[0].targetKey)} or a ${kindWord(KPI_KIND)}.`;
|
|
315
323
|
var SPINE_LINKS_LINES = [
|
|
316
|
-
`${spineSubject(FIRST_SPINE_SUBJECT)} ${SPINE_RUNG_SEQUENCE[0].relationType} ${withArticle(kindWord(SPINE_RUNG_SEQUENCE[0].targetKey))}
|
|
324
|
+
`${spineSubject(FIRST_SPINE_SUBJECT)} ${SPINE_RUNG_SEQUENCE[0].relationType} ${withArticle(kindWord(SPINE_RUNG_SEQUENCE[0].targetKey))} or ${withArticle(kindWord(KPI_KIND))}.`,
|
|
325
|
+
"An informs link joins no levels.",
|
|
317
326
|
"Before accepting an entry, preflight it: it names what blocks."
|
|
318
327
|
];
|
|
319
328
|
var LINK_REFUSAL_WORDS = {
|
|
@@ -12454,4 +12463,4 @@ export {
|
|
|
12454
12463
|
SERVER_VERSION,
|
|
12455
12464
|
createProductBrainServer
|
|
12456
12465
|
};
|
|
12457
|
-
//# sourceMappingURL=chunk-
|
|
12466
|
+
//# sourceMappingURL=chunk-66GISMQZ.js.map
|