@su-record/vibe 2.5.11 → 2.5.13
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/CLAUDE.md +243 -0
- package/LICENSE +21 -21
- package/README.md +262 -262
- package/agents/architect-low.md +41 -41
- package/agents/architect-medium.md +59 -59
- package/agents/architect.md +80 -80
- package/agents/build-error-resolver.md +115 -115
- package/agents/compounder.md +261 -261
- package/agents/diagrammer.md +178 -178
- package/agents/e2e-tester.md +266 -266
- package/agents/explorer-low.md +42 -42
- package/agents/explorer-medium.md +59 -59
- package/agents/explorer.md +48 -48
- package/agents/implementer-low.md +43 -43
- package/agents/implementer-medium.md +52 -52
- package/agents/implementer.md +54 -54
- package/agents/refactor-cleaner.md +143 -143
- package/agents/research/best-practices-agent.md +189 -189
- package/agents/research/codebase-patterns-agent.md +147 -147
- package/agents/research/framework-docs-agent.md +178 -178
- package/agents/research/security-advisory-agent.md +203 -203
- package/agents/review/architecture-reviewer.md +107 -107
- package/agents/review/complexity-reviewer.md +116 -116
- package/agents/review/data-integrity-reviewer.md +88 -88
- package/agents/review/git-history-reviewer.md +103 -103
- package/agents/review/performance-reviewer.md +86 -86
- package/agents/review/python-reviewer.md +150 -150
- package/agents/review/rails-reviewer.md +139 -139
- package/agents/review/react-reviewer.md +144 -144
- package/agents/review/security-reviewer.md +80 -80
- package/agents/review/simplicity-reviewer.md +140 -140
- package/agents/review/test-coverage-reviewer.md +116 -116
- package/agents/review/typescript-reviewer.md +127 -127
- package/agents/searcher.md +54 -54
- package/agents/simplifier.md +120 -120
- package/agents/tester.md +49 -49
- package/agents/ui-previewer.md +129 -129
- package/commands/vibe.analyze.md +356 -356
- package/commands/vibe.reason.md +329 -329
- package/commands/vibe.review.md +326 -326
- package/commands/vibe.run.md +1117 -1051
- package/commands/vibe.spec.md +1058 -1058
- package/commands/vibe.utils.md +353 -296
- package/commands/vibe.verify.md +375 -375
- package/dist/cli/collaborator.js +52 -52
- package/dist/cli/detect.js +32 -32
- package/dist/cli/index.js +102 -102
- package/dist/cli/llm.js +144 -144
- package/dist/cli/mcp.d.ts +49 -0
- package/dist/cli/mcp.d.ts.map +1 -0
- package/dist/cli/mcp.js +169 -0
- package/dist/cli/mcp.js.map +1 -0
- package/dist/cli/postinstall.js +180 -2
- package/dist/cli/postinstall.js.map +1 -1
- package/dist/cli/setup/GlobalInstaller.d.ts +24 -0
- package/dist/cli/setup/GlobalInstaller.d.ts.map +1 -0
- package/dist/cli/setup/GlobalInstaller.js +130 -0
- package/dist/cli/setup/GlobalInstaller.js.map +1 -0
- package/dist/cli/setup/LanguageDetector.d.ts +16 -0
- package/dist/cli/setup/LanguageDetector.d.ts.map +1 -0
- package/dist/cli/setup/LanguageDetector.js +49 -0
- package/dist/cli/setup/LanguageDetector.js.map +1 -0
- package/dist/cli/setup/LegacyMigration.d.ts +25 -0
- package/dist/cli/setup/LegacyMigration.d.ts.map +1 -0
- package/dist/cli/setup/LegacyMigration.js +162 -0
- package/dist/cli/setup/LegacyMigration.js.map +1 -0
- package/dist/cli/setup/ProjectSetup.d.ts +30 -0
- package/dist/cli/setup/ProjectSetup.d.ts.map +1 -0
- package/dist/cli/setup/ProjectSetup.js +238 -0
- package/dist/cli/setup/ProjectSetup.js.map +1 -0
- package/dist/cli/setup/index.d.ts +14 -0
- package/dist/cli/setup/index.d.ts.map +1 -0
- package/dist/cli/setup/index.js +18 -0
- package/dist/cli/setup/index.js.map +1 -0
- package/dist/cli/setup.d.ts +10 -77
- package/dist/cli/setup.d.ts.map +1 -1
- package/dist/cli/setup.js +15 -592
- package/dist/cli/setup.js.map +1 -1
- package/dist/lib/DeepInit.d.ts +0 -2
- package/dist/lib/DeepInit.d.ts.map +1 -1
- package/dist/lib/DeepInit.js +24 -26
- package/dist/lib/DeepInit.js.map +1 -1
- package/dist/lib/IterationTracker.d.ts +0 -2
- package/dist/lib/IterationTracker.d.ts.map +1 -1
- package/dist/lib/IterationTracker.js +11 -13
- package/dist/lib/IterationTracker.js.map +1 -1
- package/dist/lib/ModelRouter.d.ts +0 -2
- package/dist/lib/ModelRouter.d.ts.map +1 -1
- package/dist/lib/ModelRouter.js +0 -2
- package/dist/lib/ModelRouter.js.map +1 -1
- package/dist/lib/OrchestrateWorkflow.d.ts +1 -3
- package/dist/lib/OrchestrateWorkflow.d.ts.map +1 -1
- package/dist/lib/OrchestrateWorkflow.js +1 -3
- package/dist/lib/OrchestrateWorkflow.js.map +1 -1
- package/dist/lib/PythonParser.js +108 -108
- package/dist/lib/SkillFrontmatter.d.ts +0 -2
- package/dist/lib/SkillFrontmatter.d.ts.map +1 -1
- package/dist/lib/SkillFrontmatter.js +28 -30
- package/dist/lib/SkillFrontmatter.js.map +1 -1
- package/dist/lib/SkillQualityGate.d.ts +0 -2
- package/dist/lib/SkillQualityGate.d.ts.map +1 -1
- package/dist/lib/SkillQualityGate.js +9 -11
- package/dist/lib/SkillQualityGate.js.map +1 -1
- package/dist/lib/SkillRepository.d.ts +117 -0
- package/dist/lib/SkillRepository.d.ts.map +1 -0
- package/dist/lib/SkillRepository.js +477 -0
- package/dist/lib/SkillRepository.js.map +1 -0
- package/dist/lib/UltraQA.d.ts +0 -2
- package/dist/lib/UltraQA.d.ts.map +1 -1
- package/dist/lib/UltraQA.js +77 -79
- package/dist/lib/UltraQA.js.map +1 -1
- package/dist/lib/gemini-mcp.d.ts +10 -0
- package/dist/lib/gemini-mcp.d.ts.map +1 -0
- package/dist/lib/gemini-mcp.js +353 -0
- package/dist/lib/gemini-mcp.js.map +1 -0
- package/dist/lib/gpt-api.js +4 -4
- package/dist/lib/gpt-mcp.d.ts +10 -0
- package/dist/lib/gpt-mcp.d.ts.map +1 -0
- package/dist/lib/gpt-mcp.js +352 -0
- package/dist/lib/gpt-mcp.js.map +1 -0
- package/dist/lib/llm/auth/ApiKeyManager.d.ts +21 -0
- package/dist/lib/llm/auth/ApiKeyManager.d.ts.map +1 -0
- package/dist/lib/llm/auth/ApiKeyManager.js +43 -0
- package/dist/lib/llm/auth/ApiKeyManager.js.map +1 -0
- package/dist/lib/llm/auth/ConfigManager.d.ts +29 -0
- package/dist/lib/llm/auth/ConfigManager.d.ts.map +1 -0
- package/dist/lib/llm/auth/ConfigManager.js +67 -0
- package/dist/lib/llm/auth/ConfigManager.js.map +1 -0
- package/dist/lib/llm/auth/index.d.ts +25 -0
- package/dist/lib/llm/auth/index.d.ts.map +1 -0
- package/dist/lib/llm/auth/index.js +83 -0
- package/dist/lib/llm/auth/index.js.map +1 -0
- package/dist/lib/llm/index.d.ts +10 -0
- package/dist/lib/llm/index.d.ts.map +1 -0
- package/dist/lib/llm/index.js +12 -0
- package/dist/lib/llm/index.js.map +1 -0
- package/dist/lib/llm/types.d.ts +96 -0
- package/dist/lib/llm/types.d.ts.map +1 -0
- package/dist/lib/llm/types.js +17 -0
- package/dist/lib/llm/types.js.map +1 -0
- package/dist/lib/llm/utils/index.d.ts +6 -0
- package/dist/lib/llm/utils/index.d.ts.map +1 -0
- package/dist/lib/llm/utils/index.js +6 -0
- package/dist/lib/llm/utils/index.js.map +1 -0
- package/dist/lib/llm/utils/retry.d.ts +25 -0
- package/dist/lib/llm/utils/retry.d.ts.map +1 -0
- package/dist/lib/llm/utils/retry.js +72 -0
- package/dist/lib/llm/utils/retry.js.map +1 -0
- package/dist/lib/llm/utils/stream.d.ts +13 -0
- package/dist/lib/llm/utils/stream.d.ts.map +1 -0
- package/dist/lib/llm/utils/stream.js +110 -0
- package/dist/lib/llm/utils/stream.js.map +1 -0
- package/dist/lib/memory/KnowledgeGraph.js +4 -4
- package/dist/lib/memory/MemorySearch.js +20 -20
- package/dist/lib/memory/MemoryStorage.js +64 -64
- package/dist/orchestrator/AgentExecutor.d.ts +23 -0
- package/dist/orchestrator/AgentExecutor.d.ts.map +1 -0
- package/dist/orchestrator/AgentExecutor.js +231 -0
- package/dist/orchestrator/AgentExecutor.js.map +1 -0
- package/dist/orchestrator/AgentManager.d.ts +73 -0
- package/dist/orchestrator/AgentManager.d.ts.map +1 -0
- package/dist/orchestrator/AgentManager.js +184 -0
- package/dist/orchestrator/AgentManager.js.map +1 -0
- package/dist/orchestrator/LLMCluster.d.ts +70 -0
- package/dist/orchestrator/LLMCluster.d.ts.map +1 -0
- package/dist/orchestrator/LLMCluster.js +91 -0
- package/dist/orchestrator/LLMCluster.js.map +1 -0
- package/dist/orchestrator/MultiLlmResearch.d.ts +27 -0
- package/dist/orchestrator/MultiLlmResearch.d.ts.map +1 -0
- package/dist/orchestrator/MultiLlmResearch.js +145 -0
- package/dist/orchestrator/MultiLlmResearch.js.map +1 -0
- package/dist/orchestrator/SessionStore.d.ts +41 -0
- package/dist/orchestrator/SessionStore.d.ts.map +1 -0
- package/dist/orchestrator/SessionStore.js +117 -0
- package/dist/orchestrator/SessionStore.js.map +1 -0
- package/dist/orchestrator/SmartRouter.d.ts +68 -0
- package/dist/orchestrator/SmartRouter.d.ts.map +1 -0
- package/dist/orchestrator/SmartRouter.js +256 -0
- package/dist/orchestrator/SmartRouter.js.map +1 -0
- package/dist/orchestrator/backgroundAgent.d.ts +10 -28
- package/dist/orchestrator/backgroundAgent.d.ts.map +1 -1
- package/dist/orchestrator/backgroundAgent.js +11 -346
- package/dist/orchestrator/backgroundAgent.js.map +1 -1
- package/dist/orchestrator/index.d.ts +3 -0
- package/dist/orchestrator/index.d.ts.map +1 -1
- package/dist/orchestrator/index.js +4 -0
- package/dist/orchestrator/index.js.map +1 -1
- package/dist/orchestrator/orchestrator.d.ts +19 -154
- package/dist/orchestrator/orchestrator.d.ts.map +1 -1
- package/dist/orchestrator/orchestrator.js +90 -514
- package/dist/orchestrator/orchestrator.js.map +1 -1
- package/dist/orchestrator/parallelResearch.d.ts +5 -12
- package/dist/orchestrator/parallelResearch.d.ts.map +1 -1
- package/dist/orchestrator/parallelResearch.js +10 -193
- package/dist/orchestrator/parallelResearch.js.map +1 -1
- package/dist/tools/analytics/getUsageAnalytics.d.ts +10 -0
- package/dist/tools/analytics/getUsageAnalytics.d.ts.map +1 -0
- package/dist/tools/analytics/getUsageAnalytics.js +246 -0
- package/dist/tools/analytics/getUsageAnalytics.js.map +1 -0
- package/dist/tools/analytics/index.d.ts +5 -0
- package/dist/tools/analytics/index.d.ts.map +1 -0
- package/dist/tools/analytics/index.js +5 -0
- package/dist/tools/analytics/index.js.map +1 -0
- package/dist/tools/convention/analyzeComplexity.test.js +115 -115
- package/dist/tools/convention/getCodingGuide.d.ts +7 -0
- package/dist/tools/convention/getCodingGuide.d.ts.map +1 -0
- package/dist/tools/convention/getCodingGuide.js +69 -0
- package/dist/tools/convention/getCodingGuide.js.map +1 -0
- package/dist/tools/convention/validateCodeQuality.test.js +104 -104
- package/dist/tools/index.d.ts +2 -0
- package/dist/tools/index.d.ts.map +1 -1
- package/dist/tools/index.js +2 -0
- package/dist/tools/index.js.map +1 -1
- package/dist/tools/planning/analyzeRequirements.d.ts +9 -0
- package/dist/tools/planning/analyzeRequirements.d.ts.map +1 -0
- package/dist/tools/planning/analyzeRequirements.js +171 -0
- package/dist/tools/planning/analyzeRequirements.js.map +1 -0
- package/dist/tools/planning/createUserStories.d.ts +9 -0
- package/dist/tools/planning/createUserStories.d.ts.map +1 -0
- package/dist/tools/planning/createUserStories.js +124 -0
- package/dist/tools/planning/createUserStories.js.map +1 -0
- package/dist/tools/planning/featureRoadmap.d.ts +10 -0
- package/dist/tools/planning/featureRoadmap.d.ts.map +1 -0
- package/dist/tools/planning/featureRoadmap.js +207 -0
- package/dist/tools/planning/featureRoadmap.js.map +1 -0
- package/dist/tools/planning/generatePrd.d.ts +11 -0
- package/dist/tools/planning/generatePrd.d.ts.map +1 -0
- package/dist/tools/planning/generatePrd.js +161 -0
- package/dist/tools/planning/generatePrd.js.map +1 -0
- package/dist/tools/planning/index.d.ts +8 -0
- package/dist/tools/planning/index.d.ts.map +1 -0
- package/dist/tools/planning/index.js +8 -0
- package/dist/tools/planning/index.js.map +1 -0
- package/dist/tools/prompt/analyzePrompt.d.ts +7 -0
- package/dist/tools/prompt/analyzePrompt.d.ts.map +1 -0
- package/dist/tools/prompt/analyzePrompt.js +150 -0
- package/dist/tools/prompt/analyzePrompt.js.map +1 -0
- package/dist/tools/prompt/enhancePrompt.d.ts +8 -0
- package/dist/tools/prompt/enhancePrompt.d.ts.map +1 -0
- package/dist/tools/prompt/enhancePrompt.js +110 -0
- package/dist/tools/prompt/enhancePrompt.js.map +1 -0
- package/dist/tools/prompt/enhancePromptGemini.d.ts +8 -0
- package/dist/tools/prompt/enhancePromptGemini.d.ts.map +1 -0
- package/dist/tools/prompt/enhancePromptGemini.js +332 -0
- package/dist/tools/prompt/enhancePromptGemini.js.map +1 -0
- package/dist/tools/prompt/index.d.ts +7 -0
- package/dist/tools/prompt/index.d.ts.map +1 -0
- package/dist/tools/prompt/index.js +7 -0
- package/dist/tools/prompt/index.js.map +1 -0
- package/dist/tools/reasoning/applyReasoningFramework.d.ts +8 -0
- package/dist/tools/reasoning/applyReasoningFramework.d.ts.map +1 -0
- package/dist/tools/reasoning/applyReasoningFramework.js +266 -0
- package/dist/tools/reasoning/applyReasoningFramework.js.map +1 -0
- package/dist/tools/reasoning/index.d.ts +5 -0
- package/dist/tools/reasoning/index.d.ts.map +1 -0
- package/dist/tools/reasoning/index.js +5 -0
- package/dist/tools/reasoning/index.js.map +1 -0
- package/dist/tools/thinking/analyzeProblem.d.ts +7 -0
- package/dist/tools/thinking/analyzeProblem.d.ts.map +1 -0
- package/dist/tools/thinking/analyzeProblem.js +55 -0
- package/dist/tools/thinking/analyzeProblem.js.map +1 -0
- package/dist/tools/thinking/breakDownProblem.d.ts +8 -0
- package/dist/tools/thinking/breakDownProblem.d.ts.map +1 -0
- package/dist/tools/thinking/breakDownProblem.js +145 -0
- package/dist/tools/thinking/breakDownProblem.js.map +1 -0
- package/dist/tools/thinking/createThinkingChain.d.ts +7 -0
- package/dist/tools/thinking/createThinkingChain.d.ts.map +1 -0
- package/dist/tools/thinking/createThinkingChain.js +44 -0
- package/dist/tools/thinking/createThinkingChain.js.map +1 -0
- package/dist/tools/thinking/formatAsPlan.d.ts +9 -0
- package/dist/tools/thinking/formatAsPlan.d.ts.map +1 -0
- package/dist/tools/thinking/formatAsPlan.js +78 -0
- package/dist/tools/thinking/formatAsPlan.js.map +1 -0
- package/dist/tools/thinking/index.d.ts +10 -0
- package/dist/tools/thinking/index.d.ts.map +1 -0
- package/dist/tools/thinking/index.js +10 -0
- package/dist/tools/thinking/index.js.map +1 -0
- package/dist/tools/thinking/stepByStepAnalysis.d.ts +8 -0
- package/dist/tools/thinking/stepByStepAnalysis.d.ts.map +1 -0
- package/dist/tools/thinking/stepByStepAnalysis.js +63 -0
- package/dist/tools/thinking/stepByStepAnalysis.js.map +1 -0
- package/dist/tools/thinking/thinkAloudProcess.d.ts +8 -0
- package/dist/tools/thinking/thinkAloudProcess.d.ts.map +1 -0
- package/dist/tools/thinking/thinkAloudProcess.js +80 -0
- package/dist/tools/thinking/thinkAloudProcess.js.map +1 -0
- package/hooks/hooks.json +222 -222
- package/hooks/scripts/code-check.js +22 -22
- package/hooks/scripts/code-review.js +22 -22
- package/hooks/scripts/complexity.js +22 -22
- package/hooks/scripts/compound.js +23 -23
- package/hooks/scripts/context-save.js +33 -33
- package/hooks/scripts/generate-brand-assets.js +472 -0
- package/hooks/scripts/hud-multiline.js +262 -264
- package/hooks/scripts/hud-status.js +291 -293
- package/hooks/scripts/keyword-detector.js +214 -216
- package/hooks/scripts/llm-orchestrate.js +171 -171
- package/hooks/scripts/post-edit.js +97 -97
- package/hooks/scripts/post-tool-verify.js +210 -212
- package/hooks/scripts/pre-tool-guard.js +125 -127
- package/hooks/scripts/recall.js +22 -22
- package/hooks/scripts/session-start.js +30 -30
- package/hooks/scripts/skill-injector.js +191 -193
- package/hooks/scripts/utils.js +97 -97
- package/languages/csharp-unity.md +515 -515
- package/languages/gdscript-godot.md +470 -470
- package/languages/ruby-rails.md +489 -489
- package/languages/typescript-angular.md +433 -433
- package/languages/typescript-astro.md +416 -416
- package/languages/typescript-electron.md +406 -406
- package/languages/typescript-nestjs.md +524 -524
- package/languages/typescript-svelte.md +407 -407
- package/languages/typescript-tauri.md +365 -365
- package/package.json +83 -83
- package/skills/brand-assets.md +141 -0
- package/skills/commerce-patterns.md +361 -0
- package/skills/context7-usage.md +102 -102
- package/skills/e2e-commerce.md +304 -0
- package/skills/frontend-design.md +92 -0
- package/skills/git-worktree.md +181 -181
- package/skills/parallel-research.md +77 -77
- package/skills/priority-todos.md +239 -239
- package/skills/seo-checklist.md +244 -0
- package/skills/tool-fallback.md +190 -190
- package/skills/vibe-capabilities.md +161 -161
- package/vibe/constitution.md +227 -227
- package/vibe/rules/core/communication-guide.md +98 -98
- package/vibe/rules/core/development-philosophy.md +52 -52
- package/vibe/rules/core/quick-start.md +102 -102
- package/vibe/rules/quality/bdd-contract-testing.md +393 -393
- package/vibe/rules/quality/checklist.md +276 -276
- package/vibe/rules/quality/testing-strategy.md +440 -440
- package/vibe/rules/standards/anti-patterns.md +541 -541
- package/vibe/rules/standards/code-structure.md +291 -291
- package/vibe/rules/standards/complexity-metrics.md +313 -313
- package/vibe/rules/standards/naming-conventions.md +198 -198
- package/vibe/setup.sh +31 -31
- package/vibe/templates/constitution-template.md +252 -252
- package/vibe/templates/contract-backend-template.md +526 -526
- package/vibe/templates/contract-frontend-template.md +599 -599
- package/vibe/templates/feature-template.md +96 -96
- package/vibe/templates/spec-template.md +221 -221
|
@@ -4,10 +4,10 @@ import { validateCodeQuality } from './validateCodeQuality.js';
|
|
|
4
4
|
describe('validateCodeQuality', () => {
|
|
5
5
|
describe('code validation', () => {
|
|
6
6
|
it('should validate simple clean code', async () => {
|
|
7
|
-
const code = `
|
|
8
|
-
function add(a: number, b: number): number {
|
|
9
|
-
return a + b;
|
|
10
|
-
}
|
|
7
|
+
const code = `
|
|
8
|
+
function add(a: number, b: number): number {
|
|
9
|
+
return a + b;
|
|
10
|
+
}
|
|
11
11
|
`;
|
|
12
12
|
const result = await validateCodeQuality({ code });
|
|
13
13
|
expect(result.content[0].type).toBe('text');
|
|
@@ -15,56 +15,56 @@ function add(a: number, b: number): number {
|
|
|
15
15
|
expect(result.content[0].text).toContain('Grade');
|
|
16
16
|
});
|
|
17
17
|
it('should detect high nesting depth', async () => {
|
|
18
|
-
const code = `
|
|
19
|
-
function nested() {
|
|
20
|
-
if (true) {
|
|
21
|
-
if (true) {
|
|
22
|
-
if (true) {
|
|
23
|
-
if (true) {
|
|
24
|
-
console.log('deep');
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
}
|
|
18
|
+
const code = `
|
|
19
|
+
function nested() {
|
|
20
|
+
if (true) {
|
|
21
|
+
if (true) {
|
|
22
|
+
if (true) {
|
|
23
|
+
if (true) {
|
|
24
|
+
console.log('deep');
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
30
|
`;
|
|
31
31
|
const result = await validateCodeQuality({ code });
|
|
32
32
|
expect(result.content[0].text).toContain('Nesting');
|
|
33
33
|
});
|
|
34
34
|
it('should detect any type usage', async () => {
|
|
35
|
-
const code = `
|
|
36
|
-
function process(data: any): any {
|
|
37
|
-
return data;
|
|
38
|
-
}
|
|
35
|
+
const code = `
|
|
36
|
+
function process(data: any): any {
|
|
37
|
+
return data;
|
|
38
|
+
}
|
|
39
39
|
`;
|
|
40
40
|
const result = await validateCodeQuality({ code });
|
|
41
41
|
expect(result.content[0].text).toContain('type');
|
|
42
42
|
});
|
|
43
43
|
it('should detect loose equality', async () => {
|
|
44
|
-
const code = `
|
|
45
|
-
function compare(a, b) {
|
|
46
|
-
return a == b;
|
|
47
|
-
}
|
|
44
|
+
const code = `
|
|
45
|
+
function compare(a, b) {
|
|
46
|
+
return a == b;
|
|
47
|
+
}
|
|
48
48
|
`;
|
|
49
49
|
const result = await validateCodeQuality({ code });
|
|
50
50
|
expect(result.content[0].text).toContain('Issues');
|
|
51
51
|
});
|
|
52
52
|
it('should detect var usage', async () => {
|
|
53
|
-
const code = `
|
|
54
|
-
function oldStyle() {
|
|
55
|
-
var x = 1;
|
|
56
|
-
var y = 2;
|
|
57
|
-
return x + y;
|
|
58
|
-
}
|
|
53
|
+
const code = `
|
|
54
|
+
function oldStyle() {
|
|
55
|
+
var x = 1;
|
|
56
|
+
var y = 2;
|
|
57
|
+
return x + y;
|
|
58
|
+
}
|
|
59
59
|
`;
|
|
60
60
|
const result = await validateCodeQuality({ code });
|
|
61
61
|
expect(result.content[0].text).toContain('Issues');
|
|
62
62
|
});
|
|
63
63
|
it('should detect magic numbers', async () => {
|
|
64
|
-
const code = `
|
|
65
|
-
function calculate(value) {
|
|
66
|
-
return value * 123 + 456;
|
|
67
|
-
}
|
|
64
|
+
const code = `
|
|
65
|
+
function calculate(value) {
|
|
66
|
+
return value * 123 + 456;
|
|
67
|
+
}
|
|
68
68
|
`;
|
|
69
69
|
const result = await validateCodeQuality({ code });
|
|
70
70
|
expect(result.content[0].text).toContain('Issues');
|
|
@@ -72,26 +72,26 @@ function calculate(value) {
|
|
|
72
72
|
});
|
|
73
73
|
describe('async code validation', () => {
|
|
74
74
|
it('should warn about missing error handling in async', async () => {
|
|
75
|
-
const code = `
|
|
76
|
-
async function fetchData() {
|
|
77
|
-
const response = await fetch('/api');
|
|
78
|
-
return response.json();
|
|
79
|
-
}
|
|
75
|
+
const code = `
|
|
76
|
+
async function fetchData() {
|
|
77
|
+
const response = await fetch('/api');
|
|
78
|
+
return response.json();
|
|
79
|
+
}
|
|
80
80
|
`;
|
|
81
81
|
const result = await validateCodeQuality({ code });
|
|
82
82
|
expect(result.content[0].text).toContain('Issues');
|
|
83
83
|
});
|
|
84
84
|
it('should not warn when error handling exists', async () => {
|
|
85
|
-
const code = `
|
|
86
|
-
async function fetchData() {
|
|
87
|
-
try {
|
|
88
|
-
const response = await fetch('/api');
|
|
89
|
-
return response.json();
|
|
90
|
-
} catch (error) {
|
|
91
|
-
console.error(error);
|
|
92
|
-
throw error;
|
|
93
|
-
}
|
|
94
|
-
}
|
|
85
|
+
const code = `
|
|
86
|
+
async function fetchData() {
|
|
87
|
+
try {
|
|
88
|
+
const response = await fetch('/api');
|
|
89
|
+
return response.json();
|
|
90
|
+
} catch (error) {
|
|
91
|
+
console.error(error);
|
|
92
|
+
throw error;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
95
|
`;
|
|
96
96
|
const result = await validateCodeQuality({ code });
|
|
97
97
|
// Should have fewer issues or no error handling issue
|
|
@@ -100,27 +100,27 @@ async function fetchData() {
|
|
|
100
100
|
});
|
|
101
101
|
describe('React component validation', () => {
|
|
102
102
|
it('should validate React component with type', async () => {
|
|
103
|
-
const code = `
|
|
104
|
-
import React from 'react';
|
|
105
|
-
|
|
106
|
-
function MyComponent({ name }) {
|
|
107
|
-
return <div>Hello, {name}!</div>;
|
|
108
|
-
}
|
|
103
|
+
const code = `
|
|
104
|
+
import React from 'react';
|
|
105
|
+
|
|
106
|
+
function MyComponent({ name }) {
|
|
107
|
+
return <div>Hello, {name}!</div>;
|
|
108
|
+
}
|
|
109
109
|
`;
|
|
110
110
|
const result = await validateCodeQuality({ code, type: 'component' });
|
|
111
111
|
expect(result.content[0].text).toContain('Type: component');
|
|
112
112
|
});
|
|
113
113
|
it('should suggest memo for React components', async () => {
|
|
114
|
-
const code = `
|
|
115
|
-
import React from 'react';
|
|
116
|
-
|
|
117
|
-
function ExpensiveComponent({ data }) {
|
|
118
|
-
return (
|
|
119
|
-
<div>
|
|
120
|
-
{data.map(item => <span key={item.id}>{item.name}</span>)}
|
|
121
|
-
</div>
|
|
122
|
-
);
|
|
123
|
-
}
|
|
114
|
+
const code = `
|
|
115
|
+
import React from 'react';
|
|
116
|
+
|
|
117
|
+
function ExpensiveComponent({ data }) {
|
|
118
|
+
return (
|
|
119
|
+
<div>
|
|
120
|
+
{data.map(item => <span key={item.id}>{item.name}</span>)}
|
|
121
|
+
</div>
|
|
122
|
+
);
|
|
123
|
+
}
|
|
124
124
|
`;
|
|
125
125
|
const result = await validateCodeQuality({ code, type: 'component' });
|
|
126
126
|
// Should mention performance optimization
|
|
@@ -144,27 +144,27 @@ function ExpensiveComponent({ data }) {
|
|
|
144
144
|
});
|
|
145
145
|
describe('grading system', () => {
|
|
146
146
|
it('should give A grade for excellent code', async () => {
|
|
147
|
-
const code = `
|
|
148
|
-
const add = (a: number, b: number): number => a + b;
|
|
147
|
+
const code = `
|
|
148
|
+
const add = (a: number, b: number): number => a + b;
|
|
149
149
|
`;
|
|
150
150
|
const result = await validateCodeQuality({ code });
|
|
151
151
|
expect(result.content[0].text).toContain('Grade: A');
|
|
152
152
|
});
|
|
153
153
|
it('should give lower grade for problematic code', async () => {
|
|
154
|
-
const code = `
|
|
155
|
-
function badCode(data: any) {
|
|
156
|
-
var result;
|
|
157
|
-
if (data == null) {
|
|
158
|
-
if (true) {
|
|
159
|
-
if (true) {
|
|
160
|
-
if (true) {
|
|
161
|
-
result = data * 123456;
|
|
162
|
-
}
|
|
163
|
-
}
|
|
164
|
-
}
|
|
165
|
-
}
|
|
166
|
-
return result;
|
|
167
|
-
}
|
|
154
|
+
const code = `
|
|
155
|
+
function badCode(data: any) {
|
|
156
|
+
var result;
|
|
157
|
+
if (data == null) {
|
|
158
|
+
if (true) {
|
|
159
|
+
if (true) {
|
|
160
|
+
if (true) {
|
|
161
|
+
result = data * 123456;
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
return result;
|
|
167
|
+
}
|
|
168
168
|
`;
|
|
169
169
|
const result = await validateCodeQuality({ code });
|
|
170
170
|
// Should not be grade A
|
|
@@ -173,10 +173,10 @@ function badCode(data: any) {
|
|
|
173
173
|
});
|
|
174
174
|
describe('strict mode', () => {
|
|
175
175
|
it('should accept strict flag', async () => {
|
|
176
|
-
const code = `
|
|
177
|
-
function test() {
|
|
178
|
-
return 1;
|
|
179
|
-
}
|
|
176
|
+
const code = `
|
|
177
|
+
function test() {
|
|
178
|
+
return 1;
|
|
179
|
+
}
|
|
180
180
|
`;
|
|
181
181
|
const result = await validateCodeQuality({ code, strict: true });
|
|
182
182
|
expect(result.content[0].text).toContain('Score');
|
|
@@ -184,23 +184,23 @@ function test() {
|
|
|
184
184
|
});
|
|
185
185
|
describe('metrics option', () => {
|
|
186
186
|
it('should accept complexity metrics', async () => {
|
|
187
|
-
const code = `
|
|
188
|
-
function test() {
|
|
189
|
-
return 1;
|
|
190
|
-
}
|
|
187
|
+
const code = `
|
|
188
|
+
function test() {
|
|
189
|
+
return 1;
|
|
190
|
+
}
|
|
191
191
|
`;
|
|
192
192
|
const result = await validateCodeQuality({ code, metrics: 'complexity' });
|
|
193
193
|
expect(result.content[0].text).toContain('Complexity');
|
|
194
194
|
});
|
|
195
195
|
it('should accept all metrics', async () => {
|
|
196
|
-
const code = `
|
|
197
|
-
function test() {
|
|
198
|
-
if (true) {
|
|
199
|
-
for (let i = 0; i < 10; i++) {
|
|
200
|
-
console.log(i);
|
|
201
|
-
}
|
|
202
|
-
}
|
|
203
|
-
}
|
|
196
|
+
const code = `
|
|
197
|
+
function test() {
|
|
198
|
+
if (true) {
|
|
199
|
+
for (let i = 0; i < 10; i++) {
|
|
200
|
+
console.log(i);
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
204
|
`;
|
|
205
205
|
const result = await validateCodeQuality({ code, metrics: 'all' });
|
|
206
206
|
expect(result.content[0].text).toContain('Score');
|
|
@@ -208,18 +208,18 @@ function test() {
|
|
|
208
208
|
});
|
|
209
209
|
describe('deductions', () => {
|
|
210
210
|
it('should show deduction details', async () => {
|
|
211
|
-
const code = `
|
|
212
|
-
async function process(data: any) {
|
|
213
|
-
var x = data == null ? 0 : data;
|
|
214
|
-
return x * 12345;
|
|
215
|
-
}
|
|
211
|
+
const code = `
|
|
212
|
+
async function process(data: any) {
|
|
213
|
+
var x = data == null ? 0 : data;
|
|
214
|
+
return x * 12345;
|
|
215
|
+
}
|
|
216
216
|
`;
|
|
217
217
|
const result = await validateCodeQuality({ code });
|
|
218
218
|
expect(result.content[0].text).toContain('Deductions');
|
|
219
219
|
});
|
|
220
220
|
it('should calculate score correctly', async () => {
|
|
221
|
-
const code = `
|
|
222
|
-
const clean = (x: number): number => x + 1;
|
|
221
|
+
const code = `
|
|
222
|
+
const clean = (x: number): number => x + 1;
|
|
223
223
|
`;
|
|
224
224
|
const result = await validateCodeQuality({ code });
|
|
225
225
|
// Clean code should have high score (90+)
|
package/dist/tools/index.d.ts
CHANGED
|
@@ -39,4 +39,6 @@ export { checkIntentGate, assessCodebase, createDelegationPlan, createVerificati
|
|
|
39
39
|
export { createQASession, getCommandForGoal, recordCycleResult, shouldContinue, generateDiagnosisPrompt, generateFixPrompt, formatQAStatus, parseQAGoals, describeUltraQAWorkflow, } from '../lib/UltraQA.js';
|
|
40
40
|
export { detectDirectoryPurpose, isEntryPoint, generateAgentsMd, formatAgentsMd, preserveManualNotes, generateNavigationHeader, describeDeepInitWorkflow, } from '../lib/DeepInit.js';
|
|
41
41
|
export { parseSkillFrontmatter, generateSkillFrontmatter, createSkillFile, validateSkillMetadata, mergeWithDefaults, extractTriggersFromTemplate, substituteTemplateVars, } from '../lib/SkillFrontmatter.js';
|
|
42
|
+
export { SkillRepository, getGlobalSkillsDir, getBundledSkillsDir, ensureDefaultSkills, seedInlineDefaultSkills, DEFAULT_SKILLS, } from '../lib/SkillRepository.js';
|
|
43
|
+
export type { SkillInfo, SkillRepositoryConfig } from '../lib/SkillRepository.js';
|
|
42
44
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/tools/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAC9D,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACpD,OAAO,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AE,MAAM,wBAAwB,CAAC;AACtD,OAAO,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAGhE,OAAO,EACL,YAAY,EACZ,aAAa,EACb,eAAe,EACf,wBAAwB,EACxB,wBAAwB,GACzB,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EACL,cAAc,EACd,UAAU,EACV,aAAa,EACb,SAAS,EACT,iBAAiB,EACjB,eAAe,EACf,cAAc,EACd,gBAAgB,EAChB,mBAAmB,EACnB,uBAAuB,EACvB,iBAAiB,GAClB,MAAM,4BAA4B,CAAC;AAEpC,OAAO,EACL,oBAAoB,EACpB,kBAAkB,EAClB,aAAa,EACb,sBAAsB,GACvB,MAAM,4BAA4B,CAAC;AAGpC,OAAO,EACL,eAAe,EACf,cAAc,EACd,oBAAoB,EACpB,2BAA2B,EAC3B,yBAAyB,EACzB,qBAAqB,GACtB,MAAM,+BAA+B,CAAC;AAGvC,OAAO,EACL,eAAe,EACf,iBAAiB,EACjB,iBAAiB,EACjB,cAAc,EACd,uBAAuB,EACvB,iBAAiB,EACjB,cAAc,EACd,YAAY,EACZ,uBAAuB,GACxB,MAAM,mBAAmB,CAAC;AAG3B,OAAO,EACL,sBAAsB,EACtB,YAAY,EACZ,gBAAgB,EAChB,cAAc,EACd,mBAAmB,EACnB,wBAAwB,EACxB,wBAAwB,GACzB,MAAM,oBAAoB,CAAC;AAG5B,OAAO,EACL,qBAAqB,EACrB,wBAAwB,EACxB,eAAe,EACf,qBAAqB,EACrB,iBAAiB,EACjB,2BAA2B,EAC3B,sBAAsB,GACvB,MAAM,4BAA4B,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/tools/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAC9D,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAw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4 +50,6 @@ export { createQASession, getCommandForGoal, recordCycleResult, shouldContinue,
|
|
|
50
50
|
export { detectDirectoryPurpose, isEntryPoint, generateAgentsMd, formatAgentsMd, preserveManualNotes, generateNavigationHeader, describeDeepInitWorkflow, } from '../lib/DeepInit.js';
|
|
51
51
|
// Skill Frontmatter (v2.5.11)
|
|
52
52
|
export { parseSkillFrontmatter, generateSkillFrontmatter, createSkillFile, validateSkillMetadata, mergeWithDefaults, extractTriggersFromTemplate, substituteTemplateVars, } from '../lib/SkillFrontmatter.js';
|
|
53
|
+
// Skill Repository (v2.5.12)
|
|
54
|
+
export { SkillRepository, getGlobalSkillsDir, getBundledSkillsDir, ensureDefaultSkills, seedInlineDefaultSkills, DEFAULT_SKILLS, } from '../lib/SkillRepository.js';
|
|
53
55
|
//# sourceMappingURL=index.js.map
|
package/dist/tools/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/tools/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,eAAe;AACf,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAC9D,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACpD,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,EAAE,qBAAqB,IAAI,cAAc,EAAE,MAAM,4BAA4B,CAAC;AACrF,OAAO,EAAE,sBAAsB,EAAE,MAAM,oCAAoC,CAAC;AAC5E,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAA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ClB,MAAM,4BAA4B,CAAC;AAEpC,OAAO,EACL,oBAAoB,EACpB,kBAAkB,EAClB,aAAa,EACb,sBAAsB,GACvB,MAAM,4BAA4B,CAAC;AAEpC,iCAAiC;AACjC,OAAO,EACL,eAAe,EACf,cAAc,EACd,oBAAoB,EACpB,2BAA2B,EAC3B,yBAAyB,EACzB,qBAAqB,GACtB,MAAM,+BAA+B,CAAC;AAEvC,oBAAoB;AACpB,OAAO,EACL,eAAe,EACf,iBAAiB,EACjB,iBAAiB,EACjB,cAAc,EACd,uBAAuB,EACvB,iBAAiB,EACjB,cAAc,EACd,YAAY,EACZ,uBAAuB,GACxB,MAAM,mBAAmB,CAAC;AAE3B,qBAAqB;AACrB,OAAO,EACL,sBAAsB,EACtB,YAAY,EACZ,gBAAgB,EAChB,cAAc,EACd,mBAAmB,EACnB,wBAAwB,EACxB,wBAAwB,GACzB,MAAM,oBAAoB,CAAC;AAE5B,8BAA8B;AAC9B,OAAO,EACL,qBAAqB,EACrB,wBAAwB,EACxB,eAAe,EACf,qBAAqB,EACrB,iBAAiB,EACjB,2BAA2B,EAC3B,sBAAsB,GACvB,MAAM,4BAA4B,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/tools/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,eAAe;AACf,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAC9D,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACpD,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,EAAE,qBAAqB,IAAI,cAAc,EAAE,MAAM,4B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BAAuB,CAAC;AAE/B,OAAO,EACL,cAAc,EACd,UAAU,EACV,aAAa,EACb,SAAS,EACT,iBAAiB,EACjB,eAAe,EACf,cAAc,EACd,gBAAgB,EAChB,mBAAmB,EACnB,uBAAuB,EACvB,iBAAiB,GAClB,MAAM,4BAA4B,CAAC;AAEpC,OAAO,EACL,oBAAoB,EACpB,kBAAkB,EAClB,aAAa,EACb,sBAAsB,GACvB,MAAM,4BAA4B,CAAC;AAEpC,iCAAiC;AACjC,OAAO,EACL,eAAe,EACf,cAAc,EACd,oBAAoB,EACpB,2BAA2B,EAC3B,yBAAyB,EACzB,qBAAqB,GACtB,MAAM,+BAA+B,CAAC;AAEvC,oBAAoB;AACpB,OAAO,EACL,eAAe,EACf,iBAAiB,EACjB,iBAAiB,EACjB,cAAc,EACd,uBAAuB,EACvB,iBAAiB,EACjB,cAAc,EACd,YAAY,EACZ,uBAAuB,GACxB,MAAM,mBAAmB,CAAC;AAE3B,qBAAqB;AACrB,OAAO,EACL,sBAAsB,EACtB,YAAY,EACZ,gBAAgB,EAChB,cAAc,EACd,mBAAmB,EACnB,wBAAwB,EACxB,wBAAwB,GACzB,MAAM,oBAAoB,CAAC;AAE5B,8BAA8B;AAC9B,OAAO,EACL,qBAAqB,EACrB,wBAAwB,EACxB,eAAe,EACf,qBAAqB,EACrB,iBAAiB,EACjB,2BAA2B,EAC3B,sBAAsB,GACvB,MAAM,4BAA4B,CAAC;AAEpC,6BAA6B;AAC7B,OAAO,EACL,eAAe,EACf,kBAAkB,EAClB,mBAAmB,EACnB,mBAAmB,EACnB,uBAAuB,EACvB,cAAc,GACf,MAAM,2BAA2B,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ToolResult, ToolDefinition } from '../../types/tool.js';
|
|
2
|
+
export declare const analyzeRequirementsDefinition: ToolDefinition;
|
|
3
|
+
export declare function analyzeRequirements(args: {
|
|
4
|
+
requirements: string;
|
|
5
|
+
stakeholders?: string;
|
|
6
|
+
constraints?: string;
|
|
7
|
+
analysisMethod?: string;
|
|
8
|
+
}): Promise<ToolResult>;
|
|
9
|
+
//# sourceMappingURL=analyzeRequirements.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"analyzeRequirements.d.ts","sourceRoot":"","sources":["../../../src/tools/planning/analyzeRequirements.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAejE,eAAO,MAAM,6BAA6B,EAAE,cAqB3C,CAAC;AAEF,wBAAsB,mBAAmB,CAAC,IAAI,EAAE;IAC9C,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB,GAAG,OAAO,CAAC,UAAU,CAAC,CA6JtB"}
|
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
// Planning tool - completely independent
|
|
2
|
+
export const analyzeRequirementsDefinition = {
|
|
3
|
+
name: 'analyze_requirements',
|
|
4
|
+
description: '요구사항 분석|필요한 것들|requirements analysis|what we need|analyze requirements|필수 기능 - Analyze project requirements',
|
|
5
|
+
inputSchema: {
|
|
6
|
+
type: 'object',
|
|
7
|
+
properties: {
|
|
8
|
+
requirements: { type: 'string', description: 'List of requirements to analyze' },
|
|
9
|
+
stakeholders: { type: 'string', description: 'Project stakeholders (e.g., users, admins, developers)' },
|
|
10
|
+
constraints: { type: 'string', description: 'Project constraints (timeline, budget, technical)' },
|
|
11
|
+
analysisMethod: { type: 'string', description: 'Analysis method', enum: ['moscow', 'kano', 'value-effort'], default: 'moscow' }
|
|
12
|
+
},
|
|
13
|
+
required: ['requirements']
|
|
14
|
+
},
|
|
15
|
+
annotations: {
|
|
16
|
+
title: 'Analyze Requirements',
|
|
17
|
+
audience: ['user', 'assistant'],
|
|
18
|
+
readOnlyHint: true,
|
|
19
|
+
destructiveHint: false,
|
|
20
|
+
idempotentHint: true,
|
|
21
|
+
openWorldHint: false
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
export async function analyzeRequirements(args) {
|
|
25
|
+
const { requirements, stakeholders = 'end users, product owner, development team', constraints = 'standard timeline and budget constraints', analysisMethod = 'moscow' } = args;
|
|
26
|
+
// Parse requirements
|
|
27
|
+
const requirementList = requirements.split(/[,\n]/).map(r => r.trim()).filter(r => r.length > 0);
|
|
28
|
+
const stakeholderList = stakeholders.split(',').map(s => s.trim());
|
|
29
|
+
const analyzedRequirements = requirementList.map((req, index) => {
|
|
30
|
+
const reqId = `REQ-${String(index + 1).padStart(3, '0')}`;
|
|
31
|
+
// Determine requirement type
|
|
32
|
+
let type = 'functional';
|
|
33
|
+
if (req.toLowerCase().includes('performance') || req.toLowerCase().includes('security') || req.toLowerCase().includes('scalability')) {
|
|
34
|
+
type = 'non-functional';
|
|
35
|
+
}
|
|
36
|
+
else if (req.toLowerCase().includes('business') || req.toLowerCase().includes('revenue') || req.toLowerCase().includes('cost')) {
|
|
37
|
+
type = 'business';
|
|
38
|
+
}
|
|
39
|
+
else if (req.toLowerCase().includes('infrastructure') || req.toLowerCase().includes('architecture') || req.toLowerCase().includes('database')) {
|
|
40
|
+
type = 'technical';
|
|
41
|
+
}
|
|
42
|
+
// Determine priority using MoSCoW
|
|
43
|
+
let priority = 'should-have';
|
|
44
|
+
if (req.toLowerCase().includes('critical') || req.toLowerCase().includes('essential') || req.toLowerCase().includes('required')) {
|
|
45
|
+
priority = 'must-have';
|
|
46
|
+
}
|
|
47
|
+
else if (req.toLowerCase().includes('important') || req.toLowerCase().includes('needed')) {
|
|
48
|
+
priority = 'should-have';
|
|
49
|
+
}
|
|
50
|
+
else if (req.toLowerCase().includes('nice') || req.toLowerCase().includes('optional') || req.toLowerCase().includes('enhancement')) {
|
|
51
|
+
priority = 'could-have';
|
|
52
|
+
}
|
|
53
|
+
else if (req.toLowerCase().includes('future') || req.toLowerCase().includes('later') || req.toLowerCase().includes('v2')) {
|
|
54
|
+
priority = 'wont-have';
|
|
55
|
+
}
|
|
56
|
+
// Assess complexity
|
|
57
|
+
let complexity = 'medium';
|
|
58
|
+
if (req.length > 100 || req.toLowerCase().includes('complex') || req.toLowerCase().includes('integration') || req.toLowerCase().includes('advanced')) {
|
|
59
|
+
complexity = 'high';
|
|
60
|
+
}
|
|
61
|
+
else if (req.length < 50 || req.toLowerCase().includes('simple') || req.toLowerCase().includes('basic')) {
|
|
62
|
+
complexity = 'low';
|
|
63
|
+
}
|
|
64
|
+
// Assess risk
|
|
65
|
+
let risk = 'low';
|
|
66
|
+
if (req.toLowerCase().includes('external') || req.toLowerCase().includes('third-party') || req.toLowerCase().includes('new technology')) {
|
|
67
|
+
risk = 'high';
|
|
68
|
+
}
|
|
69
|
+
else if (req.toLowerCase().includes('integration') || req.toLowerCase().includes('performance') || complexity === 'high') {
|
|
70
|
+
risk = 'medium';
|
|
71
|
+
}
|
|
72
|
+
// Estimate effort
|
|
73
|
+
let estimatedEffort = '3-5 days';
|
|
74
|
+
if (complexity === 'high') {
|
|
75
|
+
estimatedEffort = '1-3 weeks';
|
|
76
|
+
}
|
|
77
|
+
else if (complexity === 'low') {
|
|
78
|
+
estimatedEffort = '1-2 days';
|
|
79
|
+
}
|
|
80
|
+
// Determine relevant stakeholders
|
|
81
|
+
const relevantStakeholders = stakeholderList.filter(stakeholder => {
|
|
82
|
+
if (type === 'business' && stakeholder.toLowerCase().includes('owner'))
|
|
83
|
+
return true;
|
|
84
|
+
if (type === 'technical' && stakeholder.toLowerCase().includes('developer'))
|
|
85
|
+
return true;
|
|
86
|
+
if (type === 'functional' && stakeholder.toLowerCase().includes('user'))
|
|
87
|
+
return true;
|
|
88
|
+
return true; // Include all by default
|
|
89
|
+
});
|
|
90
|
+
return {
|
|
91
|
+
id: reqId,
|
|
92
|
+
title: req.length > 50 ? req.substring(0, 47) + '...' : req,
|
|
93
|
+
description: req,
|
|
94
|
+
type,
|
|
95
|
+
priority,
|
|
96
|
+
complexity,
|
|
97
|
+
risk,
|
|
98
|
+
dependencies: [],
|
|
99
|
+
estimatedEffort,
|
|
100
|
+
stakeholders: relevantStakeholders
|
|
101
|
+
};
|
|
102
|
+
});
|
|
103
|
+
const analysis = {
|
|
104
|
+
action: 'analyze_requirements',
|
|
105
|
+
method: analysisMethod,
|
|
106
|
+
totalRequirements: analyzedRequirements.length,
|
|
107
|
+
requirements: analyzedRequirements,
|
|
108
|
+
priorityBreakdown: {
|
|
109
|
+
mustHave: analyzedRequirements.filter(r => r.priority === 'must-have').length,
|
|
110
|
+
shouldHave: analyzedRequirements.filter(r => r.priority === 'should-have').length,
|
|
111
|
+
couldHave: analyzedRequirements.filter(r => r.priority === 'could-have').length,
|
|
112
|
+
wontHave: analyzedRequirements.filter(r => r.priority === 'wont-have').length
|
|
113
|
+
},
|
|
114
|
+
typeBreakdown: {
|
|
115
|
+
functional: analyzedRequirements.filter(r => r.type === 'functional').length,
|
|
116
|
+
nonFunctional: analyzedRequirements.filter(r => r.type === 'non-functional').length,
|
|
117
|
+
business: analyzedRequirements.filter(r => r.type === 'business').length,
|
|
118
|
+
technical: analyzedRequirements.filter(r => r.type === 'technical').length
|
|
119
|
+
},
|
|
120
|
+
riskAssessment: {
|
|
121
|
+
high: analyzedRequirements.filter(r => r.risk === 'high').length,
|
|
122
|
+
medium: analyzedRequirements.filter(r => r.risk === 'medium').length,
|
|
123
|
+
low: analyzedRequirements.filter(r => r.risk === 'low').length
|
|
124
|
+
},
|
|
125
|
+
recommendations: [
|
|
126
|
+
'Focus on Must-Have requirements for MVP',
|
|
127
|
+
'Validate high-risk requirements early',
|
|
128
|
+
'Consider Should-Have items for post-MVP releases',
|
|
129
|
+
'Review Could-Have items based on resource availability',
|
|
130
|
+
'Plan technical requirements to support functional ones'
|
|
131
|
+
],
|
|
132
|
+
constraints: constraints,
|
|
133
|
+
status: 'success'
|
|
134
|
+
};
|
|
135
|
+
// Format output
|
|
136
|
+
let formattedOutput = `# Requirements Analysis\n\n`;
|
|
137
|
+
formattedOutput += `**Analysis Method:** ${analysisMethod.toUpperCase()} \n`;
|
|
138
|
+
formattedOutput += `**Total Requirements:** ${analysis.totalRequirements} \n`;
|
|
139
|
+
formattedOutput += `**Constraints:** ${constraints}\n\n`;
|
|
140
|
+
formattedOutput += `## Priority Breakdown (MoSCoW)\n`;
|
|
141
|
+
formattedOutput += `- **Must Have:** ${analysis.priorityBreakdown.mustHave}\n`;
|
|
142
|
+
formattedOutput += `- **Should Have:** ${analysis.priorityBreakdown.shouldHave}\n`;
|
|
143
|
+
formattedOutput += `- **Could Have:** ${analysis.priorityBreakdown.couldHave}\n`;
|
|
144
|
+
formattedOutput += `- **Won't Have:** ${analysis.priorityBreakdown.wontHave}\n\n`;
|
|
145
|
+
formattedOutput += `## Risk Assessment\n`;
|
|
146
|
+
formattedOutput += `- **High Risk:** ${analysis.riskAssessment.high} requirements\n`;
|
|
147
|
+
formattedOutput += `- **Medium Risk:** ${analysis.riskAssessment.medium} requirements\n`;
|
|
148
|
+
formattedOutput += `- **Low Risk:** ${analysis.riskAssessment.low} requirements\n\n`;
|
|
149
|
+
formattedOutput += `## Detailed Requirements\n\n`;
|
|
150
|
+
// Group by priority
|
|
151
|
+
const priorities = ['must-have', 'should-have', 'could-have', 'wont-have'];
|
|
152
|
+
priorities.forEach(priority => {
|
|
153
|
+
const reqsForPriority = analyzedRequirements.filter(r => r.priority === priority);
|
|
154
|
+
if (reqsForPriority.length > 0) {
|
|
155
|
+
formattedOutput += `### ${priority.toUpperCase().replace('-', ' ')} (${reqsForPriority.length})\n\n`;
|
|
156
|
+
reqsForPriority.forEach(req => {
|
|
157
|
+
formattedOutput += `**${req.id}:** ${req.title} \n`;
|
|
158
|
+
formattedOutput += `*Type:* ${req.type} | *Complexity:* ${req.complexity} | *Risk:* ${req.risk} | *Effort:* ${req.estimatedEffort} \n`;
|
|
159
|
+
formattedOutput += `*Stakeholders:* ${req.stakeholders.join(', ')}\n\n`;
|
|
160
|
+
});
|
|
161
|
+
}
|
|
162
|
+
});
|
|
163
|
+
formattedOutput += `## Recommendations\n`;
|
|
164
|
+
analysis.recommendations.forEach(rec => {
|
|
165
|
+
formattedOutput += `- ${rec}\n`;
|
|
166
|
+
});
|
|
167
|
+
return {
|
|
168
|
+
content: [{ type: 'text', text: formattedOutput }]
|
|
169
|
+
};
|
|
170
|
+
}
|
|
171
|
+
//# sourceMappingURL=analyzeRequirements.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"analyzeRequirements.js","sourceRoot":"","sources":["../../../src/tools/planning/analyzeRequirements.ts"],"names":[],"mappings":"AAAA,yCAAyC;AAiBzC,MAAM,CAAC,MAAM,6BAA6B,GAAmB;IAC3D,IAAI,EAAE,sBAAsB;IAC5B,WAAW,EAAE,6GAA6G;IAC1H,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,YAAY,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,iCAAiC,EAAE;YAChF,YAAY,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,wDAAwD,EAAE;YACvG,WAAW,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,mDAAmD,EAAE;YACjG,cAAc,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,iBAAiB,EAAE,IAAI,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,cAAc,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE;SAChI;QACD,QAAQ,EAAE,CAAC,cAAc,CAAC;KAC3B;IACD,WAAW,EAAE;QACX,KAAK,EAAE,sBAAsB;QAC7B,QAAQ,EAAE,CAAC,MAAM,EAAE,WAAW,CAAC;QAC/B,YAAY,EAAE,IAAI;QAClB,eAAe,EAAE,KAAK;QACtB,cAAc,EAAE,IAAI;QACpB,aAAa,EAAE,KAAK;KACrB;CACF,CAAC;AAEF,MAAM,CAAC,KAAK,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,CAAC,CAAC;QAClF,IAAI,eAAe,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YAC/B,eAAe,IAAI,OAAO,QAAQ,CAAC,WAAW,EAAE,CAAC,OAAO,CAAC,GAAG,EAAE,GAAG,CAAC,KAAK,eAAe,CAAC,MAAM,OAAO,CAAC;YACrG,eAAe,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE;gBAC5B,eAAe,IAAI,KAAK,GAAG,CAAC,EAAE,OAAO,GAAG,CAAC,KAAK,MAAM,CAAC;gBACrD,eAAe,IAAI,WAAW,GAAG,CAAC,IAAI,oBAAoB,GAAG,CAAC,UAAU,cAAc,GAAG,CAAC,IAAI,gBAAgB,GAAG,CAAC,eAAe,MAAM,CAAC;gBACxI,eAAe,IAAI,mBAAmB,GAAG,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC;YAC1E,CAAC,CAAC,CAAC;QACL,CAAC;IACH,CAAC,CAAC,CAAC;IAEH,eAAe,IAAI,sBAAsB,CAAC;IAC1C,QAAQ,CAAC,eAAe,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE;QACrC,eAAe,IAAI,KAAK,GAAG,IAAI,CAAC;IAClC,CAAC,CAAC,CAAC;IAEH,OAAO;QACL,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,eAAe,EAAE,CAAC;KACnD,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ToolResult, ToolDefinition } from '../../types/tool.js';
|
|
2
|
+
export declare const createUserStoriesDefinition: ToolDefinition;
|
|
3
|
+
export declare function createUserStories(args: {
|
|
4
|
+
features: string;
|
|
5
|
+
userTypes?: string;
|
|
6
|
+
priority?: string;
|
|
7
|
+
includeAcceptanceCriteria?: boolean;
|
|
8
|
+
}): Promise<ToolResult>;
|
|
9
|
+
//# sourceMappingURL=createUserStories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createUserStories.d.ts","sourceRoot":"","sources":["../../../src/tools/planning/createUserStories.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAejE,eAAO,MAAM,2BAA2B,EAAE,cAqBzC,CAAC;AAEF,wBAAsB,iBAAiB,CAAC,IAAI,EAAE;IAC5C,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,yBAAyB,CAAC,EAAE,OAAO,CAAC;CACrC,GAAG,OAAO,CAAC,UAAU,CAAC,CA+GtB"}
|