@programinglive/dev-workflow-mcp-server 1.1.18 → 1.2.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/CHANGELOG.md +9 -0
- package/index.js +8 -4
- package/package.json +1 -1
- package/tools/handlers.js +4 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [1.2.1](https://github.com/programinglive/dev-workflow-mcp-server/compare/v1.2.0...v1.2.1) (2025-11-03)
|
|
6
|
+
|
|
7
|
+
## [1.2.0](https://github.com/programinglive/dev-workflow-mcp-server/compare/v1.1.18...v1.2.0) (2025-11-03)
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
### 🐛 Bug Fixes
|
|
11
|
+
|
|
12
|
+
* reload workflow state from disk on each request to prevent stale state ([96bf50d](https://github.com/programinglive/dev-workflow-mcp-server/commit/96bf50de532713c2a83a3774d8e0dc05870eb24d))
|
|
13
|
+
|
|
5
14
|
### [1.1.18](https://github.com/programinglive/dev-workflow-mcp-server/compare/v1.1.17...v1.1.18) (2025-11-03)
|
|
6
15
|
|
|
7
16
|
|
package/index.js
CHANGED
|
@@ -56,8 +56,12 @@ server.setRequestHandler(ListToolsRequestSchema, async () => ({
|
|
|
56
56
|
}));
|
|
57
57
|
|
|
58
58
|
// Handle tool calls
|
|
59
|
-
server.setRequestHandler(CallToolRequestSchema, (request) =>
|
|
60
|
-
|
|
59
|
+
server.setRequestHandler(CallToolRequestSchema, async (request) => {
|
|
60
|
+
// Reload state from disk before each request to ensure consistency
|
|
61
|
+
if (workflowState) {
|
|
62
|
+
await workflowState.load();
|
|
63
|
+
}
|
|
64
|
+
return handleToolCall({
|
|
61
65
|
request,
|
|
62
66
|
normalizeRequestArgs,
|
|
63
67
|
workflowState,
|
|
@@ -72,8 +76,8 @@ server.setRequestHandler(CallToolRequestSchema, (request) =>
|
|
|
72
76
|
workingTreeSummary,
|
|
73
77
|
},
|
|
74
78
|
utils: { shellEscape, determineReleaseTypeFromCommit, createCommitMessageParts },
|
|
75
|
-
})
|
|
76
|
-
);
|
|
79
|
+
});
|
|
80
|
+
});
|
|
77
81
|
|
|
78
82
|
// Helper function
|
|
79
83
|
export function getNextStep(status) {
|
package/package.json
CHANGED
package/tools/handlers.js
CHANGED
|
@@ -781,6 +781,7 @@ async function handleProjectSummaryDb(workflowState) {
|
|
|
781
781
|
}
|
|
782
782
|
|
|
783
783
|
async function handleRerunWorkflow(workflowState) {
|
|
784
|
+
// Capture task context BEFORE reset to avoid losing it
|
|
784
785
|
const currentDescription = workflowState.state.taskDescription;
|
|
785
786
|
const currentType = workflowState.state.taskType;
|
|
786
787
|
|
|
@@ -788,7 +789,10 @@ async function handleRerunWorkflow(workflowState) {
|
|
|
788
789
|
return textResponse("⚠️ No active task to rerun. Use 'start_task' to begin a new workflow.");
|
|
789
790
|
}
|
|
790
791
|
|
|
792
|
+
// Reset all progress flags but preserve history
|
|
791
793
|
workflowState.reset();
|
|
794
|
+
|
|
795
|
+
// Restore task context after reset
|
|
792
796
|
workflowState.state.currentPhase = "coding";
|
|
793
797
|
workflowState.state.taskDescription = currentDescription;
|
|
794
798
|
workflowState.state.taskType = currentType;
|