@codemcp/workflows-core 3.1.22 → 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.
- package/package.json +8 -3
- package/resources/templates/architecture/arc42/arc42-template-EN.md +1077 -0
- package/resources/templates/architecture/arc42/images/01_2_iso-25010-topics-EN.drawio-2023.png +0 -0
- package/resources/templates/architecture/arc42/images/01_2_iso-25010-topics-EN.drawio.png +0 -0
- package/resources/templates/architecture/arc42/images/05_building_blocks-EN.png +0 -0
- package/resources/templates/architecture/arc42/images/08-concepts-EN.drawio.png +0 -0
- package/resources/templates/architecture/arc42/images/arc42-logo.png +0 -0
- package/resources/templates/architecture/c4.md +224 -0
- package/resources/templates/architecture/freestyle.md +53 -0
- package/resources/templates/architecture/none.md +17 -0
- package/resources/templates/design/comprehensive.md +207 -0
- package/resources/templates/design/freestyle.md +37 -0
- package/resources/templates/design/none.md +17 -0
- package/resources/templates/requirements/ears.md +90 -0
- package/resources/templates/requirements/freestyle.md +42 -0
- package/resources/templates/requirements/none.md +17 -0
- package/resources/workflows/big-bang-conversion.yaml +539 -0
- package/resources/workflows/boundary-testing.yaml +334 -0
- package/resources/workflows/bugfix.yaml +185 -0
- package/resources/workflows/business-analysis.yaml +671 -0
- package/resources/workflows/c4-analysis.yaml +485 -0
- package/resources/workflows/epcc.yaml +161 -0
- package/resources/workflows/greenfield.yaml +189 -0
- package/resources/workflows/minor.yaml +127 -0
- package/resources/workflows/posts.yaml +207 -0
- package/resources/workflows/slides.yaml +256 -0
- package/resources/workflows/tdd.yaml +157 -0
- package/resources/workflows/waterfall.yaml +195 -0
- package/.turbo/turbo-build.log +0 -4
- package/src/config-manager.ts +0 -96
- package/src/conversation-manager.ts +0 -489
- package/src/database.ts +0 -427
- package/src/file-detection-manager.ts +0 -302
- package/src/git-manager.ts +0 -64
- package/src/index.ts +0 -28
- package/src/instruction-generator.ts +0 -210
- package/src/interaction-logger.ts +0 -109
- package/src/logger.ts +0 -353
- package/src/path-validation-utils.ts +0 -261
- package/src/plan-manager.ts +0 -323
- package/src/project-docs-manager.ts +0 -523
- package/src/state-machine-loader.ts +0 -365
- package/src/state-machine-types.ts +0 -72
- package/src/state-machine.ts +0 -370
- package/src/system-prompt-generator.ts +0 -122
- package/src/template-manager.ts +0 -328
- package/src/transition-engine.ts +0 -386
- package/src/types.ts +0 -60
- package/src/workflow-manager.ts +0 -606
- package/test/unit/conversation-manager.test.ts +0 -179
- package/test/unit/custom-workflow-loading.test.ts +0 -174
- package/test/unit/directory-linking-and-extensions.test.ts +0 -338
- package/test/unit/file-linking-integration.test.ts +0 -256
- package/test/unit/git-commit-integration.test.ts +0 -91
- package/test/unit/git-manager.test.ts +0 -86
- package/test/unit/install-workflow.test.ts +0 -138
- package/test/unit/instruction-generator.test.ts +0 -247
- package/test/unit/list-workflows-filtering.test.ts +0 -68
- package/test/unit/none-template-functionality.test.ts +0 -224
- package/test/unit/project-docs-manager.test.ts +0 -337
- package/test/unit/state-machine-loader.test.ts +0 -234
- package/test/unit/template-manager.test.ts +0 -217
- package/test/unit/validate-workflow-name.test.ts +0 -150
- package/test/unit/workflow-domain-filtering.test.ts +0 -75
- package/test/unit/workflow-enum-generation.test.ts +0 -92
- package/test/unit/workflow-manager-enhanced-path-resolution.test.ts +0 -369
- package/test/unit/workflow-manager-path-resolution.test.ts +0 -150
- package/test/unit/workflow-migration.test.ts +0 -155
- package/test/unit/workflow-override-by-name.test.ts +0 -116
- package/test/unit/workflow-prioritization.test.ts +0 -38
- package/test/unit/workflow-validation.test.ts +0 -303
- package/test/utils/e2e-test-setup.ts +0 -453
- package/test/utils/run-server-in-dir.sh +0 -27
- package/test/utils/temp-files.ts +0 -308
- package/test/utils/test-access.ts +0 -79
- package/test/utils/test-helpers.ts +0 -286
- package/test/utils/test-setup.ts +0 -78
- package/tsconfig.build.json +0 -21
- package/tsconfig.json +0 -8
- package/vitest.config.ts +0 -18
package/test/utils/test-setup.ts
DELETED
@@ -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
|
-
}
|
package/tsconfig.build.json
DELETED
@@ -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
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
|
-
});
|