@mycodemap/mycodemap 0.1.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/CHANGELOG.md +17 -0
- package/LICENSE +21 -0
- package/README.md +559 -0
- package/dist/ai/claude.d.ts +38 -0
- package/dist/ai/claude.d.ts.map +1 -0
- package/dist/ai/claude.js +169 -0
- package/dist/ai/claude.js.map +1 -0
- package/dist/ai/codex.d.ts +38 -0
- package/dist/ai/codex.d.ts.map +1 -0
- package/dist/ai/codex.js +169 -0
- package/dist/ai/codex.js.map +1 -0
- package/dist/ai/factory.d.ts +48 -0
- package/dist/ai/factory.d.ts.map +1 -0
- package/dist/ai/factory.js +95 -0
- package/dist/ai/factory.js.map +1 -0
- package/dist/ai/index.d.ts +12 -0
- package/dist/ai/index.d.ts.map +1 -0
- package/dist/ai/index.js +29 -0
- package/dist/ai/index.js.map +1 -0
- package/dist/ai/provider.d.ts +70 -0
- package/dist/ai/provider.d.ts.map +1 -0
- package/dist/ai/provider.js +31 -0
- package/dist/ai/provider.js.map +1 -0
- package/dist/ai/subagent-caller.d.ts +90 -0
- package/dist/ai/subagent-caller.d.ts.map +1 -0
- package/dist/ai/subagent-caller.js +280 -0
- package/dist/ai/subagent-caller.js.map +1 -0
- package/dist/ai/types.d.ts +70 -0
- package/dist/ai/types.d.ts.map +1 -0
- package/dist/ai/types.js +5 -0
- package/dist/ai/types.js.map +1 -0
- package/dist/cache/file-hash-cache.d.ts +76 -0
- package/dist/cache/file-hash-cache.d.ts.map +1 -0
- package/dist/cache/file-hash-cache.js +159 -0
- package/dist/cache/file-hash-cache.js.map +1 -0
- package/dist/cache/index.d.ts +151 -0
- package/dist/cache/index.d.ts.map +1 -0
- package/dist/cache/index.js +303 -0
- package/dist/cache/index.js.map +1 -0
- package/dist/cache/lru-cache.d.ts +93 -0
- package/dist/cache/lru-cache.d.ts.map +1 -0
- package/dist/cache/lru-cache.js +194 -0
- package/dist/cache/lru-cache.js.map +1 -0
- package/dist/cache/parse-cache.d.ts +68 -0
- package/dist/cache/parse-cache.d.ts.map +1 -0
- package/dist/cache/parse-cache.js +173 -0
- package/dist/cache/parse-cache.js.map +1 -0
- package/dist/cli/commands/analyze.d.ts +96 -0
- package/dist/cli/commands/analyze.d.ts.map +1 -0
- package/dist/cli/commands/analyze.js +567 -0
- package/dist/cli/commands/analyze.js.map +1 -0
- package/dist/cli/commands/ci.d.ts +25 -0
- package/dist/cli/commands/ci.d.ts.map +1 -0
- package/dist/cli/commands/ci.js +481 -0
- package/dist/cli/commands/ci.js.map +1 -0
- package/dist/cli/commands/complexity.d.ts +70 -0
- package/dist/cli/commands/complexity.d.ts.map +1 -0
- package/dist/cli/commands/complexity.js +479 -0
- package/dist/cli/commands/complexity.js.map +1 -0
- package/dist/cli/commands/cycles.d.ts +10 -0
- package/dist/cli/commands/cycles.d.ts.map +1 -0
- package/dist/cli/commands/cycles.js +202 -0
- package/dist/cli/commands/cycles.js.map +1 -0
- package/dist/cli/commands/deps.d.ts +61 -0
- package/dist/cli/commands/deps.d.ts.map +1 -0
- package/dist/cli/commands/deps.js +340 -0
- package/dist/cli/commands/deps.js.map +1 -0
- package/dist/cli/commands/generate.d.ts +8 -0
- package/dist/cli/commands/generate.d.ts.map +1 -0
- package/dist/cli/commands/generate.js +61 -0
- package/dist/cli/commands/generate.js.map +1 -0
- package/dist/cli/commands/impact.d.ts +55 -0
- package/dist/cli/commands/impact.d.ts.map +1 -0
- package/dist/cli/commands/impact.js +455 -0
- package/dist/cli/commands/impact.js.map +1 -0
- package/dist/cli/commands/init.d.ts +4 -0
- package/dist/cli/commands/init.d.ts.map +1 -0
- package/dist/cli/commands/init.js +50 -0
- package/dist/cli/commands/init.js.map +1 -0
- package/dist/cli/commands/query.d.ts +22 -0
- package/dist/cli/commands/query.d.ts.map +1 -0
- package/dist/cli/commands/query.js +718 -0
- package/dist/cli/commands/query.js.map +1 -0
- package/dist/cli/commands/watch-foreground.d.ts +9 -0
- package/dist/cli/commands/watch-foreground.d.ts.map +1 -0
- package/dist/cli/commands/watch-foreground.js +67 -0
- package/dist/cli/commands/watch-foreground.js.map +1 -0
- package/dist/cli/commands/watch.d.ts +12 -0
- package/dist/cli/commands/watch.d.ts.map +1 -0
- package/dist/cli/commands/watch.js +114 -0
- package/dist/cli/commands/watch.js.map +1 -0
- package/dist/cli/commands/workflow.d.ts +25 -0
- package/dist/cli/commands/workflow.d.ts.map +1 -0
- package/dist/cli/commands/workflow.js +488 -0
- package/dist/cli/commands/workflow.js.map +1 -0
- package/dist/cli/index.d.ts +3 -0
- package/dist/cli/index.d.ts.map +1 -0
- package/dist/cli/index.js +115 -0
- package/dist/cli/index.js.map +1 -0
- package/dist/cli/paths.d.ts +90 -0
- package/dist/cli/paths.d.ts.map +1 -0
- package/dist/cli/paths.js +136 -0
- package/dist/cli/paths.js.map +1 -0
- package/dist/cli/runtime-logger.d.ts +13 -0
- package/dist/cli/runtime-logger.d.ts.map +1 -0
- package/dist/cli/runtime-logger.js +213 -0
- package/dist/cli/runtime-logger.js.map +1 -0
- package/dist/core/analyzer.d.ts +3 -0
- package/dist/core/analyzer.d.ts.map +1 -0
- package/dist/core/analyzer.js +359 -0
- package/dist/core/analyzer.js.map +1 -0
- package/dist/core/ast-complexity-analyzer.d.ts +40 -0
- package/dist/core/ast-complexity-analyzer.d.ts.map +1 -0
- package/dist/core/ast-complexity-analyzer.js +279 -0
- package/dist/core/ast-complexity-analyzer.js.map +1 -0
- package/dist/core/global-index.d.ts +69 -0
- package/dist/core/global-index.d.ts.map +1 -0
- package/dist/core/global-index.js +388 -0
- package/dist/core/global-index.js.map +1 -0
- package/dist/generator/ai-overview.d.ts +51 -0
- package/dist/generator/ai-overview.d.ts.map +1 -0
- package/dist/generator/ai-overview.js +160 -0
- package/dist/generator/ai-overview.js.map +1 -0
- package/dist/generator/context.d.ts +5 -0
- package/dist/generator/context.d.ts.map +1 -0
- package/dist/generator/context.js +514 -0
- package/dist/generator/context.js.map +1 -0
- package/dist/generator/file-describer.d.ts +93 -0
- package/dist/generator/file-describer.d.ts.map +1 -0
- package/dist/generator/file-describer.js +375 -0
- package/dist/generator/file-describer.js.map +1 -0
- package/dist/generator/index.d.ts +8 -0
- package/dist/generator/index.d.ts.map +1 -0
- package/dist/generator/index.js +259 -0
- package/dist/generator/index.js.map +1 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +6 -0
- package/dist/index.js.map +1 -0
- package/dist/orchestrator/adapters/ast-grep-adapter.d.ts +75 -0
- package/dist/orchestrator/adapters/ast-grep-adapter.d.ts.map +1 -0
- package/dist/orchestrator/adapters/ast-grep-adapter.js +242 -0
- package/dist/orchestrator/adapters/ast-grep-adapter.js.map +1 -0
- package/dist/orchestrator/adapters/base-adapter.d.ts +24 -0
- package/dist/orchestrator/adapters/base-adapter.d.ts.map +1 -0
- package/dist/orchestrator/adapters/base-adapter.js +2 -0
- package/dist/orchestrator/adapters/base-adapter.js.map +1 -0
- package/dist/orchestrator/adapters/codemap-adapter.d.ts +56 -0
- package/dist/orchestrator/adapters/codemap-adapter.d.ts.map +1 -0
- package/dist/orchestrator/adapters/codemap-adapter.js +163 -0
- package/dist/orchestrator/adapters/codemap-adapter.js.map +1 -0
- package/dist/orchestrator/adapters/index.d.ts +10 -0
- package/dist/orchestrator/adapters/index.d.ts.map +1 -0
- package/dist/orchestrator/adapters/index.js +3 -0
- package/dist/orchestrator/adapters/index.js.map +1 -0
- package/dist/orchestrator/ai-feed-generator.d.ts +210 -0
- package/dist/orchestrator/ai-feed-generator.d.ts.map +1 -0
- package/dist/orchestrator/ai-feed-generator.js +377 -0
- package/dist/orchestrator/ai-feed-generator.js.map +1 -0
- package/dist/orchestrator/commit-validator.d.ts +30 -0
- package/dist/orchestrator/commit-validator.d.ts.map +1 -0
- package/dist/orchestrator/commit-validator.js +87 -0
- package/dist/orchestrator/commit-validator.js.map +1 -0
- package/dist/orchestrator/confidence.d.ts +25 -0
- package/dist/orchestrator/confidence.d.ts.map +1 -0
- package/dist/orchestrator/confidence.js +138 -0
- package/dist/orchestrator/confidence.js.map +1 -0
- package/dist/orchestrator/file-header-scanner.d.ts +48 -0
- package/dist/orchestrator/file-header-scanner.d.ts.map +1 -0
- package/dist/orchestrator/file-header-scanner.js +158 -0
- package/dist/orchestrator/file-header-scanner.js.map +1 -0
- package/dist/orchestrator/git-analyzer.d.ts +192 -0
- package/dist/orchestrator/git-analyzer.d.ts.map +1 -0
- package/dist/orchestrator/git-analyzer.js +539 -0
- package/dist/orchestrator/git-analyzer.js.map +1 -0
- package/dist/orchestrator/index.d.ts +20 -0
- package/dist/orchestrator/index.d.ts.map +1 -0
- package/dist/orchestrator/index.js +16 -0
- package/dist/orchestrator/index.js.map +1 -0
- package/dist/orchestrator/intent-router.d.ts +41 -0
- package/dist/orchestrator/intent-router.d.ts.map +1 -0
- package/dist/orchestrator/intent-router.js +98 -0
- package/dist/orchestrator/intent-router.js.map +1 -0
- package/dist/orchestrator/result-fusion.d.ts +114 -0
- package/dist/orchestrator/result-fusion.d.ts.map +1 -0
- package/dist/orchestrator/result-fusion.js +332 -0
- package/dist/orchestrator/result-fusion.js.map +1 -0
- package/dist/orchestrator/test-linker.d.ts +166 -0
- package/dist/orchestrator/test-linker.d.ts.map +1 -0
- package/dist/orchestrator/test-linker.js +570 -0
- package/dist/orchestrator/test-linker.js.map +1 -0
- package/dist/orchestrator/tool-orchestrator.d.ts +108 -0
- package/dist/orchestrator/tool-orchestrator.d.ts.map +1 -0
- package/dist/orchestrator/tool-orchestrator.js +247 -0
- package/dist/orchestrator/tool-orchestrator.js.map +1 -0
- package/dist/orchestrator/types.d.ts +162 -0
- package/dist/orchestrator/types.d.ts.map +1 -0
- package/dist/orchestrator/types.js +39 -0
- package/dist/orchestrator/types.js.map +1 -0
- package/dist/orchestrator/workflow/ci-executor.d.ts +157 -0
- package/dist/orchestrator/workflow/ci-executor.d.ts.map +1 -0
- package/dist/orchestrator/workflow/ci-executor.js +423 -0
- package/dist/orchestrator/workflow/ci-executor.js.map +1 -0
- package/dist/orchestrator/workflow/config.d.ts +97 -0
- package/dist/orchestrator/workflow/config.d.ts.map +1 -0
- package/dist/orchestrator/workflow/config.js +115 -0
- package/dist/orchestrator/workflow/config.js.map +1 -0
- package/dist/orchestrator/workflow/git-analyzer.d.ts +173 -0
- package/dist/orchestrator/workflow/git-analyzer.d.ts.map +1 -0
- package/dist/orchestrator/workflow/git-analyzer.js +473 -0
- package/dist/orchestrator/workflow/git-analyzer.js.map +1 -0
- package/dist/orchestrator/workflow/index.d.ts +21 -0
- package/dist/orchestrator/workflow/index.d.ts.map +1 -0
- package/dist/orchestrator/workflow/index.js +21 -0
- package/dist/orchestrator/workflow/index.js.map +1 -0
- package/dist/orchestrator/workflow/phase-checkpoint.d.ts +38 -0
- package/dist/orchestrator/workflow/phase-checkpoint.d.ts.map +1 -0
- package/dist/orchestrator/workflow/phase-checkpoint.js +75 -0
- package/dist/orchestrator/workflow/phase-checkpoint.js.map +1 -0
- package/dist/orchestrator/workflow/phase-inheritance.d.ts +128 -0
- package/dist/orchestrator/workflow/phase-inheritance.d.ts.map +1 -0
- package/dist/orchestrator/workflow/phase-inheritance.js +266 -0
- package/dist/orchestrator/workflow/phase-inheritance.js.map +1 -0
- package/dist/orchestrator/workflow/result-fusion.d.ts +117 -0
- package/dist/orchestrator/workflow/result-fusion.d.ts.map +1 -0
- package/dist/orchestrator/workflow/result-fusion.js +246 -0
- package/dist/orchestrator/workflow/result-fusion.js.map +1 -0
- package/dist/orchestrator/workflow/templates.d.ts +116 -0
- package/dist/orchestrator/workflow/templates.d.ts.map +1 -0
- package/dist/orchestrator/workflow/templates.js +546 -0
- package/dist/orchestrator/workflow/templates.js.map +1 -0
- package/dist/orchestrator/workflow/test-linker.d.ts +152 -0
- package/dist/orchestrator/workflow/test-linker.d.ts.map +1 -0
- package/dist/orchestrator/workflow/test-linker.js +342 -0
- package/dist/orchestrator/workflow/test-linker.js.map +1 -0
- package/dist/orchestrator/workflow/types.d.ts +202 -0
- package/dist/orchestrator/workflow/types.d.ts.map +1 -0
- package/dist/orchestrator/workflow/types.js +4 -0
- package/dist/orchestrator/workflow/types.js.map +1 -0
- package/dist/orchestrator/workflow/visualizer.d.ts +56 -0
- package/dist/orchestrator/workflow/visualizer.d.ts.map +1 -0
- package/dist/orchestrator/workflow/visualizer.js +300 -0
- package/dist/orchestrator/workflow/visualizer.js.map +1 -0
- package/dist/orchestrator/workflow/workflow-context.d.ts +50 -0
- package/dist/orchestrator/workflow/workflow-context.d.ts.map +1 -0
- package/dist/orchestrator/workflow/workflow-context.js +105 -0
- package/dist/orchestrator/workflow/workflow-context.js.map +1 -0
- package/dist/orchestrator/workflow/workflow-orchestrator.d.ts +126 -0
- package/dist/orchestrator/workflow/workflow-orchestrator.d.ts.map +1 -0
- package/dist/orchestrator/workflow/workflow-orchestrator.js +489 -0
- package/dist/orchestrator/workflow/workflow-orchestrator.js.map +1 -0
- package/dist/orchestrator/workflow/workflow-persistence.d.ts +38 -0
- package/dist/orchestrator/workflow/workflow-persistence.d.ts.map +1 -0
- package/dist/orchestrator/workflow/workflow-persistence.js +166 -0
- package/dist/orchestrator/workflow/workflow-persistence.js.map +1 -0
- package/dist/parser/implementations/fast-parser.d.ts +65 -0
- package/dist/parser/implementations/fast-parser.d.ts.map +1 -0
- package/dist/parser/implementations/fast-parser.js +299 -0
- package/dist/parser/implementations/fast-parser.js.map +1 -0
- package/dist/parser/implementations/smart-parser.d.ts +220 -0
- package/dist/parser/implementations/smart-parser.d.ts.map +1 -0
- package/dist/parser/implementations/smart-parser.js +1536 -0
- package/dist/parser/implementations/smart-parser.js.map +1 -0
- package/dist/parser/implementations/tree-sitter-parser.d.ts +57 -0
- package/dist/parser/implementations/tree-sitter-parser.d.ts.map +1 -0
- package/dist/parser/implementations/tree-sitter-parser.js +375 -0
- package/dist/parser/implementations/tree-sitter-parser.js.map +1 -0
- package/dist/parser/index.d.ts +19 -0
- package/dist/parser/index.d.ts.map +1 -0
- package/dist/parser/index.js +449 -0
- package/dist/parser/index.js.map +1 -0
- package/dist/parser/interfaces/IParser.d.ts +218 -0
- package/dist/parser/interfaces/IParser.d.ts.map +1 -0
- package/dist/parser/interfaces/IParser.js +22 -0
- package/dist/parser/interfaces/IParser.js.map +1 -0
- package/dist/plugins/built-in/call-graph.d.ts +38 -0
- package/dist/plugins/built-in/call-graph.d.ts.map +1 -0
- package/dist/plugins/built-in/call-graph.js +135 -0
- package/dist/plugins/built-in/call-graph.js.map +1 -0
- package/dist/plugins/built-in/complexity-analyzer.d.ts +45 -0
- package/dist/plugins/built-in/complexity-analyzer.d.ts.map +1 -0
- package/dist/plugins/built-in/complexity-analyzer.js +155 -0
- package/dist/plugins/built-in/complexity-analyzer.js.map +1 -0
- package/dist/plugins/index.d.ts +34 -0
- package/dist/plugins/index.d.ts.map +1 -0
- package/dist/plugins/index.js +103 -0
- package/dist/plugins/index.js.map +1 -0
- package/dist/plugins/plugin-loader.d.ts +22 -0
- package/dist/plugins/plugin-loader.d.ts.map +1 -0
- package/dist/plugins/plugin-loader.js +200 -0
- package/dist/plugins/plugin-loader.js.map +1 -0
- package/dist/plugins/plugin-registry.d.ts +20 -0
- package/dist/plugins/plugin-registry.d.ts.map +1 -0
- package/dist/plugins/plugin-registry.js +143 -0
- package/dist/plugins/plugin-registry.js.map +1 -0
- package/dist/plugins/types.d.ts +72 -0
- package/dist/plugins/types.d.ts.map +1 -0
- package/dist/plugins/types.js +5 -0
- package/dist/plugins/types.js.map +1 -0
- package/dist/types/index.d.ts +373 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/index.js +7 -0
- package/dist/types/index.js.map +1 -0
- package/dist/watcher/daemon.d.ts +64 -0
- package/dist/watcher/daemon.d.ts.map +1 -0
- package/dist/watcher/daemon.js +189 -0
- package/dist/watcher/daemon.js.map +1 -0
- package/dist/watcher/file-watcher.d.ts +70 -0
- package/dist/watcher/file-watcher.d.ts.map +1 -0
- package/dist/watcher/file-watcher.js +127 -0
- package/dist/watcher/file-watcher.js.map +1 -0
- package/dist/watcher/index.d.ts +5 -0
- package/dist/watcher/index.d.ts.map +1 -0
- package/dist/watcher/index.js +6 -0
- package/dist/watcher/index.js.map +1 -0
- package/dist/watcher/watch-worker.d.ts +2 -0
- package/dist/watcher/watch-worker.d.ts.map +1 -0
- package/dist/watcher/watch-worker.js +57 -0
- package/dist/watcher/watch-worker.js.map +1 -0
- package/dist/worker/index.d.ts +76 -0
- package/dist/worker/index.d.ts.map +1 -0
- package/dist/worker/index.js +155 -0
- package/dist/worker/index.js.map +1 -0
- package/dist/worker/parse-worker.d.ts +2 -0
- package/dist/worker/parse-worker.d.ts.map +1 -0
- package/dist/worker/parse-worker.js +202 -0
- package/dist/worker/parse-worker.js.map +1 -0
- package/mycodemap.config.schema.json +42 -0
- package/package.json +69 -0
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* [META] since:2026-03 | owner:codemap-team | stable:false
|
|
3
|
+
* [WHY] @version 2.5
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* 工作流测试关联器
|
|
7
|
+
* 根据工作流阶段提供测试建议
|
|
8
|
+
*
|
|
9
|
+
* @module WorkflowTestLinker
|
|
10
|
+
* @version 2.5
|
|
11
|
+
*
|
|
12
|
+
* 设计参考: REFACTOR_TEST_LINKER_DESIGN.md §7.2
|
|
13
|
+
*/
|
|
14
|
+
import type { WorkflowPhase } from './types.js';
|
|
15
|
+
import type { UnifiedResult } from '../types.js';
|
|
16
|
+
/**
|
|
17
|
+
* 测试策略
|
|
18
|
+
*/
|
|
19
|
+
export interface TestStrategy {
|
|
20
|
+
/** 策略模式 */
|
|
21
|
+
mode: TestMode;
|
|
22
|
+
/** 包含模式 */
|
|
23
|
+
includePatterns: string[];
|
|
24
|
+
/** 排除模式 */
|
|
25
|
+
excludePatterns: string[];
|
|
26
|
+
/** 优先级(可选) */
|
|
27
|
+
priority?: TestPriority;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* 测试模式
|
|
31
|
+
*/
|
|
32
|
+
export type TestMode = 'find-similar' | 'find-affected' | 'focus-high-risk' | 'required-tests' | 'verify' | 'full-suite';
|
|
33
|
+
/**
|
|
34
|
+
* 测试优先级
|
|
35
|
+
*/
|
|
36
|
+
export type TestPriority = 'high-risk-first' | 'relevance-first' | 'recent-first';
|
|
37
|
+
/**
|
|
38
|
+
* 测试建议
|
|
39
|
+
*/
|
|
40
|
+
export interface TestSuggestion {
|
|
41
|
+
/** 测试文件路径 */
|
|
42
|
+
file: string;
|
|
43
|
+
/** 相关度分数 */
|
|
44
|
+
relevance: number;
|
|
45
|
+
/** 建议动作 */
|
|
46
|
+
action: string;
|
|
47
|
+
/** 优先级 */
|
|
48
|
+
priority: 'high' | 'medium' | 'low';
|
|
49
|
+
/** 关联的源文件 */
|
|
50
|
+
sourceFiles: string[];
|
|
51
|
+
/** 风险等级(如适用) */
|
|
52
|
+
riskLevel?: 'high' | 'medium' | 'low';
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* 测试配置
|
|
56
|
+
*/
|
|
57
|
+
export interface TestConfig {
|
|
58
|
+
/** 测试框架 */
|
|
59
|
+
framework: 'jest' | 'vitest' | 'none';
|
|
60
|
+
/** 测试模式 */
|
|
61
|
+
patterns: {
|
|
62
|
+
testFile: string[];
|
|
63
|
+
testDir: string[];
|
|
64
|
+
};
|
|
65
|
+
/** 源文件到测试文件映射 */
|
|
66
|
+
sourceToTestMap: Map<string, string[]>;
|
|
67
|
+
}
|
|
68
|
+
export declare class WorkflowTestLinker {
|
|
69
|
+
private config;
|
|
70
|
+
private projectRoot;
|
|
71
|
+
constructor(projectRoot?: string);
|
|
72
|
+
/**
|
|
73
|
+
* 加载测试配置
|
|
74
|
+
* 自动检测 jest.config.js / vitest.config.ts
|
|
75
|
+
*/
|
|
76
|
+
loadConfig(): Promise<TestConfig>;
|
|
77
|
+
/**
|
|
78
|
+
* 根据当前工作流阶段生成测试建议
|
|
79
|
+
*
|
|
80
|
+
* @param phase - 当前工作流阶段
|
|
81
|
+
* @param sourceFiles - 源文件列表
|
|
82
|
+
* @param analysisResults - 分析结果(用于风险分析)
|
|
83
|
+
* @returns 测试建议列表
|
|
84
|
+
*/
|
|
85
|
+
getTestSuggestions(phase: WorkflowPhase, sourceFiles: string[], analysisResults?: UnifiedResult[]): Promise<TestSuggestion[]>;
|
|
86
|
+
/**
|
|
87
|
+
* 查找相关测试文件
|
|
88
|
+
*/
|
|
89
|
+
private findRelatedTests;
|
|
90
|
+
/**
|
|
91
|
+
* 从源文件名推断测试文件
|
|
92
|
+
*/
|
|
93
|
+
private inferTestFiles;
|
|
94
|
+
/**
|
|
95
|
+
* 查找目录级别的测试文件
|
|
96
|
+
*/
|
|
97
|
+
private findDirLevelTests;
|
|
98
|
+
/**
|
|
99
|
+
* 计算测试文件的相关度
|
|
100
|
+
*/
|
|
101
|
+
private calculateRelevance;
|
|
102
|
+
/**
|
|
103
|
+
* 获取建议动作
|
|
104
|
+
*/
|
|
105
|
+
private getSuggestedAction;
|
|
106
|
+
/**
|
|
107
|
+
* 获取测试优先级
|
|
108
|
+
*/
|
|
109
|
+
private getPriority;
|
|
110
|
+
/**
|
|
111
|
+
* 获取测试关联的源文件
|
|
112
|
+
*/
|
|
113
|
+
private getSourceFilesForTest;
|
|
114
|
+
/**
|
|
115
|
+
* 获取测试的风险等级
|
|
116
|
+
*/
|
|
117
|
+
private getRiskLevel;
|
|
118
|
+
/**
|
|
119
|
+
* 检查文件是否存在
|
|
120
|
+
*/
|
|
121
|
+
private pathExists;
|
|
122
|
+
/**
|
|
123
|
+
* 解析 Vitest 配置
|
|
124
|
+
*/
|
|
125
|
+
private parseVitestConfig;
|
|
126
|
+
/**
|
|
127
|
+
* 解析 Jest 配置
|
|
128
|
+
*/
|
|
129
|
+
private parseJestConfig;
|
|
130
|
+
/**
|
|
131
|
+
* 构建源文件到测试文件的映射
|
|
132
|
+
*/
|
|
133
|
+
buildMapping(sourceFiles: string[]): Promise<void>;
|
|
134
|
+
/**
|
|
135
|
+
* 获取当前阶段的测试策略
|
|
136
|
+
*/
|
|
137
|
+
getPhaseStrategy(phase: WorkflowPhase): TestStrategy;
|
|
138
|
+
/**
|
|
139
|
+
* 获取所有阶段的测试策略
|
|
140
|
+
*/
|
|
141
|
+
getAllStrategies(): Record<WorkflowPhase, TestStrategy>;
|
|
142
|
+
}
|
|
143
|
+
/**
|
|
144
|
+
* 创建工作流测试关联器实例
|
|
145
|
+
*/
|
|
146
|
+
export declare function createWorkflowTestLinker(projectRoot?: string): WorkflowTestLinker;
|
|
147
|
+
/**
|
|
148
|
+
* 快速获取测试建议(便捷函数)
|
|
149
|
+
*/
|
|
150
|
+
export declare function getTestSuggestions(phase: WorkflowPhase, sourceFiles: string[], projectRoot?: string, analysisResults?: UnifiedResult[]): Promise<TestSuggestion[]>;
|
|
151
|
+
export default WorkflowTestLinker;
|
|
152
|
+
//# sourceMappingURL=test-linker.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"test-linker.d.ts","sourceRoot":"","sources":["../../../src/orchestrator/workflow/test-linker.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAChD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAMjD;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,WAAW;IACX,IAAI,EAAE,QAAQ,CAAC;IACf,WAAW;IACX,eAAe,EAAE,MAAM,EAAE,CAAC;IAC1B,WAAW;IACX,eAAe,EAAE,MAAM,EAAE,CAAC;IAC1B,cAAc;IACd,QAAQ,CAAC,EAAE,YAAY,CAAC;CACzB;AAED;;GAEG;AACH,MAAM,MAAM,QAAQ,GAChB,cAAc,GACd,eAAe,GACf,iBAAiB,GACjB,gBAAgB,GAChB,QAAQ,GACR,YAAY,CAAC;AAEjB;;GAE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AkB;IAa1B;;OAEG;IACH,OAAO,CAAC,WAAW;IA0BnB;;OAEG;IACH,OAAO,CAAC,qBAAqB;IAW7B;;OAEG;IACH,OAAO,CAAC,YAAY;IAUpB;;OAEG;YACW,UAAU;IAUxB;;OAEG;YACW,iBAAiB;IAa/B;;OAEG;YACW,eAAe;IAY7B;;OAEG;IACG,YAAY,CAAC,WAAW,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC;IAgBxD;;OAEG;IACH,gBAAgB,CAAC,KAAK,EAAE,aAAa,GAAG,YAAY;IAIpD;;OAEG;IACH,gBAAgB,IAAI,MAAM,CAAC,aAAa,EAAE,YAAY,CAAC;CAGxD;AAMD;;GAEG;AACH,wBAAgB,wBAAwB,CAAC,WAAW,CAAC,EAAE,MAAM,GAAG,kBAAkB,CAEjF;AAED;;GAEG;AACH,wBAAsB,kBAAkB,CACtC,KAAK,EAAE,aAAa,EACpB,WAAW,EAAE,MAAM,EAAE,EACrB,WAAW,CAAC,EAAE,MAAM,EACpB,eAAe,CAAC,EAAE,aAAa,EAAE,GAChC,OAAO,CAAC,cAAc,EAAE,CAAC,CAG3B;AAED,eAAe,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,342 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* [META] since:2026-03 | owner:codemap-team | stable:false
|
|
3
|
+
* [WHY] @version 2.5
|
|
4
|
+
*/
|
|
5
|
+
// ============================================
|
|
6
|
+
// 阶段测试策略配置
|
|
7
|
+
// ============================================
|
|
8
|
+
/**
|
|
9
|
+
* 工作流阶段与测试策略的映射
|
|
10
|
+
* 定义每个阶段应该采用什么样的测试策略
|
|
11
|
+
*/
|
|
12
|
+
const PHASE_TEST_STRATEGY = {
|
|
13
|
+
'reference': {
|
|
14
|
+
mode: 'find-similar',
|
|
15
|
+
includePatterns: ['**/*.test.ts', '**/*.spec.ts'],
|
|
16
|
+
excludePatterns: [],
|
|
17
|
+
},
|
|
18
|
+
'impact': {
|
|
19
|
+
mode: 'find-affected',
|
|
20
|
+
includePatterns: ['**/*.test.ts', '**/*.spec.ts'],
|
|
21
|
+
excludePatterns: [],
|
|
22
|
+
},
|
|
23
|
+
'risk': {
|
|
24
|
+
mode: 'focus-high-risk',
|
|
25
|
+
includePatterns: ['**/*.test.ts'],
|
|
26
|
+
excludePatterns: [],
|
|
27
|
+
priority: 'high-risk-first',
|
|
28
|
+
},
|
|
29
|
+
'implementation': {
|
|
30
|
+
mode: 'required-tests',
|
|
31
|
+
includePatterns: ['**/*.test.ts', '**/*.spec.ts'],
|
|
32
|
+
excludePatterns: [],
|
|
33
|
+
},
|
|
34
|
+
'commit': {
|
|
35
|
+
mode: 'verify',
|
|
36
|
+
includePatterns: ['**/*.test.ts', '**/*.spec.ts'],
|
|
37
|
+
excludePatterns: [],
|
|
38
|
+
},
|
|
39
|
+
'ci': {
|
|
40
|
+
mode: 'full-suite',
|
|
41
|
+
includePatterns: ['**/*.test.ts', '**/*.spec.ts', '**/*.test.js'],
|
|
42
|
+
excludePatterns: [],
|
|
43
|
+
},
|
|
44
|
+
};
|
|
45
|
+
// ============================================
|
|
46
|
+
// WorkflowTestLinker 类
|
|
47
|
+
// ============================================
|
|
48
|
+
export class WorkflowTestLinker {
|
|
49
|
+
config = null;
|
|
50
|
+
projectRoot;
|
|
51
|
+
constructor(projectRoot = process.cwd()) {
|
|
52
|
+
this.projectRoot = projectRoot;
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* 加载测试配置
|
|
56
|
+
* 自动检测 jest.config.js / vitest.config.ts
|
|
57
|
+
*/
|
|
58
|
+
async loadConfig() {
|
|
59
|
+
const fsPromises = await import('fs').then(m => m.promises);
|
|
60
|
+
const path = await import('path');
|
|
61
|
+
// 1. 尝试读取 vitest.config.ts
|
|
62
|
+
const vitestPath = path.join(this.projectRoot, 'vitest.config.ts');
|
|
63
|
+
if (await this.pathExists(vitestPath)) {
|
|
64
|
+
this.config = await this.parseVitestConfig(vitestPath);
|
|
65
|
+
return this.config;
|
|
66
|
+
}
|
|
67
|
+
// 2. 尝试读取 jest.config.js
|
|
68
|
+
const jestPath = path.join(this.projectRoot, 'jest.config.js');
|
|
69
|
+
if (await this.pathExists(jestPath)) {
|
|
70
|
+
this.config = await this.parseJestConfig(jestPath);
|
|
71
|
+
return this.config;
|
|
72
|
+
}
|
|
73
|
+
// 3. 使用默认配置 (Vitest)
|
|
74
|
+
this.config = {
|
|
75
|
+
framework: 'vitest',
|
|
76
|
+
patterns: {
|
|
77
|
+
testFile: ['**/*.test.ts', '**/*.spec.ts'],
|
|
78
|
+
testDir: ['__tests__', 'test', 'tests'],
|
|
79
|
+
},
|
|
80
|
+
sourceToTestMap: new Map(),
|
|
81
|
+
};
|
|
82
|
+
return this.config;
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* 根据当前工作流阶段生成测试建议
|
|
86
|
+
*
|
|
87
|
+
* @param phase - 当前工作流阶段
|
|
88
|
+
* @param sourceFiles - 源文件列表
|
|
89
|
+
* @param analysisResults - 分析结果(用于风险分析)
|
|
90
|
+
* @returns 测试建议列表
|
|
91
|
+
*/
|
|
92
|
+
async getTestSuggestions(phase, sourceFiles, analysisResults) {
|
|
93
|
+
// 确保配置已加载
|
|
94
|
+
if (!this.config) {
|
|
95
|
+
await this.loadConfig();
|
|
96
|
+
}
|
|
97
|
+
const strategy = PHASE_TEST_STRATEGY[phase];
|
|
98
|
+
const testFiles = await this.findRelatedTests(sourceFiles, strategy);
|
|
99
|
+
return testFiles.map((testFile) => ({
|
|
100
|
+
file: testFile,
|
|
101
|
+
relevance: this.calculateRelevance(testFile, sourceFiles),
|
|
102
|
+
action: this.getSuggestedAction(phase, testFile),
|
|
103
|
+
priority: this.getPriority(phase, testFile, analysisResults),
|
|
104
|
+
sourceFiles: this.getSourceFilesForTest(testFile, sourceFiles),
|
|
105
|
+
riskLevel: this.getRiskLevel(testFile, analysisResults),
|
|
106
|
+
}));
|
|
107
|
+
}
|
|
108
|
+
/**
|
|
109
|
+
* 查找相关测试文件
|
|
110
|
+
*/
|
|
111
|
+
async findRelatedTests(sourceFiles, strategy) {
|
|
112
|
+
if (!this.config)
|
|
113
|
+
return [];
|
|
114
|
+
const relatedTests = new Set();
|
|
115
|
+
for (const sourceFile of sourceFiles) {
|
|
116
|
+
// 1. 直接映射查找
|
|
117
|
+
const directTests = this.config.sourceToTestMap.get(sourceFile) || [];
|
|
118
|
+
directTests.forEach((t) => relatedTests.add(t));
|
|
119
|
+
// 2. 文件名推断
|
|
120
|
+
const inferredTests = this.inferTestFiles(sourceFile);
|
|
121
|
+
inferredTests.forEach((t) => relatedTests.add(t));
|
|
122
|
+
// 3. 目录级别匹配
|
|
123
|
+
const dirTests = await this.findDirLevelTests(sourceFile);
|
|
124
|
+
dirTests.forEach((t) => relatedTests.add(t));
|
|
125
|
+
}
|
|
126
|
+
return Array.from(relatedTests);
|
|
127
|
+
}
|
|
128
|
+
/**
|
|
129
|
+
* 从源文件名推断测试文件
|
|
130
|
+
*/
|
|
131
|
+
inferTestFiles(sourceFile) {
|
|
132
|
+
if (!this.config)
|
|
133
|
+
return [];
|
|
134
|
+
const tests = [];
|
|
135
|
+
const normalized = sourceFile.replace(/\\/g, '/');
|
|
136
|
+
// 移除 .ts 后缀,添加测试后缀
|
|
137
|
+
const basePath = normalized.replace(/\.ts$/, '');
|
|
138
|
+
for (const pattern of this.config.patterns.testFile) {
|
|
139
|
+
if (pattern.includes('.test.')) {
|
|
140
|
+
tests.push(`${basePath}.test.ts`);
|
|
141
|
+
}
|
|
142
|
+
if (pattern.includes('.spec.')) {
|
|
143
|
+
tests.push(`${basePath}.spec.ts`);
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
return tests;
|
|
147
|
+
}
|
|
148
|
+
/**
|
|
149
|
+
* 查找目录级别的测试文件
|
|
150
|
+
*/
|
|
151
|
+
async findDirLevelTests(sourceFile) {
|
|
152
|
+
if (!this.config)
|
|
153
|
+
return [];
|
|
154
|
+
const fs = await import('fs');
|
|
155
|
+
const path = await import('path');
|
|
156
|
+
const tests = [];
|
|
157
|
+
const normalized = sourceFile.replace(/\\/g, '/');
|
|
158
|
+
const dir = path.dirname(normalized);
|
|
159
|
+
for (const testDir of this.config.patterns.testDir) {
|
|
160
|
+
const testDirPath = path.join(dir, testDir);
|
|
161
|
+
try {
|
|
162
|
+
if (fs.existsSync(testDirPath)) {
|
|
163
|
+
const files = fs.readdirSync(testDirPath);
|
|
164
|
+
for (const file of files) {
|
|
165
|
+
if (file.endsWith('.test.ts') || file.endsWith('.spec.ts')) {
|
|
166
|
+
tests.push(path.join(testDirPath, file));
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
catch {
|
|
172
|
+
// 目录不存在或无法读取,跳过
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
return tests;
|
|
176
|
+
}
|
|
177
|
+
/**
|
|
178
|
+
* 计算测试文件的相关度
|
|
179
|
+
*/
|
|
180
|
+
calculateRelevance(testFile, sourceFiles) {
|
|
181
|
+
let relevance = 0.5; // 基础相关度
|
|
182
|
+
const normalizedTest = testFile.replace(/\\/g, '/');
|
|
183
|
+
for (const sourceFile of sourceFiles) {
|
|
184
|
+
const normalizedSource = sourceFile.replace(/\\/g, '/');
|
|
185
|
+
const sourceBase = normalizedSource.replace(/\.ts$/, '').split('/').pop();
|
|
186
|
+
const testBase = normalizedTest.replace(/\.(test|spec)\.ts$/, '').split('/').pop();
|
|
187
|
+
// 文件名匹配度
|
|
188
|
+
if (sourceBase && testBase && sourceBase === testBase) {
|
|
189
|
+
relevance += 0.3;
|
|
190
|
+
}
|
|
191
|
+
// 目录匹配度
|
|
192
|
+
const sourceDir = normalizedSource.split('/').slice(0, -1).join('/');
|
|
193
|
+
const testDir = normalizedTest.split('/').slice(0, -1).join('/');
|
|
194
|
+
if (sourceDir && testDir && testDir.includes(sourceDir)) {
|
|
195
|
+
relevance += 0.2;
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
return Math.min(1, relevance);
|
|
199
|
+
}
|
|
200
|
+
/**
|
|
201
|
+
* 获取建议动作
|
|
202
|
+
*/
|
|
203
|
+
getSuggestedAction(phase, testFile) {
|
|
204
|
+
const actions = {
|
|
205
|
+
'reference': '参考此测试的实现模式',
|
|
206
|
+
'impact': '修改后需运行此测试',
|
|
207
|
+
'risk': '重点关注此测试,确保通过',
|
|
208
|
+
'implementation': '实现完成后运行此测试',
|
|
209
|
+
'commit': '提交前确保此测试通过',
|
|
210
|
+
'ci': 'CI 会自动运行此测试',
|
|
211
|
+
};
|
|
212
|
+
return actions[phase] || '运行此测试';
|
|
213
|
+
}
|
|
214
|
+
/**
|
|
215
|
+
* 获取测试优先级
|
|
216
|
+
*/
|
|
217
|
+
getPriority(phase, testFile, analysisResults) {
|
|
218
|
+
if (phase === 'risk') {
|
|
219
|
+
// 风险阶段:基于分析结果判断
|
|
220
|
+
const riskResult = analysisResults?.find((r) => r.file === testFile || testFile.includes(r.file));
|
|
221
|
+
if (riskResult?.metadata?.riskLevel === 'high')
|
|
222
|
+
return 'high';
|
|
223
|
+
if (riskResult?.metadata?.riskLevel === 'medium')
|
|
224
|
+
return 'medium';
|
|
225
|
+
}
|
|
226
|
+
if (phase === 'implementation') {
|
|
227
|
+
return 'high';
|
|
228
|
+
}
|
|
229
|
+
// 根据文件名判断
|
|
230
|
+
if (testFile.includes('e2e') || testFile.includes('integration')) {
|
|
231
|
+
return 'medium';
|
|
232
|
+
}
|
|
233
|
+
return 'low';
|
|
234
|
+
}
|
|
235
|
+
/**
|
|
236
|
+
* 获取测试关联的源文件
|
|
237
|
+
*/
|
|
238
|
+
getSourceFilesForTest(testFile, sourceFiles) {
|
|
239
|
+
const normalizedTest = testFile.replace(/\\/g, '/');
|
|
240
|
+
const testBase = normalizedTest.replace(/\.(test|spec)\.ts$/, '');
|
|
241
|
+
return sourceFiles.filter((sourceFile) => {
|
|
242
|
+
const normalizedSource = sourceFile.replace(/\\/g, '/');
|
|
243
|
+
const sourceBase = normalizedSource.replace(/\.ts$/, '');
|
|
244
|
+
return testBase.includes(sourceBase) || sourceBase.includes(testBase);
|
|
245
|
+
});
|
|
246
|
+
}
|
|
247
|
+
/**
|
|
248
|
+
* 获取测试的风险等级
|
|
249
|
+
*/
|
|
250
|
+
getRiskLevel(testFile, analysisResults) {
|
|
251
|
+
const result = analysisResults?.find((r) => r.file === testFile || testFile.includes(r.file));
|
|
252
|
+
return result?.metadata?.riskLevel;
|
|
253
|
+
}
|
|
254
|
+
/**
|
|
255
|
+
* 检查文件是否存在
|
|
256
|
+
*/
|
|
257
|
+
async pathExists(filePath) {
|
|
258
|
+
const fsPromises = await import('fs').then((m) => m.promises);
|
|
259
|
+
try {
|
|
260
|
+
await fsPromises.access(filePath);
|
|
261
|
+
return true;
|
|
262
|
+
}
|
|
263
|
+
catch {
|
|
264
|
+
return false;
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
/**
|
|
268
|
+
* 解析 Vitest 配置
|
|
269
|
+
*/
|
|
270
|
+
async parseVitestConfig(configPath) {
|
|
271
|
+
// 简化实现:返回默认 Vitest 配置
|
|
272
|
+
// 实际项目中可以解析配置文件内容
|
|
273
|
+
return {
|
|
274
|
+
framework: 'vitest',
|
|
275
|
+
patterns: {
|
|
276
|
+
testFile: ['**/*.test.ts', '**/*.spec.ts'],
|
|
277
|
+
testDir: ['__tests__', 'test', 'tests'],
|
|
278
|
+
},
|
|
279
|
+
sourceToTestMap: new Map(),
|
|
280
|
+
};
|
|
281
|
+
}
|
|
282
|
+
/**
|
|
283
|
+
* 解析 Jest 配置
|
|
284
|
+
*/
|
|
285
|
+
async parseJestConfig(configPath) {
|
|
286
|
+
// 简化实现:返回默认 Jest 配置
|
|
287
|
+
return {
|
|
288
|
+
framework: 'jest',
|
|
289
|
+
patterns: {
|
|
290
|
+
testFile: ['**/*.test.ts', '**/*.spec.ts'],
|
|
291
|
+
testDir: ['__tests__', 'test', 'tests'],
|
|
292
|
+
},
|
|
293
|
+
sourceToTestMap: new Map(),
|
|
294
|
+
};
|
|
295
|
+
}
|
|
296
|
+
/**
|
|
297
|
+
* 构建源文件到测试文件的映射
|
|
298
|
+
*/
|
|
299
|
+
async buildMapping(sourceFiles) {
|
|
300
|
+
if (!this.config) {
|
|
301
|
+
await this.loadConfig();
|
|
302
|
+
}
|
|
303
|
+
for (const sourceFile of sourceFiles) {
|
|
304
|
+
const tests = await this.findRelatedTests([sourceFile], {
|
|
305
|
+
mode: 'find-affected',
|
|
306
|
+
includePatterns: this.config.patterns.testFile,
|
|
307
|
+
excludePatterns: [],
|
|
308
|
+
});
|
|
309
|
+
this.config.sourceToTestMap.set(sourceFile, tests);
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
/**
|
|
313
|
+
* 获取当前阶段的测试策略
|
|
314
|
+
*/
|
|
315
|
+
getPhaseStrategy(phase) {
|
|
316
|
+
return PHASE_TEST_STRATEGY[phase];
|
|
317
|
+
}
|
|
318
|
+
/**
|
|
319
|
+
* 获取所有阶段的测试策略
|
|
320
|
+
*/
|
|
321
|
+
getAllStrategies() {
|
|
322
|
+
return { ...PHASE_TEST_STRATEGY };
|
|
323
|
+
}
|
|
324
|
+
}
|
|
325
|
+
// ============================================
|
|
326
|
+
// 便捷函数
|
|
327
|
+
// ============================================
|
|
328
|
+
/**
|
|
329
|
+
* 创建工作流测试关联器实例
|
|
330
|
+
*/
|
|
331
|
+
export function createWorkflowTestLinker(projectRoot) {
|
|
332
|
+
return new WorkflowTestLinker(projectRoot);
|
|
333
|
+
}
|
|
334
|
+
/**
|
|
335
|
+
* 快速获取测试建议(便捷函数)
|
|
336
|
+
*/
|
|
337
|
+
export async function getTestSuggestions(phase, sourceFiles, projectRoot, analysisResults) {
|
|
338
|
+
const linker = createWorkflowTestLinker(projectRoot);
|
|
339
|
+
return linker.getTestSuggestions(phase, sourceFiles, analysisResults);
|
|
340
|
+
}
|
|
341
|
+
export default WorkflowTestLinker;
|
|
342
|
+
//# sourceMappingURL=test-linker.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"test-linker.js","sourceRoot":"","sources":["../../../src/orchestrator/workflow/test-linker.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAkFH,+CAA+C;AAC/C,WAAW;AACX,+CAA+C;AAE/C;;;GAGG;AACH,MAAM,mBAAmB,GAAwC;IAC/D,WAAW,EAAE;QACX,IAAI,EAAE,cAAc;QACpB,eAAe,EAAE,CAAC,cAAc,EAAE,cAAc,CAAC;QACjD,eAAe,EAAE,EAAE;KACpB;IACD,QAAQ,EAAE;QACR,IAAI,EAAE,eAAe;QACrB,eAAe,EAAE,CAAC,cAAc,EAAE,cAAc,CAAC;QACjD,eAAe,EAAE,EAAE;KACpB;IACD,MAAM,EAAE;QACN,IAAI,EAAE,iBAAiB;QACvB,eAAe,EAAE,CAAC,cAAc,CAAC;QACjC,eAAe,EAAE,EAAE;QACnB,QAAQ,EAAE,iBAAiB;KAC5B;IACD,gBAAgB,EAAE;QAChB,IAAI,EAAE,gBAAgB;QACtB,eAAe,EAAE,CAAC,cAAc,EAAE,cAAc,CAAC;QACjD,eAAe,EAAE,EAAE;KACpB;IACD,QAAQ,EAAE;QACR,IAAI,EAAE,QAAQ;QACd,eAAe,EAAE,CAAC,cAAc,EAAE,cAAc,CAAC;QACjD,eAAe,EAAE,EAAE;KACpB;IACD,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,eAAe,EAAE,CAAC,cAAc,EAAE,cAAc,EAAE,cAAc,CAAC;QACjE,eAAe,EAAE,EAAE;KACpB;CACF,CAAC;AAEF,+CAA+C;AAC/C,uBAAuB;AACvB,+CAA+C;AAE/C,MAAM,OAAO,kBAAkB;IACrB,MAAM,GAAsB,IAAI,CAAC;IACjC,WAAW,CAAS;IAE5B,YAAY,cAAsB,OAAO,CAAC,GAAG,EAAE;QAC7C,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;IACjC,CAAC;IAED;;;OAGG;IACH,K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