@codemcp/workflows 4.10.2 → 4.10.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.
Files changed (56) hide show
  1. package/.turbo/turbo-build.log +1 -1
  2. package/dist/components/beads/beads-instruction-generator.d.ts +1 -4
  3. package/dist/components/beads/beads-instruction-generator.d.ts.map +1 -1
  4. package/dist/components/beads/beads-instruction-generator.js +24 -52
  5. package/dist/components/beads/beads-instruction-generator.js.map +1 -1
  6. package/dist/index.js +1 -1
  7. package/dist/index.js.map +1 -1
  8. package/dist/server-config.d.ts.map +1 -1
  9. package/dist/server-config.js +4 -8
  10. package/dist/server-config.js.map +1 -1
  11. package/dist/tool-handlers/base-tool-handler.d.ts.map +1 -1
  12. package/dist/tool-handlers/base-tool-handler.js.map +1 -1
  13. package/dist/tool-handlers/get-tool-info.d.ts +0 -1
  14. package/dist/tool-handlers/get-tool-info.d.ts.map +1 -1
  15. package/dist/tool-handlers/get-tool-info.js +0 -1
  16. package/dist/tool-handlers/get-tool-info.js.map +1 -1
  17. package/dist/tool-handlers/proceed-to-phase.d.ts +0 -2
  18. package/dist/tool-handlers/proceed-to-phase.d.ts.map +1 -1
  19. package/dist/tool-handlers/proceed-to-phase.js +0 -2
  20. package/dist/tool-handlers/proceed-to-phase.js.map +1 -1
  21. package/dist/tool-handlers/resume-workflow.d.ts +0 -1
  22. package/dist/tool-handlers/resume-workflow.d.ts.map +1 -1
  23. package/dist/tool-handlers/resume-workflow.js +0 -1
  24. package/dist/tool-handlers/resume-workflow.js.map +1 -1
  25. package/dist/tool-handlers/start-development.d.ts +0 -3
  26. package/dist/tool-handlers/start-development.d.ts.map +1 -1
  27. package/dist/tool-handlers/start-development.js +0 -6
  28. package/dist/tool-handlers/start-development.js.map +1 -1
  29. package/dist/tool-handlers/whats-next.d.ts +0 -2
  30. package/dist/tool-handlers/whats-next.d.ts.map +1 -1
  31. package/dist/tool-handlers/whats-next.js +0 -2
  32. package/dist/tool-handlers/whats-next.js.map +1 -1
  33. package/package.json +5 -5
  34. package/src/components/beads/beads-instruction-generator.ts +28 -60
  35. package/src/index.ts +1 -1
  36. package/src/server-config.ts +6 -9
  37. package/src/tool-handlers/base-tool-handler.ts +4 -3
  38. package/src/tool-handlers/get-tool-info.ts +0 -2
  39. package/src/tool-handlers/proceed-to-phase.ts +0 -4
  40. package/src/tool-handlers/resume-workflow.ts +0 -2
  41. package/src/tool-handlers/start-development.ts +0 -8
  42. package/src/tool-handlers/whats-next.ts +0 -4
  43. package/test/e2e/beads-plugin-integration.test.ts +4 -19
  44. package/test/e2e/core-functionality.test.ts +3 -12
  45. package/test/e2e/mcp-contract.test.ts +0 -31
  46. package/test/e2e/plugin-system-integration.test.ts +7 -315
  47. package/test/e2e/state-management.test.ts +1 -5
  48. package/test/e2e/workflow-integration.test.ts +2 -11
  49. package/test/unit/beads-instruction-generator.test.ts +235 -103
  50. package/test/unit/beads-phase-task-id-integration.test.ts +7 -29
  51. package/test/unit/resume-workflow.test.ts +0 -1
  52. package/test/unit/server-tools.test.ts +0 -1
  53. package/test/utils/e2e-test-setup.ts +2 -3
  54. package/test/utils/test-setup.ts +2 -3
  55. package/tsconfig.build.json +2 -1
  56. package/tsconfig.build.tsbuildinfo +1 -1
@@ -206,7 +206,6 @@ describe('MCP Contract Validation', () => {
206
206
  const responseText = textContent!.text;
207
207
  expect(responseText).toContain('phase');
208
208
  expect(responseText).toContain('instructions');
209
- expect(responseText).toContain('conversation_id');
210
209
  });
211
210
 
212
211
  it('should execute proceed_to_phase tool successfully', async () => {
@@ -334,7 +333,6 @@ describe('MCP Contract Validation', () => {
334
333
 
335
334
  // Should contain valid JSON with state information
336
335
  const stateData = JSON.parse(content.text);
337
- expect(stateData.conversationId).toBeTruthy();
338
336
  expect(stateData.currentPhase).toBeTruthy();
339
337
  expect(stateData.projectPath).toBeTruthy();
340
338
  });
@@ -386,34 +384,6 @@ describe('MCP Contract Validation', () => {
386
384
  expect(Array.isArray(results[3].resources)).toBe(true);
387
385
  });
388
386
 
389
- it('should maintain conversation state across multiple interactions', async () => {
390
- // First interaction
391
- const result1 = await client.callTool({
392
- name: 'whats_next',
393
- arguments: {
394
- user_input: 'start new project',
395
- },
396
- });
397
-
398
- const response1 = JSON.parse(result1.content[0].text);
399
- const conversationId1 = response1.conversation_id;
400
-
401
- // Second interaction in the same session
402
- const result2 = await client.callTool({
403
- name: 'whats_next',
404
- arguments: {
405
- user_input: 'continue project',
406
- },
407
- });
408
-
409
- const response2 = JSON.parse(result2.content[0].text);
410
- const conversationId2 = response2.conversation_id;
411
-
412
- // Should maintain same conversation ID within the same MCP session
413
- // Note: Each MCP client connection maintains its own conversation context
414
- expect(conversationId1).toBe(conversationId2);
415
- });
416
-
417
387
  it('should handle malformed requests appropriately', async () => {
418
388
  // Test with missing required parameters
419
389
  try {
@@ -534,7 +504,6 @@ describe('MCP Contract Validation', () => {
534
504
  const response = JSON.parse(result.content[0].text);
535
505
  expect(response.phase).toBeTruthy();
536
506
  expect(response.instructions).toBeTruthy();
537
- expect(response.conversation_id).toBeTruthy();
538
507
  });
539
508
  });
540
509
  });