@productbrain/mcp 0.0.1-beta.7878 → 0.0.1-beta.7887
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.
|
@@ -6356,7 +6356,7 @@ var COLLECTIONS_ACTIONS = [
|
|
|
6356
6356
|
"label-remove"
|
|
6357
6357
|
];
|
|
6358
6358
|
var STATUS_CATEGORIES2 = ["draft", "current", "past", "discarded"];
|
|
6359
|
-
var statusListEntrySchema = z17.object({ label: z17.string().max(200), category: z17.enum(STATUS_CATEGORIES2) });
|
|
6359
|
+
var statusListEntrySchema = z17.object({ label: z17.string().max(200), category: z17.enum(STATUS_CATEGORIES2), archiveDefault: z17.boolean().optional() });
|
|
6360
6360
|
var qualityCriterionSchema = z17.object({
|
|
6361
6361
|
field: z17.string().max(200).describe("Entry data field key this criterion applies to, e.g. 'description', 'owner'"),
|
|
6362
6362
|
// WP-480 S1: `max_length` — must mirror the Convex rule union, or the tool rejects a
|
|
@@ -6403,7 +6403,7 @@ var collectionsSchema = z17.object({
|
|
|
6403
6403
|
classificationPriority: z17.number().optional().describe("Classifier priority (1\u20139, lower = higher priority). Used with classificationCheck to order the decision tree."),
|
|
6404
6404
|
qualityCriteria: z17.array(qualityCriterionSchema).max(50).optional().describe("Per-collection accept gate rules. 'required' rule hard-blocks accepts on empty fields; 'min_length'/'pattern' rules warn. Pass an empty array to clear all criteria."),
|
|
6405
6405
|
usageGuidance: z17.string().max(2e4).optional().describe("Plain-text guidance shown to agents and users: when to use this collection, when not to, and what makes a good entry."),
|
|
6406
|
-
statusList: z17.array(statusListEntrySchema).max(50).optional().describe(
|
|
6406
|
+
statusList: z17.array(statusListEntrySchema).max(50).optional().describe("Ordered status vocabulary: {label, category, archiveDefault?}[]; draft first; one 'discarded' label; among 'past' labels exactly one sets archiveDefault: true."),
|
|
6407
6407
|
// For label-*
|
|
6408
6408
|
color: z17.string().max(50).optional().describe("For label-create/label-update: hex color, e.g. '#ef4444'."),
|
|
6409
6409
|
parentSlug: z17.string().max(200).optional().describe("For label-create: parent group slug for label hierarchy."),
|
|
@@ -7664,14 +7664,8 @@ function formatRuleListBucketLines(label, bucket, truncated) {
|
|
|
7664
7664
|
if (bucket.overCap > 0) lines.push(` (${truncated ? "at least " : ""}+${bucket.overCap} more, capped)`);
|
|
7665
7665
|
return lines;
|
|
7666
7666
|
}
|
|
7667
|
-
function
|
|
7668
|
-
|
|
7669
|
-
const lines = [
|
|
7670
|
-
...formatRuleListBucketLines("Everyone", ruleLists.everyone, ruleLists.truncated),
|
|
7671
|
-
...formatRuleListBucketLines("Team", ruleLists.team, ruleLists.truncated),
|
|
7672
|
-
...formatRuleListBucketLines("Role", ruleLists.role, ruleLists.truncated)
|
|
7673
|
-
];
|
|
7674
|
-
if (lines.length === 0 && ruleLists.unassigned === 0 && !ruleLists.truncated) return [];
|
|
7667
|
+
function formatRuleListTrailers(ruleLists) {
|
|
7668
|
+
const lines = [];
|
|
7675
7669
|
if (ruleLists.truncated) {
|
|
7676
7670
|
lines.push("(Some Current rules may be missing from these lists \u2014 the underlying read was truncated.)");
|
|
7677
7671
|
}
|
|
@@ -7681,6 +7675,16 @@ function formatRuleListsLines(ruleLists) {
|
|
|
7681
7675
|
}
|
|
7682
7676
|
return lines;
|
|
7683
7677
|
}
|
|
7678
|
+
function formatRuleListsLines(ruleLists) {
|
|
7679
|
+
if (!ruleLists) return [];
|
|
7680
|
+
const lines = [
|
|
7681
|
+
...formatRuleListBucketLines("Everyone", ruleLists.everyone, ruleLists.truncated),
|
|
7682
|
+
...formatRuleListBucketLines("Team", ruleLists.team, ruleLists.truncated),
|
|
7683
|
+
...formatRuleListBucketLines("Role", ruleLists.role, ruleLists.truncated)
|
|
7684
|
+
];
|
|
7685
|
+
if (lines.length === 0 && ruleLists.unassigned === 0 && !ruleLists.truncated) return [];
|
|
7686
|
+
return [...lines, ...formatRuleListTrailers(ruleLists)];
|
|
7687
|
+
}
|
|
7684
7688
|
|
|
7685
7689
|
// src/tools/orient-rituals.ts
|
|
7686
7690
|
var RULE_LISTS_EVERYONE_ONLY_LABEL = "Rules (everyone list only; run `orient mode=full` for your team and role lists):";
|
|
@@ -14925,4 +14929,4 @@ export {
|
|
|
14925
14929
|
createProductBrainServer,
|
|
14926
14930
|
initFeatureFlags
|
|
14927
14931
|
};
|
|
14928
|
-
//# sourceMappingURL=chunk-
|
|
14932
|
+
//# sourceMappingURL=chunk-CZJ2WYBV.js.map
|