@codemcp/workflows-core 3.1.21 → 3.2.0

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 (80) hide show
  1. package/package.json +9 -5
  2. package/resources/templates/architecture/arc42/arc42-template-EN.md +1077 -0
  3. package/resources/templates/architecture/arc42/images/01_2_iso-25010-topics-EN.drawio-2023.png +0 -0
  4. package/resources/templates/architecture/arc42/images/01_2_iso-25010-topics-EN.drawio.png +0 -0
  5. package/resources/templates/architecture/arc42/images/05_building_blocks-EN.png +0 -0
  6. package/resources/templates/architecture/arc42/images/08-concepts-EN.drawio.png +0 -0
  7. package/resources/templates/architecture/arc42/images/arc42-logo.png +0 -0
  8. package/resources/templates/architecture/c4.md +224 -0
  9. package/resources/templates/architecture/freestyle.md +53 -0
  10. package/resources/templates/architecture/none.md +17 -0
  11. package/resources/templates/design/comprehensive.md +207 -0
  12. package/resources/templates/design/freestyle.md +37 -0
  13. package/resources/templates/design/none.md +17 -0
  14. package/resources/templates/requirements/ears.md +90 -0
  15. package/resources/templates/requirements/freestyle.md +42 -0
  16. package/resources/templates/requirements/none.md +17 -0
  17. package/resources/workflows/big-bang-conversion.yaml +539 -0
  18. package/resources/workflows/boundary-testing.yaml +334 -0
  19. package/resources/workflows/bugfix.yaml +185 -0
  20. package/resources/workflows/business-analysis.yaml +671 -0
  21. package/resources/workflows/c4-analysis.yaml +485 -0
  22. package/resources/workflows/epcc.yaml +161 -0
  23. package/resources/workflows/greenfield.yaml +189 -0
  24. package/resources/workflows/minor.yaml +127 -0
  25. package/resources/workflows/posts.yaml +207 -0
  26. package/resources/workflows/slides.yaml +256 -0
  27. package/resources/workflows/tdd.yaml +157 -0
  28. package/resources/workflows/waterfall.yaml +195 -0
  29. package/.turbo/turbo-build.log +0 -4
  30. package/src/config-manager.ts +0 -96
  31. package/src/conversation-manager.ts +0 -489
  32. package/src/database.ts +0 -427
  33. package/src/file-detection-manager.ts +0 -302
  34. package/src/git-manager.ts +0 -64
  35. package/src/index.ts +0 -28
  36. package/src/instruction-generator.ts +0 -210
  37. package/src/interaction-logger.ts +0 -109
  38. package/src/logger.ts +0 -353
  39. package/src/path-validation-utils.ts +0 -261
  40. package/src/plan-manager.ts +0 -323
  41. package/src/project-docs-manager.ts +0 -523
  42. package/src/state-machine-loader.ts +0 -365
  43. package/src/state-machine-types.ts +0 -72
  44. package/src/state-machine.ts +0 -370
  45. package/src/system-prompt-generator.ts +0 -122
  46. package/src/template-manager.ts +0 -328
  47. package/src/transition-engine.ts +0 -386
  48. package/src/types.ts +0 -60
  49. package/src/workflow-manager.ts +0 -606
  50. package/test/unit/conversation-manager.test.ts +0 -179
  51. package/test/unit/custom-workflow-loading.test.ts +0 -174
  52. package/test/unit/directory-linking-and-extensions.test.ts +0 -338
  53. package/test/unit/file-linking-integration.test.ts +0 -256
  54. package/test/unit/git-commit-integration.test.ts +0 -91
  55. package/test/unit/git-manager.test.ts +0 -86
  56. package/test/unit/install-workflow.test.ts +0 -138
  57. package/test/unit/instruction-generator.test.ts +0 -247
  58. package/test/unit/list-workflows-filtering.test.ts +0 -68
  59. package/test/unit/none-template-functionality.test.ts +0 -224
  60. package/test/unit/project-docs-manager.test.ts +0 -337
  61. package/test/unit/state-machine-loader.test.ts +0 -234
  62. package/test/unit/template-manager.test.ts +0 -217
  63. package/test/unit/validate-workflow-name.test.ts +0 -150
  64. package/test/unit/workflow-domain-filtering.test.ts +0 -75
  65. package/test/unit/workflow-enum-generation.test.ts +0 -92
  66. package/test/unit/workflow-manager-enhanced-path-resolution.test.ts +0 -369
  67. package/test/unit/workflow-manager-path-resolution.test.ts +0 -150
  68. package/test/unit/workflow-migration.test.ts +0 -155
  69. package/test/unit/workflow-override-by-name.test.ts +0 -116
  70. package/test/unit/workflow-prioritization.test.ts +0 -38
  71. package/test/unit/workflow-validation.test.ts +0 -303
  72. package/test/utils/e2e-test-setup.ts +0 -453
  73. package/test/utils/run-server-in-dir.sh +0 -27
  74. package/test/utils/temp-files.ts +0 -308
  75. package/test/utils/test-access.ts +0 -79
  76. package/test/utils/test-helpers.ts +0 -286
  77. package/test/utils/test-setup.ts +0 -78
  78. package/tsconfig.build.json +0 -21
  79. package/tsconfig.json +0 -8
  80. package/vitest.config.ts +0 -18
@@ -1,78 +0,0 @@
1
- /**
2
- * Shared Test Setup Utilities
3
- *
4
- * Provides common mocking and server setup functions for integration tests
5
- */
6
-
7
- import { join } from 'node:path';
8
- import type { Client } from '@modelcontextprotocol/sdk/client/index.js';
9
- import type { StdioClientTransport } from '@modelcontextprotocol/sdk/client/stdio.js';
10
-
11
- /**
12
- * Server test context
13
- */
14
- export interface ServerTestContext {
15
- client: Client;
16
- transport: StdioClientTransport;
17
- cleanup: () => Promise<void>;
18
- }
19
-
20
- /**
21
- * Start a test server instance
22
- * @param options Server configuration options
23
- * @returns Server test context with client and cleanup function
24
- */
25
- export async function startTestServer(
26
- options: {
27
- projectPath?: string;
28
- logLevel?: string;
29
- } = {}
30
- ): Promise<ServerTestContext> {
31
- const serverPath = join(process.cwd(), 'src', 'index.ts');
32
- const tsxModule = join(
33
- process.cwd(),
34
- 'node_modules',
35
- 'tsx',
36
- 'dist',
37
- 'cli.mjs'
38
- );
39
- const tempDir = options.projectPath || process.cwd(); // Use current directory as fallback
40
-
41
- const { Client } = await import('@modelcontextprotocol/sdk/client/index.js');
42
- const { StdioClientTransport } = await import(
43
- '@modelcontextprotocol/sdk/client/stdio.js'
44
- );
45
-
46
- const transport = new StdioClientTransport({
47
- command: 'node',
48
- args: [tsxModule, serverPath],
49
- env: {
50
- ...process.env,
51
- LOG_LEVEL: options.logLevel || 'ERROR', // Reduce noise in tests
52
- NODE_ENV: 'test',
53
- },
54
- cwd: tempDir, // Set working directory to the test project
55
- });
56
-
57
- const client = new Client(
58
- {
59
- name: 'test-client',
60
- version: '1.0.0',
61
- },
62
- {
63
- capabilities: {},
64
- }
65
- );
66
-
67
- await client.connect(transport);
68
-
69
- return {
70
- client,
71
- transport,
72
- cleanup: async () => {
73
- if (client) {
74
- await client.close();
75
- }
76
- },
77
- };
78
- }
@@ -1,21 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "target": "ES2022",
4
- "module": "ESNext",
5
- "moduleResolution": "node",
6
- "strict": true,
7
- "esModuleInterop": true,
8
- "skipLibCheck": true,
9
- "forceConsistentCasingInFileNames": true,
10
- "declaration": true,
11
- "sourceMap": true,
12
- "outDir": "dist",
13
- "rootDir": "src",
14
- "noEmit": false,
15
- "downlevelIteration": true,
16
- "exactOptionalPropertyTypes": false,
17
- "noUncheckedIndexedAccess": false
18
- },
19
- "include": ["src/**/*"],
20
- "exclude": ["node_modules", "dist", "**/*.test.ts"]
21
- }
package/tsconfig.json DELETED
@@ -1,8 +0,0 @@
1
- {
2
- "extends": "../../tsconfig.base.json",
3
- "compilerOptions": {
4
- "noEmit": true
5
- },
6
- "include": ["src/**/*"],
7
- "exclude": ["node_modules", "dist"]
8
- }
package/vitest.config.ts DELETED
@@ -1,18 +0,0 @@
1
- import { defineConfig } from 'vitest/config';
2
-
3
- export default defineConfig({
4
- test: {
5
- setupFiles: ['../../test/setup.ts'],
6
- environment: 'node',
7
- globals: true,
8
- include: ['test/**/*.test.ts'],
9
- typecheck: {
10
- tsconfig: './tsconfig.build.json',
11
- },
12
- env: {
13
- LOG_LEVEL: 'ERROR',
14
- NODE_ENV: 'test',
15
- VITEST: 'true',
16
- },
17
- },
18
- });