@codemcp/workflows 6.6.0 → 6.6.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 +24 -3
- 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.6.
|
|
3
|
+
"version": "6.6.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.6.
|
|
54
|
+
"@codemcp/workflows-core": "6.6.1"
|
|
55
55
|
},
|
|
56
56
|
"lint-staged": {
|
|
57
57
|
"*.{ts,js,mts,cts,tsx,jsx}": [
|
|
@@ -28358,6 +28358,7 @@ var WorkflowsPlugin = async (input) => {
|
|
|
28358
28358
|
let cachedServerContext = null;
|
|
28359
28359
|
let serverContextInitialized = false;
|
|
28360
28360
|
let currentSessionId = null;
|
|
28361
|
+
let lastKnownSessionId = null;
|
|
28361
28362
|
let bufferedInstructions = null;
|
|
28362
28363
|
function setBufferedInstructions(result) {
|
|
28363
28364
|
bufferedInstructions = {
|
|
@@ -28368,6 +28369,15 @@ var WorkflowsPlugin = async (input) => {
|
|
|
28368
28369
|
};
|
|
28369
28370
|
}
|
|
28370
28371
|
async function getServerContext() {
|
|
28372
|
+
if (currentSessionId && currentSessionId !== lastKnownSessionId) {
|
|
28373
|
+
logger37.debug("Session ID changed, invalidating cached ServerContext", {
|
|
28374
|
+
oldSessionId: lastKnownSessionId,
|
|
28375
|
+
newSessionId: currentSessionId
|
|
28376
|
+
});
|
|
28377
|
+
cachedServerContext = null;
|
|
28378
|
+
serverContextInitialized = false;
|
|
28379
|
+
lastKnownSessionId = currentSessionId;
|
|
28380
|
+
}
|
|
28371
28381
|
if (!cachedServerContext) {
|
|
28372
28382
|
const sessionMetadata = currentSessionId ? {
|
|
28373
28383
|
referenceId: currentSessionId,
|
|
@@ -28427,9 +28437,20 @@ var WorkflowsPlugin = async (input) => {
|
|
|
28427
28437
|
* We add a synthetic part with phase instructions.
|
|
28428
28438
|
*/
|
|
28429
28439
|
"chat.message": async (hookInput, output) => {
|
|
28430
|
-
if (hookInput.sessionID
|
|
28431
|
-
currentSessionId
|
|
28432
|
-
|
|
28440
|
+
if (hookInput.sessionID) {
|
|
28441
|
+
if (!currentSessionId) {
|
|
28442
|
+
currentSessionId = hookInput.sessionID;
|
|
28443
|
+
lastKnownSessionId = hookInput.sessionID;
|
|
28444
|
+
logger37.debug("Captured initial session ID", {
|
|
28445
|
+
sessionId: currentSessionId
|
|
28446
|
+
});
|
|
28447
|
+
} else if (currentSessionId !== hookInput.sessionID) {
|
|
28448
|
+
currentSessionId = hookInput.sessionID;
|
|
28449
|
+
logger37.info("Session ID changed", {
|
|
28450
|
+
oldSessionId: lastKnownSessionId,
|
|
28451
|
+
newSessionId: currentSessionId
|
|
28452
|
+
});
|
|
28453
|
+
}
|
|
28433
28454
|
}
|
|
28434
28455
|
if (!workflowsEnabled) {
|
|
28435
28456
|
logger37.debug("chat.message: Workflows disabled, skipping hook");
|