@productbrain/mcp 0.0.1-beta.12026 → 0.0.1-beta.12043
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.
|
@@ -312,10 +312,10 @@ var ENTRY_NAME_MAX_CHARS = 250;
|
|
|
312
312
|
var SOURCE_EXCERPT_MAX_CHARS = 4e3;
|
|
313
313
|
var LABEL_DESCRIPTION_MAX_CHARS = 2e3;
|
|
314
314
|
var RELATION_BATCH_MAX = 25;
|
|
315
|
-
var LIST_COUNTS_OF_ROWS_READ = "The counts here are of the rows read.";
|
|
316
315
|
function listCutLine(shown) {
|
|
317
|
-
return shown > 0 ? `Only the first ${shown} entries were read
|
|
316
|
+
return shown > 0 ? `Only the first ${shown} entries were read.` : "No entries matched in the part of the list that was read.";
|
|
318
317
|
}
|
|
318
|
+
var LIST_COUNTS_OF_ROWS_READ = "The counts here are of the rows read.";
|
|
319
319
|
|
|
320
320
|
// src/lib/listEntries.ts
|
|
321
321
|
var NARROW_IN_MCP = "Narrow it with context action=list collection=<slug> or status=<word>.";
|
|
@@ -2804,8 +2804,7 @@ async function handleGet(entryId) {
|
|
|
2804
2804
|
lines.push("", `**Labels:** ${labels.map((l) => `\`${l.slug ?? l.name}\``).join(", ")}`);
|
|
2805
2805
|
}
|
|
2806
2806
|
if (Array.isArray(e.relations) && e.relations.length > 0) {
|
|
2807
|
-
lines.push("", "## Relations");
|
|
2808
|
-
lines.push(...relationLines(e.relations));
|
|
2807
|
+
lines.push("", "## Relations", ...relationLines(e.relations), ...typeof e.relationsCutLine === "string" ? [e.relationsCutLine] : []);
|
|
2809
2808
|
}
|
|
2810
2809
|
if (Array.isArray(e.history) && e.history.length > 0) {
|
|
2811
2810
|
lines.push("", "## History (last 10)", ...e.historyTruncated === true ? [`Older history left out: only the newest ${e.history.length} events were read.`] : []);
|
|
@@ -2852,6 +2851,7 @@ async function handleGet(entryId) {
|
|
|
2852
2851
|
// that commit 8f3b1664 left in the structured payload. (Codex finding, TEN-2191.)
|
|
2853
2852
|
...filteredData ? { data: filteredData } : {},
|
|
2854
2853
|
...Array.isArray(e.relations) && e.relations.length > 0 ? { relations: projectEntryRelations(e.relations) } : {},
|
|
2854
|
+
...e.relationsTruncated === true ? { relationsTruncated: true } : {},
|
|
2855
2855
|
...Array.isArray(e.labels) && e.labels.length > 0 ? { labels: e.labels.map((l) => l.slug ?? l.name ?? "") } : {}
|
|
2856
2856
|
};
|
|
2857
2857
|
return {
|
|
@@ -2912,8 +2912,7 @@ async function handleBatch(entryIds) {
|
|
|
2912
2912
|
lines.push("", `**Labels:** ${labels.map((l) => `\`${l.slug ?? l.name}\``).join(", ")}`);
|
|
2913
2913
|
}
|
|
2914
2914
|
if (Array.isArray(entry.relations) && entry.relations.length > 0) {
|
|
2915
|
-
lines.push("", "**Relations:**");
|
|
2916
|
-
lines.push(...relationLines(entry.relations));
|
|
2915
|
+
lines.push("", "**Relations:**", ...relationLines(entry.relations), ...typeof entry.relationsCutLine === "string" ? [entry.relationsCutLine] : []);
|
|
2917
2916
|
}
|
|
2918
2917
|
if (Array.isArray(entry.history) && entry.history.length > 0) {
|
|
2919
2918
|
lines.push("", "**History (last 5):**", ...entry.historyTruncated === true ? [`Older history left out: only the newest ${entry.history.length} events were read.`] : []);
|
|
@@ -2949,7 +2948,8 @@ async function handleBatch(entryIds) {
|
|
|
2949
2948
|
...entryWhy.length > 0 ? { why: entryWhy } : {},
|
|
2950
2949
|
...entry.whyQuality ? { whyQuality: String(entry.whyQuality) } : {},
|
|
2951
2950
|
...entryFilteredData ? { data: entryFilteredData } : {},
|
|
2952
|
-
...Array.isArray(entry.relations) && entry.relations.length ? { relations: projectEntryRelations(entry.relations) } : {}
|
|
2951
|
+
...Array.isArray(entry.relations) && entry.relations.length ? { relations: projectEntryRelations(entry.relations) } : {},
|
|
2952
|
+
...entry.relationsTruncated === true ? { relationsTruncated: true } : {}
|
|
2953
2953
|
};
|
|
2954
2954
|
});
|
|
2955
2955
|
const total = structuredEntries.length;
|
|
@@ -3138,6 +3138,19 @@ var ALLOWED_RELATION_TYPES_LIST = [
|
|
|
3138
3138
|
// strategy-scope anchor: a raw strategy entry belongs_to a product (DEC-1523)
|
|
3139
3139
|
];
|
|
3140
3140
|
var ALLOWED_RELATION_TYPES = new Set(ALLOWED_RELATION_TYPES_LIST);
|
|
3141
|
+
var RESTS_ON_DIRECTION = {
|
|
3142
|
+
depends_on: "from_rests_on_to",
|
|
3143
|
+
requires: "from_rests_on_to",
|
|
3144
|
+
part_of: "from_rests_on_to",
|
|
3145
|
+
implements: "from_rests_on_to",
|
|
3146
|
+
realizes: "from_rests_on_to",
|
|
3147
|
+
specializes: "from_rests_on_to",
|
|
3148
|
+
commits_to: "from_rests_on_to",
|
|
3149
|
+
governed_by: "from_rests_on_to",
|
|
3150
|
+
validates: "from_rests_on_to",
|
|
3151
|
+
governs: "to_rests_on_from"
|
|
3152
|
+
};
|
|
3153
|
+
var WHOLE_READ_RELATION_TYPES = Object.keys(RESTS_ON_DIRECTION);
|
|
3141
3154
|
|
|
3142
3155
|
// src/tools/relations.ts
|
|
3143
3156
|
var RELATIONS_ACTIONS = ["create", "batch-create", "delete"];
|
|
@@ -11849,4 +11862,4 @@ export {
|
|
|
11849
11862
|
SERVER_VERSION,
|
|
11850
11863
|
createProductBrainServer
|
|
11851
11864
|
};
|
|
11852
|
-
//# sourceMappingURL=chunk-
|
|
11865
|
+
//# sourceMappingURL=chunk-AAHLXMHS.js.map
|