@productbrain/mcp 0.0.1-beta.9216 → 0.0.1-beta.9224
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.
|
@@ -5745,7 +5745,6 @@ var collectionsSchema = z17.object({
|
|
|
5745
5745
|
classificationCheck: z17.string().max(500).optional().describe("LLM decision-tree check for this collection (3\u2013500 chars). Guides the classifier in routing entries here."),
|
|
5746
5746
|
classificationPriority: z17.number().optional().describe("Classifier priority (1\u20139, lower = higher priority). Used with classificationCheck to order the decision tree."),
|
|
5747
5747
|
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."),
|
|
5748
|
-
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."),
|
|
5749
5748
|
statusList: z17.array(statusListEntrySchema).max(50).optional().describe("Ordered status vocabulary: {label, category, archiveDefault?}[]. For update: always refused \u2014 the status words come from the platform catalog."),
|
|
5750
5749
|
// For label-*
|
|
5751
5750
|
color: z17.string().max(50).optional().describe("For label-create/label-update: hex color, e.g. '#ef4444'."),
|
|
@@ -5774,7 +5773,6 @@ var collectionsUpdateVariant = z17.object({
|
|
|
5774
5773
|
classificationCheck: z17.string().max(500).optional(),
|
|
5775
5774
|
classificationPriority: z17.number().optional(),
|
|
5776
5775
|
qualityCriteria: z17.array(qualityCriterionSchema).optional(),
|
|
5777
|
-
usageGuidance: z17.string().max(2e4).optional(),
|
|
5778
5776
|
statusList: z17.array(statusListEntrySchema).optional()
|
|
5779
5777
|
});
|
|
5780
5778
|
var collectionsAuditVariant = z17.object({ action: z17.literal("audit") });
|
|
@@ -5818,7 +5816,7 @@ var collectionsActionUnion = z17.discriminatedUnion("action", [
|
|
|
5818
5816
|
var COLLECTIONS_ACTION_SPECS = {
|
|
5819
5817
|
list: { params: [], description: "Browse all collections; no params." },
|
|
5820
5818
|
describe: { params: ["slug"], description: "slug is required." },
|
|
5821
|
-
update: { params: ["slug", "name", "description", "purpose", "icon", "navGroup", "fields", "axis", "stageLabelMap", "defaultCanonicalKey", "defaultWorkflowStatus", "validWorkflowStatuses", "classificationCheck", "classificationPriority", "qualityCriteria", "
|
|
5819
|
+
update: { params: ["slug", "name", "description", "purpose", "icon", "navGroup", "fields", "axis", "stageLabelMap", "defaultCanonicalKey", "defaultWorkflowStatus", "validWorkflowStatuses", "classificationCheck", "classificationPriority", "qualityCriteria", "statusList"], description: "slug is required; at least one other field must be provided. axis/stageLabelMap are only settable on a non-system-stratum collection (the repair path for a legacy custom collection missing its axis declaration)." },
|
|
5822
5820
|
audit: { params: [], description: "Health report for all collections; no params." },
|
|
5823
5821
|
export: { params: [], description: "Full system_collection_definitions export; no params. Admin only." },
|
|
5824
5822
|
"label-list": { params: [], description: "List all labels; no params." },
|
|
@@ -5833,9 +5831,9 @@ function registerCollectionsTools(server) {
|
|
|
5833
5831
|
list: () => handleList2(),
|
|
5834
5832
|
describe: (data) => handleDescribe(data.slug),
|
|
5835
5833
|
update: (data) => {
|
|
5836
|
-
const hasChanges = data.name || data.description || data.purpose || data.icon || data.navGroup || data.fields || data.axis !== void 0 || data.stageLabelMap !== void 0 || data.defaultCanonicalKey !== void 0 || data.defaultWorkflowStatus !== void 0 || data.validWorkflowStatuses !== void 0 || data.classificationCheck !== void 0 || data.classificationPriority !== void 0 || data.qualityCriteria !== void 0 || data.
|
|
5834
|
+
const hasChanges = data.name || data.description || data.purpose || data.icon || data.navGroup || data.fields || data.axis !== void 0 || data.stageLabelMap !== void 0 || data.defaultCanonicalKey !== void 0 || data.defaultWorkflowStatus !== void 0 || data.validWorkflowStatuses !== void 0 || data.classificationCheck !== void 0 || data.classificationPriority !== void 0 || data.qualityCriteria !== void 0 || data.statusList;
|
|
5837
5835
|
if (!hasChanges) {
|
|
5838
|
-
return Promise.resolve(validationResult("Provide at least one field to update (name, description, purpose, icon, navGroup, fields, axis, stageLabelMap, defaultCanonicalKey, defaultWorkflowStatus, validWorkflowStatuses, classificationCheck, classificationPriority, qualityCriteria,
|
|
5836
|
+
return Promise.resolve(validationResult("Provide at least one field to update (name, description, purpose, icon, navGroup, fields, axis, stageLabelMap, defaultCanonicalKey, defaultWorkflowStatus, validWorkflowStatuses, classificationCheck, classificationPriority, qualityCriteria, or statusList)."));
|
|
5839
5837
|
}
|
|
5840
5838
|
return handleUpdate(
|
|
5841
5839
|
data.slug,
|
|
@@ -5845,7 +5843,7 @@ function registerCollectionsTools(server) {
|
|
|
5845
5843
|
data.icon,
|
|
5846
5844
|
data.navGroup,
|
|
5847
5845
|
data.fields,
|
|
5848
|
-
{ axis: data.axis, stageLabelMap: data.stageLabelMap, defaultCanonicalKey: data.defaultCanonicalKey, defaultWorkflowStatus: data.defaultWorkflowStatus, validWorkflowStatuses: data.validWorkflowStatuses, classificationCheck: data.classificationCheck, classificationPriority: data.classificationPriority, qualityCriteria: data.qualityCriteria,
|
|
5846
|
+
{ axis: data.axis, stageLabelMap: data.stageLabelMap, defaultCanonicalKey: data.defaultCanonicalKey, defaultWorkflowStatus: data.defaultWorkflowStatus, validWorkflowStatuses: data.validWorkflowStatuses, classificationCheck: data.classificationCheck, classificationPriority: data.classificationPriority, qualityCriteria: data.qualityCriteria, statusList: data.statusList }
|
|
5849
5847
|
);
|
|
5850
5848
|
},
|
|
5851
5849
|
audit: () => handleAudit(),
|
|
@@ -6045,7 +6043,7 @@ async function handleUpdate(slug, name, description, purpose, icon, navGroup, fi
|
|
|
6045
6043
|
});
|
|
6046
6044
|
invalidateCollectionCacheForScope();
|
|
6047
6045
|
invalidateProfileCacheForScope();
|
|
6048
|
-
const changes = [name && "name", description && "description", purpose && "purpose", icon && "icon", navGroup && "navGroup", fields && "fields", meta.axis !== void 0 && "axis", meta.stageLabelMap !== void 0 && "stageLabelMap", meta.defaultCanonicalKey !== void 0 && "defaultCanonicalKey", meta.defaultWorkflowStatus !== void 0 && "defaultWorkflowStatus", meta.validWorkflowStatuses !== void 0 && "validWorkflowStatuses", meta.classificationCheck !== void 0 && "classificationCheck", meta.classificationPriority !== void 0 && "classificationPriority", meta.qualityCriteria !== void 0 && "qualityCriteria", meta.
|
|
6046
|
+
const changes = [name && "name", description && "description", purpose && "purpose", icon && "icon", navGroup && "navGroup", fields && "fields", meta.axis !== void 0 && "axis", meta.stageLabelMap !== void 0 && "stageLabelMap", meta.defaultCanonicalKey !== void 0 && "defaultCanonicalKey", meta.defaultWorkflowStatus !== void 0 && "defaultWorkflowStatus", meta.validWorkflowStatuses !== void 0 && "validWorkflowStatuses", meta.classificationCheck !== void 0 && "classificationCheck", meta.classificationPriority !== void 0 && "classificationPriority", meta.qualityCriteria !== void 0 && "qualityCriteria", meta.statusList !== void 0 && "statusList"].filter(Boolean).join(", ");
|
|
6049
6047
|
return {
|
|
6050
6048
|
content: [{
|
|
6051
6049
|
type: "text",
|
|
@@ -13743,4 +13741,4 @@ export {
|
|
|
13743
13741
|
createProductBrainServer,
|
|
13744
13742
|
initFeatureFlags
|
|
13745
13743
|
};
|
|
13746
|
-
//# sourceMappingURL=chunk-
|
|
13744
|
+
//# sourceMappingURL=chunk-I3JHAR5E.js.map
|