@productbrain/mcp 0.0.1-beta.2128 → 0.0.1-beta.2131

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.
@@ -2954,9 +2954,11 @@ var updateEntrySchema = z3.object({
2954
2954
  name: z3.string().optional().describe("New display name"),
2955
2955
  status: z3.union([
2956
2956
  z3.enum(["draft", "active", "deprecated", "archived"]),
2957
+ // BET-68 legacy shim: frozen historical workflow values still pass through
2958
+ // `status` (auto-routed with a warning) until the ~2026-09-03 sunset.
2957
2959
  z3.enum(WORKFLOW_STATUS_VALUES)
2958
- ]).optional().describe("Lifecycle status: draft | active | deprecated | archived. **Workflow values (open, pending, decided\u2026) are deprecated here \u2014 use `workflowStatus` instead. Passing a workflow value as `status` will be auto-routed with a warning until 2026-09-03, then hard-errored.**"),
2959
- workflowStatus: z3.enum(WORKFLOW_STATUS_VALUES).optional().describe("Collection workflow state. Each collection restricts which values are valid (e.g. bets: 'shaped' | 'building' | 'shipped' | 'dropped'; assumptions: 'untested' | 'testing' | 'validated' | 'invalidated'; decisions: 'pending' | 'decided'; tensions: 'open' | 'processing' | 'decided' | 'closed'). The backend will reject values invalid for the target collection."),
2960
+ ]).optional().describe("Lifecycle status: draft | active | deprecated | archived. **Workflow values are deprecated here \u2014 use `workflowStatus` instead. Passing a workflow value as `status` will be auto-routed with a warning until 2026-09-03, then hard-errored.**"),
2961
+ workflowStatus: z3.string().optional().describe("Collection workflow state. Valid values are collection-specific and server-owned \u2014 discover them via `collections action=describe` for the target collection. The server rejects invalid values and returns the valid set in the error."),
2960
2962
  data: z3.record(z3.unknown()).optional().describe("Fields to update (merged with existing data)"),
2961
2963
  order: z3.number().optional().describe("New sort order"),
2962
2964
  canonicalKey: z3.string().optional().describe("Semantic type (e.g. 'decision', 'tension'). Only changeable on draft/uncommitted entries."),
@@ -5762,6 +5764,15 @@ ${col.usageGuidance}`);
5762
5764
 
5763
5765
  ${col.purpose}`);
5764
5766
  }
5767
+ if (col.validWorkflowStatuses && col.validWorkflowStatuses.length > 0) {
5768
+ sections.push(
5769
+ `
5770
+ ## Workflow Statuses
5771
+
5772
+ Valid \`workflowStatus\` values for entries in this collection:
5773
+ ${col.validWorkflowStatuses.map((s) => `- ${s}`).join("\n")}`
5774
+ );
5775
+ }
5765
5776
  if (col.fields.length > 0) {
5766
5777
  const fieldDocs = col.fields.map((f) => {
5767
5778
  const parts = [];
@@ -5809,6 +5820,8 @@ ${refList}`);
5809
5820
  name: col.name,
5810
5821
  description: col.description,
5811
5822
  usageGuidance: col.usageGuidance ?? null,
5823
+ // WP-480 S2: null = unconstrained by design (STD-34), not "unknown".
5824
+ validWorkflowStatuses: col.validWorkflowStatuses && col.validWorkflowStatuses.length > 0 ? col.validWorkflowStatuses : null,
5812
5825
  fieldCount: col.fields.length,
5813
5826
  fields: col.fields.map((f) => ({
5814
5827
  key: f.key,
@@ -14699,4 +14712,4 @@ export {
14699
14712
  createProductBrainServer,
14700
14713
  initFeatureFlags
14701
14714
  };
14702
- //# sourceMappingURL=chunk-3CONR5XB.js.map
14715
+ //# sourceMappingURL=chunk-NFU745LM.js.map