@productbrain/mcp 0.0.1-beta.9070 → 0.0.1-beta.9080

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.
@@ -8439,6 +8439,7 @@ function compileWorkflowDefinition(descriptor) {
8439
8439
  shortDescription: clonedDescriptor.shortDescription,
8440
8440
  icon: clonedDescriptor.icon,
8441
8441
  facilitatorPreamble: clonedDescriptor.facilitatorPreamble,
8442
+ skill: clonedDescriptor.skill,
8442
8443
  rounds: clonedDescriptor.rounds,
8443
8444
  kbOutputCollection: primaryRecordCollection ?? void 0,
8444
8445
  kbOutputTemplate: summaryCapture && summaryCapture.routing.mode === "fixed" ? {
@@ -8448,6 +8449,9 @@ function compileWorkflowDefinition(descriptor) {
8448
8449
  errorRecovery: clonedDescriptor.errorRecovery
8449
8450
  };
8450
8451
  }
8452
+ function workflowSkillLines(workflow) {
8453
+ return workflow.skill ? ["", `Read this workflow's skill at .productbrain/skills/${workflow.skill}.md for its full facilitation instructions.`] : [];
8454
+ }
8451
8455
 
8452
8456
  // src/workflows/definitions.ts
8453
8457
  var RETRO_WORKFLOW_DESCRIPTOR = {
@@ -8459,7 +8463,7 @@ var RETRO_WORKFLOW_DESCRIPTOR = {
8459
8463
  name: "Retrospective"
8460
8464
  },
8461
8465
  icon: "\u25CE",
8462
- facilitatorPreamble: `You are now in **Facilitator Mode**. You are not a coding assistant \u2014 you are a facilitator running a structured retrospective.
8466
+ facilitatorPreamble: `You are now facilitating. You are not a coding assistant \u2014 you are a facilitator running a structured retrospective.
8463
8467
 
8464
8468
  ## Your Behavior
8465
8469
 
@@ -8635,6 +8639,7 @@ The retro must never fail silently. Always communicate state.`
8635
8639
  };
8636
8640
  var SHAPE_WORKFLOW_DESCRIPTOR = {
8637
8641
  id: "shape",
8642
+ skill: "shaping",
8638
8643
  name: "Shape a Bet",
8639
8644
  shortDescription: "Integration-aware shaping: maps the system before designing, traces five paths per element, surfaces governance conflicts at design time. Scoring is in the shaping skill; uses capture and session action=commit-constellation for Chain capture.",
8640
8645
  template: {
@@ -8818,6 +8823,7 @@ The shaping must never fail silently. Always communicate state.`
8818
8823
  };
8819
8824
  var IMPLEMENTATION_REVIEW_WORKFLOW_DESCRIPTOR = {
8820
8825
  id: "implementation-review",
8826
+ skill: "implementation-review",
8821
8827
  name: "Implementation Review",
8822
8828
  shortDescription: "Fix-as-you-go implementation review: finds issues, fixes them immediately, verifies, then proceeds. Three expert lenses (Staff+ Engineer, CTO, Chain Coherence). Spawns sub-agents for code and test review. Extracts learnings into standards/rules. Ends with BET/chain IDs. Accepts an insight onto the Chain.",
8823
8829
  template: {
@@ -9246,8 +9252,7 @@ ${wf.shortDescription}
9246
9252
  **Rounds** (${wf.rounds.length}):
9247
9253
  ${roundList}
9248
9254
 
9249
- **Output**: ${outputDescription}
9250
- _Trigger via Facilitator Mode: say "run retro", "shape this", "review implementation", or "process change" in Cursor._`;
9255
+ **Output**: ${outputDescription}`;
9251
9256
  }
9252
9257
  function validateFinalWorkflowCheckpoint(workflow, roundId) {
9253
9258
  const finalRound = workflow.rounds.at(-1);
@@ -9319,7 +9324,7 @@ function registerWorkflowTools(server) {
9319
9324
  "workflows",
9320
9325
  {
9321
9326
  title: "Workflows",
9322
- description: "Chainwork workflow discovery, start/resume, checkpointing, and run inspection. Four actions:\n\n- **list**: Browse available workflows \u2014 retro, shape-a-bet, implementation-review, process-change.\n- **start**: Start or resume a workflow. Call with workflowId (e.g. 'implementation-review', 'retro', 'shape', 'process-change'). Returns the first (or current) round instructions and the exact checkpoint call to use when the round is complete. Use this when the user says 'run implementation review', 'run retro', 'shape this', or 'process change' \u2014 it is the tool entry point for running a workflow.\n- **checkpoint**: Record round output during Facilitator Mode. Persists progress. At completion, some workflows support isFinal=true to create the summary chain entry.\n- **get-run**: Inspect a persisted workflow run by run ID or by workflow ID in the current session.",
9327
+ description: "Chainwork workflow discovery, start/resume, checkpointing, and run inspection. Four actions:\n\n- **list**: Browse available workflows \u2014 retro, shape-a-bet, implementation-review, process-change.\n- **start**: Start or resume a workflow. Call with workflowId (e.g. 'implementation-review', 'retro', 'shape', 'process-change'). Returns the first (or current) round instructions and the exact checkpoint call to use when the round is complete. Use this when the user says 'run implementation review', 'run retro', 'shape this', or 'process change' \u2014 it is the tool entry point for running a workflow.\n- **checkpoint**: Record a round's output. Persists progress. At completion, some workflows support isFinal=true to create the summary chain entry.\n- **get-run**: Inspect a persisted workflow run by run ID or by workflow ID in the current session.",
9323
9328
  inputSchema: workflowsSchema,
9324
9329
  annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: false }
9325
9330
  },
@@ -9349,7 +9354,7 @@ async function handleList3() {
9349
9354
  type: "text",
9350
9355
  text: `# Available Chainwork Workflows
9351
9356
 
9352
- ${workflows.length} workflow(s) available. Trigger via Facilitator Mode in Cursor (say "run retro", "shape this", "review implementation", or "process change").
9357
+ ${workflows.length} workflow(s) available. Start one with action=start and its workflowId.
9353
9358
 
9354
9359
  ---
9355
9360
 
@@ -9411,7 +9416,6 @@ Use workflows action=list to see workflow names and round structure.`
9411
9416
  }
9412
9417
  const isResume = run?.status === "active" && run.currentRoundId != null;
9413
9418
  const round = isResume ? wf.rounds.find((r) => r.id === run.currentRoundId) ?? firstRound : firstRound;
9414
- const skillHint = wf.id === "implementation-review" ? "Read the implementation-review skill (.cursor/skills/implementation-review/SKILL.md) for full facilitation instructions." : wf.id === "shape" ? "Read the shaping skill (.cursor/skills/shaping/SKILL.md) for full facilitation instructions." : null;
9415
9419
  const nextStep = `When this round is complete, call \`workflows\` with \`action=checkpoint\`, \`workflowId="${wf.id}"\`, \`roundId="${round.id}"\`, and \`output\` set to the round's synthesized output.` + (run?.runId ? ` Pass \`runId="${run.runId}"\` to checkpoint into the existing run.` : "");
9416
9420
  const lines = [
9417
9421
  isResume ? `# Resume: ${wf.name} (\`${wf.id}\`)` : `# Start: ${wf.name} (\`${wf.id}\`)`,
@@ -9420,12 +9424,12 @@ Use workflows action=list to see workflow names and round structure.`
9420
9424
  "",
9421
9425
  round.instruction,
9422
9426
  "",
9423
- "**Facilitator guidance:**",
9427
+ "**Guidance:**",
9424
9428
  round.facilitatorGuidance,
9425
9429
  "",
9426
9430
  "**Next step:**",
9427
9431
  nextStep,
9428
- ...skillHint ? ["", skillHint] : []
9432
+ ...workflowSkillLines(wf)
9429
9433
  ];
9430
9434
  return {
9431
9435
  content: [{ type: "text", text: lines.join("\n") }],
@@ -13624,4 +13628,4 @@ export {
13624
13628
  createProductBrainServer,
13625
13629
  initFeatureFlags
13626
13630
  };
13627
- //# sourceMappingURL=chunk-STYLOG6K.js.map
13631
+ //# sourceMappingURL=chunk-MUSAWATO.js.map