@productbrain/mcp 0.0.1-beta.8546 → 0.0.1-beta.8560
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.
|
@@ -1441,6 +1441,9 @@ var captureSinglePreviewOutputSchema = z3.object({
|
|
|
1441
1441
|
// src/lib/readinessNotices.ts
|
|
1442
1442
|
var READINESS_PROVISIONAL_LINE = "Readiness is provisional: its sample omitted accepted entries. Counts are lower bounds, apparent gaps may already be covered.";
|
|
1443
1443
|
|
|
1444
|
+
// src/lib/bodyCap.ts
|
|
1445
|
+
var ENTRY_BODY_MAX_CHARS = 15e4;
|
|
1446
|
+
|
|
1444
1447
|
// src/tools/smart-capture.ts
|
|
1445
1448
|
var GENERIC_PROFILE = {
|
|
1446
1449
|
governedDraft: false,
|
|
@@ -1837,12 +1840,12 @@ var captureCompoundSchema = z4.object({
|
|
|
1837
1840
|
action: z4.enum(CAPTURE_ACTIONS).optional().default("capture").describe("Create a single knowledge entry."),
|
|
1838
1841
|
collection: z4.string().max(200).optional().describe("Collection slug, e.g. 'tensions', 'business-rules', 'glossary', 'decisions'. Optional \u2014 classifier auto-routes when omitted."),
|
|
1839
1842
|
name: z4.string().max(500).optional().describe("Display name \u2014 required."),
|
|
1840
|
-
description: z4.string().max(
|
|
1843
|
+
description: z4.string().max(ENTRY_BODY_MAX_CHARS).optional().describe("Full context \u2014 required."),
|
|
1841
1844
|
context: z4.string().max(5e3).optional().describe("Optional additional context."),
|
|
1842
1845
|
entryId: entryIdSchema,
|
|
1843
1846
|
canonicalKey: z4.string().max(200).optional().describe("Semantic type (e.g. 'decision', 'tension', 'vision'). Auto-assigned from collection if omitted."),
|
|
1844
|
-
data: z4.record(z4.unknown()).optional().describe("Explicit field values
|
|
1845
|
-
why: z4.string().max(
|
|
1847
|
+
data: z4.record(z4.unknown()).optional().describe("Explicit field values; user-provided wins over inferred."),
|
|
1848
|
+
why: z4.string().max(ENTRY_BODY_MAX_CHARS).optional().describe("Why this entry exists."),
|
|
1846
1849
|
links: z4.array(z4.object({
|
|
1847
1850
|
to: z4.string().max(200).describe("Target entry ID (e.g. '<PREFIX>-<n>')"),
|
|
1848
1851
|
type: z4.string().max(200).describe("Relation type (e.g. 'governs', 'related_to', 'informs')")
|
|
@@ -7503,7 +7506,6 @@ function formatWhatNeedsAttentionLines(wna) {
|
|
|
7503
7506
|
for (const b of wna.overdueOutcomeBlockers ?? []) {
|
|
7504
7507
|
const subject = b.betId ? `\`${b.betId}\` \u2192 \`${b.krId}\`` : `\`${b.krId}\``;
|
|
7505
7508
|
if (b.reason === "ready-to-close") lines.push(`- ${subject} \u2014 readings say **${b.readyToClose}**. ${b.instruction ?? "Surface this to the founder; do not write the status yourself."}`);
|
|
7506
|
-
else if (b.reason === "scheduled-date-passed" && b.scheduledVerificationDate) lines.push(`- ${subject} (${b.daysOverdue}d past its scheduled verification date \u2014 ${b.scheduledVerificationDate})`);
|
|
7507
7509
|
else lines.push(`- ${subject} (${b.daysOverdue}d overdue for a reading)`);
|
|
7508
7510
|
}
|
|
7509
7511
|
lines.push("");
|
|
@@ -9914,7 +9916,7 @@ var workflowsSchema = z20.object({
|
|
|
9914
9916
|
isFinal: z20.boolean().optional().describe("If true, finalize an existing durable workflow run from its terminal round and create the summary chain entry."),
|
|
9915
9917
|
restart: z20.boolean().optional().describe("If true, start a new durable run from the workflow's first round in the current session."),
|
|
9916
9918
|
summaryName: z20.string().max(500).optional().describe("Optional name for final chain entry. If omitted, the workflow summary template is used."),
|
|
9917
|
-
summaryDescription: z20.string().max(
|
|
9919
|
+
summaryDescription: z20.string().max(ENTRY_BODY_MAX_CHARS).optional().describe("Optional override for the final chain entry description. Defaults to the final round output text."),
|
|
9918
9920
|
summaryEntryId: z20.string().max(200).optional().describe("Link an existing entry as the run's summary instead of creating one. Used by facilitated workflows (e.g. shape) where the primary record is created by the specialized tool."),
|
|
9919
9921
|
// WP-513: team+role to create the finalize summary AS OWNER of (rung 2 only).
|
|
9920
9922
|
ownerTeamEntryId: z20.string().max(200).optional().describe("For 'checkpoint' (isFinal): owning team (rung-2)."),
|
|
@@ -9935,7 +9937,7 @@ var workflowsCheckpointVariant = z20.object({
|
|
|
9935
9937
|
isFinal: z20.boolean().optional(),
|
|
9936
9938
|
restart: z20.boolean().optional(),
|
|
9937
9939
|
summaryName: z20.string().max(500).optional(),
|
|
9938
|
-
summaryDescription: z20.string().max(
|
|
9940
|
+
summaryDescription: z20.string().max(ENTRY_BODY_MAX_CHARS).optional(),
|
|
9939
9941
|
summaryEntryId: z20.string().max(200).optional(),
|
|
9940
9942
|
runId: z20.string().max(200).optional(),
|
|
9941
9943
|
ownerTeamEntryId: z20.string().max(200).optional(),
|
|
@@ -14525,4 +14527,4 @@ export {
|
|
|
14525
14527
|
createProductBrainServer,
|
|
14526
14528
|
initFeatureFlags
|
|
14527
14529
|
};
|
|
14528
|
-
//# sourceMappingURL=chunk-
|
|
14530
|
+
//# sourceMappingURL=chunk-SOVY6GZS.js.map
|