@codemcp/workflows 6.18.2 → 6.18.4

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codemcp/workflows",
3
- "version": "6.18.2",
3
+ "version": "6.18.4",
4
4
  "description": "A Model Context Protocol server that acts as an intelligent conversation state manager and development guide for LLMs, featuring comprehensive long-term memory with persistent project artifacts",
5
5
  "type": "module",
6
6
  "main": "packages/cli/dist/index.js",
@@ -51,7 +51,7 @@
51
51
  "typescript": "^5.9.3",
52
52
  "vitepress": "^1.6.4",
53
53
  "vitest": "4.0.18",
54
- "@codemcp/workflows-core": "6.18.2"
54
+ "@codemcp/workflows-core": "6.18.4"
55
55
  },
56
56
  "lint-staged": {
57
57
  "*.{ts,js,mts,cts,tsx,jsx}": [
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codemcp/workflows-cli",
3
- "version": "6.18.2",
3
+ "version": "6.18.4",
4
4
  "description": "CLI tools for responsible-vibe development workflows",
5
5
  "type": "module",
6
6
  "scripts": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codemcp/workflows-core",
3
- "version": "6.18.2",
3
+ "version": "6.18.4",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "type": "module",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codemcp/workflows-docs",
3
- "version": "6.18.2",
3
+ "version": "6.18.4",
4
4
  "description": "Documentation site for Responsible Vibe MCP",
5
5
  "type": "module",
6
6
  "scripts": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codemcp/workflows-server",
3
- "version": "6.18.2",
3
+ "version": "6.18.4",
4
4
  "description": "MCP server for responsible-vibe development workflows - provides structured workflow guidance",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -28621,11 +28621,16 @@ function createStartDevelopmentTool(projectDir, getServerContext, setBufferedIns
28621
28621
  const workflowManager = new WorkflowManager();
28622
28622
  const availableWorkflows = workflowManager.getAvailableWorkflowsForProject(projectDir);
28623
28623
  const workflowNames = availableWorkflows.map((w) => w.name);
28624
- const toolDescription = workflowNames.length > 0 ? `Start a development workflow. Available: ${workflowNames.join(", ")}` : "Start a development workflow (no workflows available - check WORKFLOW_DOMAINS)";
28624
+ const workflowLines = availableWorkflows.map((w) => ` - ${w.name}: ${w.displayName} \u2014 ${w.description}`).join("\n");
28625
+ const toolDescription = workflowNames.length > 0 ? `Start a development workflow.
28626
+
28627
+ workflow parameter \u2014 available values:
28628
+ ${workflowLines}
28629
+ - custom: Use a custom workflow name` : "Start a development workflow (no workflows available - check WORKFLOW_DOMAINS)";
28625
28630
  return tool({
28626
28631
  description: toolDescription,
28627
28632
  args: {
28628
- workflow: z9.enum(buildWorkflowEnum(workflowNames)).describe(generateWorkflowDescription(availableWorkflows)),
28633
+ workflow: z9.enum(buildWorkflowEnum(workflowNames)),
28629
28634
  require_reviews: z9.boolean().optional().describe("Require reviews before phase transitions")
28630
28635
  },
28631
28636
  execute: async (args2, context3) => {
@@ -28852,7 +28857,9 @@ var WorkflowsPlugin = async (input) => {
28852
28857
  let bufferedInstructions = null;
28853
28858
  let postCompactionSession = null;
28854
28859
  let postCompactionMessagePending = false;
28860
+ let postCompactionAutoResume = false;
28855
28861
  let lastKnownModel = null;
28862
+ let lastKnownAgent = null;
28856
28863
  function setBufferedInstructions(result3) {
28857
28864
  bufferedInstructions = {
28858
28865
  phase: result3.phase,
@@ -28939,6 +28946,9 @@ var WorkflowsPlugin = async (input) => {
28939
28946
  if (hookInput.model) {
28940
28947
  lastKnownModel = hookInput.model;
28941
28948
  }
28949
+ if (hookInput.agent && isAgentEnabled(hookInput.agent)) {
28950
+ lastKnownAgent = hookInput.agent;
28951
+ }
28942
28952
  if (postCompactionMessagePending) {
28943
28953
  postCompactionMessagePending = false;
28944
28954
  logger24.debug(
@@ -28946,7 +28956,15 @@ var WorkflowsPlugin = async (input) => {
28946
28956
  );
28947
28957
  return;
28948
28958
  }
28949
- if (!isAgentEnabled(hookInput.agent)) {
28959
+ const bypassAgentFilter = postCompactionAutoResume;
28960
+ if (bypassAgentFilter) {
28961
+ postCompactionAutoResume = false;
28962
+ logger24.debug(
28963
+ "chat.message: bypassing agent filter for post-compaction auto-resume",
28964
+ { agent: hookInput.agent }
28965
+ );
28966
+ }
28967
+ if (!bypassAgentFilter && !isAgentEnabled(hookInput.agent)) {
28950
28968
  logger24.debug(
28951
28969
  "chat.message: Agent not enabled \u2014 injecting tool suppression",
28952
28970
  {
@@ -29144,6 +29162,7 @@ ${phaseInstructions}`
29144
29162
  logger24.debug("event hook fired", { type: event.type });
29145
29163
  if (event.type === "session.compacted") {
29146
29164
  postCompactionSession = event.properties.sessionID;
29165
+ postCompactionAutoResume = true;
29147
29166
  logger24.info("session.compacted: pending phase-aware continue", {
29148
29167
  sessionID: postCompactionSession
29149
29168
  });
@@ -29182,7 +29201,8 @@ ${phaseInstructions}`
29182
29201
  await client.session.promptAsync({
29183
29202
  path: { id: sessionID },
29184
29203
  body: {
29185
- parts: [{ type: "text", text: promptText }]
29204
+ parts: [{ type: "text", text: promptText }],
29205
+ ...lastKnownAgent ? { agent: lastKnownAgent } : {}
29186
29206
  }
29187
29207
  });
29188
29208
  logger24.info("session.idle: phase-aware continue sent (async)", {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codemcp/workflows-opencode",
3
- "version": "6.18.2",
3
+ "version": "6.18.4",
4
4
  "description": "OpenCode plugin for structured development workflows",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codemcp/workflows-opencode-tui",
3
- "version": "6.18.2",
3
+ "version": "6.18.4",
4
4
  "description": "OpenCode TUI sidebar plugin that displays the current responsible-vibe workflow phase and name",
5
5
  "main": "workflows-phase.tsx",
6
6
  "exports": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codemcp/workflows-visualizer",
3
- "version": "6.18.2",
3
+ "version": "6.18.4",
4
4
  "type": "module",
5
5
  "main": "dist/index.ts",
6
6
  "module": "dist/index.ts",