@codemcp/workflows 6.11.0 → 6.11.1
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 +2 -2
- package/packages/cli/package.json +1 -1
- package/packages/core/package.json +1 -1
- package/packages/docs/package.json +1 -1
- package/packages/mcp-server/package.json +1 -1
- package/packages/opencode-plugin/dist/index.js +35 -4
- package/packages/opencode-plugin/package.json +1 -1
- package/packages/opencode-tui-plugin/package.json +1 -1
- package/packages/visualizer/package.json +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codemcp/workflows",
|
|
3
|
-
"version": "6.11.
|
|
3
|
+
"version": "6.11.1",
|
|
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.11.
|
|
54
|
+
"@codemcp/workflows-core": "6.11.1"
|
|
55
55
|
},
|
|
56
56
|
"lint-staged": {
|
|
57
57
|
"*.{ts,js,mts,cts,tsx,jsx}": [
|
|
@@ -28159,7 +28159,7 @@ function requirePrimaryAgent(agentName) {
|
|
|
28159
28159
|
}
|
|
28160
28160
|
|
|
28161
28161
|
// src/tool-handlers/proceed-to-phase.ts
|
|
28162
|
-
function createProceedToPhaseTool(getServerContext, setBufferedInstructions) {
|
|
28162
|
+
function createProceedToPhaseTool(getServerContext, setBufferedInstructions, client, getModel) {
|
|
28163
28163
|
return tool({
|
|
28164
28164
|
description: "Move to a development phase. Args: target_phase (from plan file), reason (optional), review_state (not-required|pending|performed)",
|
|
28165
28165
|
args: {
|
|
@@ -28202,6 +28202,17 @@ function createProceedToPhaseTool(getServerContext, setBufferedInstructions) {
|
|
|
28202
28202
|
plan_file_path: data.plan_file_path,
|
|
28203
28203
|
allowed_file_patterns: data.allowed_file_patterns
|
|
28204
28204
|
});
|
|
28205
|
+
const model = getModel();
|
|
28206
|
+
client.session.summarize({
|
|
28207
|
+
path: { id: context.sessionID },
|
|
28208
|
+
...model ? { body: model } : {}
|
|
28209
|
+
}).catch(() => {
|
|
28210
|
+
});
|
|
28211
|
+
logger37.info("Triggered compaction after phase transition", {
|
|
28212
|
+
phase: data.phase,
|
|
28213
|
+
sessionID: context.sessionID,
|
|
28214
|
+
hasModel: !!model
|
|
28215
|
+
});
|
|
28205
28216
|
const lines = [];
|
|
28206
28217
|
lines.push(`Transitioned to: ${data.phase}`);
|
|
28207
28218
|
if (data.transition_reason) {
|
|
@@ -28586,6 +28597,7 @@ var WorkflowsPlugin = async (input) => {
|
|
|
28586
28597
|
let currentSessionId = null;
|
|
28587
28598
|
let lastKnownSessionId = null;
|
|
28588
28599
|
let bufferedInstructions = null;
|
|
28600
|
+
let lastKnownModel = null;
|
|
28589
28601
|
function setBufferedInstructions(result) {
|
|
28590
28602
|
bufferedInstructions = {
|
|
28591
28603
|
phase: result.phase,
|
|
@@ -28669,9 +28681,23 @@ var WorkflowsPlugin = async (input) => {
|
|
|
28669
28681
|
});
|
|
28670
28682
|
}
|
|
28671
28683
|
}
|
|
28684
|
+
if (hookInput.model) {
|
|
28685
|
+
lastKnownModel = hookInput.model;
|
|
28686
|
+
}
|
|
28672
28687
|
if (!isAgentEnabled(hookInput.agent)) {
|
|
28673
|
-
logger37.debug(
|
|
28674
|
-
|
|
28688
|
+
logger37.debug(
|
|
28689
|
+
"chat.message: Agent not enabled \u2014 injecting tool suppression",
|
|
28690
|
+
{
|
|
28691
|
+
agent: hookInput.agent
|
|
28692
|
+
}
|
|
28693
|
+
);
|
|
28694
|
+
output.parts.push({
|
|
28695
|
+
id: `prt_workflows_suppress_${Date.now()}`,
|
|
28696
|
+
sessionID: hookInput.sessionID,
|
|
28697
|
+
messageID: hookInput.messageID || output.message.id,
|
|
28698
|
+
type: "text",
|
|
28699
|
+
synthetic: true,
|
|
28700
|
+
text: "IMPORTANT: The following workflow tools are NOT available in this session and must NOT be called under any circumstances: start_development, proceed_to_phase, conduct_review, reset_development, setup_project_docs. Calling them will result in an error. Ignore them entirely."
|
|
28675
28701
|
});
|
|
28676
28702
|
return;
|
|
28677
28703
|
}
|
|
@@ -28843,7 +28869,12 @@ ACTION REQUIRED: Use transition_phase tool to move to a phase that allows editin
|
|
|
28843
28869
|
)
|
|
28844
28870
|
),
|
|
28845
28871
|
proceed_to_phase: wrap(
|
|
28846
|
-
createProceedToPhaseTool(
|
|
28872
|
+
createProceedToPhaseTool(
|
|
28873
|
+
getServerContext,
|
|
28874
|
+
setBufferedInstructions,
|
|
28875
|
+
input.client,
|
|
28876
|
+
() => lastKnownModel
|
|
28877
|
+
)
|
|
28847
28878
|
),
|
|
28848
28879
|
conduct_review: wrap(createConductReviewTool(getServerContext)),
|
|
28849
28880
|
reset_development: wrap(
|