sdd-mcp-server 3.4.0 → 3.5.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/README.md +75 -40
- package/dist/adapters/cli/SDDToolAdapter.js +3 -3
- package/dist/adapters/cli/SDDToolAdapter.js.map +1 -1
- package/dist/application/services/staticSteering.js +2 -4
- package/dist/application/services/staticSteering.js.map +1 -1
- package/dist/cli/install-skills.d.ts +10 -32
- package/dist/cli/install-skills.js +213 -176
- package/dist/cli/install-skills.js.map +1 -1
- package/dist/cli/install-target.d.ts +127 -0
- package/dist/cli/install-target.js +127 -0
- package/dist/cli/install-target.js.map +1 -0
- package/dist/cli/migrate-steering.js +13 -13
- package/dist/cli/migrate-steering.js.map +1 -1
- package/dist/cli/sdd-mcp-cli.d.ts +1 -1
- package/dist/cli/sdd-mcp-cli.js +14 -10
- package/dist/cli/sdd-mcp-cli.js.map +1 -1
- package/dist/cli/tool-support/antigravity.d.ts +6 -1
- package/dist/cli/tool-support/antigravity.js +55 -12
- package/dist/cli/tool-support/antigravity.js.map +1 -1
- package/dist/cli/tool-support/claude-code.d.ts +5 -0
- package/dist/cli/tool-support/claude-code.js +93 -0
- package/dist/cli/tool-support/claude-code.js.map +1 -0
- package/dist/cli/tool-support/codex.d.ts +18 -1
- package/dist/cli/tool-support/codex.js +161 -36
- package/dist/cli/tool-support/codex.js.map +1 -1
- package/dist/cli/tool-support/index.d.ts +2 -2
- package/dist/cli/tool-support/root-guidance.d.ts +9 -0
- package/dist/cli/tool-support/root-guidance.js +40 -0
- package/dist/cli/tool-support/root-guidance.js.map +1 -0
- package/dist/cli/tool-support/target-agent-renderer.d.ts +11 -0
- package/dist/cli/tool-support/target-agent-renderer.js +52 -0
- package/dist/cli/tool-support/target-agent-renderer.js.map +1 -0
- package/dist/cli/tool-support/target-installer.d.ts +40 -0
- package/dist/cli/tool-support/target-installer.js +116 -0
- package/dist/cli/tool-support/target-installer.js.map +1 -0
- package/dist/cli/utils/gitignore-manager.d.ts +5 -0
- package/dist/cli/utils/gitignore-manager.js +85 -0
- package/dist/cli/utils/gitignore-manager.js.map +1 -0
- package/dist/cli/utils/preserving-writer.d.ts +13 -0
- package/dist/cli/utils/preserving-writer.js +106 -0
- package/dist/cli/utils/preserving-writer.js.map +1 -0
- package/dist/hooks/HookLoader.js +9 -1
- package/dist/hooks/HookLoader.js.map +1 -1
- package/dist/index.js +6 -6
- package/dist/index.js.map +1 -1
- package/dist/shared/BaseManager.d.ts +10 -1
- package/dist/shared/BaseManager.js +34 -5
- package/dist/shared/BaseManager.js.map +1 -1
- package/dist/skills/SkillManager.d.ts +3 -1
- package/dist/skills/SkillManager.js +15 -3
- package/dist/skills/SkillManager.js.map +1 -1
- package/package.json +1 -1
- package/sdd-entry.js +2 -2
- package/skills/sdd-design/SKILL.md +4 -0
- package/skills/sdd-implement/SKILL.md +4 -0
- package/skills/sdd-requirements/SKILL.md +4 -0
- package/skills/sdd-review/SKILL.md +4 -0
- package/skills/sdd-security-check/SKILL.md +4 -0
- package/skills/sdd-steering/SKILL.md +4 -0
- package/skills/sdd-steering-custom/SKILL.md +4 -0
- package/skills/sdd-tasks/SKILL.md +4 -0
- package/skills/sdd-test-gen/SKILL.md +4 -0
- package/skills/simple-task/SKILL.md +4 -0
- package/templates/CLAUDE.md +2 -36
- package/templates/codex-AGENTS.md +1 -2
- package/templates/codex-hook-runner.js +85 -0
- package/dist/utils/sddPaths.d.ts +0 -69
- package/dist/utils/sddPaths.js +0 -138
- package/dist/utils/sddPaths.js.map +0 -1
package/dist/utils/sddPaths.js
DELETED
|
@@ -1,138 +0,0 @@
|
|
|
1
|
-
import * as fs from 'fs';
|
|
2
|
-
import * as path from 'path';
|
|
3
|
-
/**
|
|
4
|
-
* SDD directory names
|
|
5
|
-
* .spec is the new standard (v2.1.0+)
|
|
6
|
-
* .kiro is legacy (for backwards compatibility)
|
|
7
|
-
*/
|
|
8
|
-
export const SDD_DIR = '.spec';
|
|
9
|
-
export const SDD_DIR_LEGACY = '.kiro';
|
|
10
|
-
/**
|
|
11
|
-
* Check if a directory exists
|
|
12
|
-
* @param dirPath - Directory path to check
|
|
13
|
-
* @returns true if directory exists
|
|
14
|
-
*/
|
|
15
|
-
function dirExists(dirPath) {
|
|
16
|
-
try {
|
|
17
|
-
return fs.statSync(dirPath).isDirectory();
|
|
18
|
-
}
|
|
19
|
-
catch {
|
|
20
|
-
return false;
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
/**
|
|
24
|
-
* Get the SDD root directory for a project
|
|
25
|
-
* Prefers .spec, falls back to .kiro for legacy projects
|
|
26
|
-
*
|
|
27
|
-
* @param projectPath - Project root path
|
|
28
|
-
* @returns SDD root directory path (.spec or .kiro)
|
|
29
|
-
*/
|
|
30
|
-
export function getSddRoot(projectPath) {
|
|
31
|
-
const specPath = path.join(projectPath, SDD_DIR);
|
|
32
|
-
const kiroPath = path.join(projectPath, SDD_DIR_LEGACY);
|
|
33
|
-
// Prefer .spec if it exists
|
|
34
|
-
if (dirExists(specPath)) {
|
|
35
|
-
return specPath;
|
|
36
|
-
}
|
|
37
|
-
// Fall back to .kiro for legacy projects
|
|
38
|
-
if (dirExists(kiroPath)) {
|
|
39
|
-
return kiroPath;
|
|
40
|
-
}
|
|
41
|
-
// Default to .spec for new projects
|
|
42
|
-
return specPath;
|
|
43
|
-
}
|
|
44
|
-
/**
|
|
45
|
-
* Get the SDD directory name for a project
|
|
46
|
-
* Returns the actual directory name used (.spec or .kiro)
|
|
47
|
-
*
|
|
48
|
-
* @param projectPath - Project root path
|
|
49
|
-
* @returns Directory name (.spec or .kiro)
|
|
50
|
-
*/
|
|
51
|
-
export function getSddDirName(projectPath) {
|
|
52
|
-
const specPath = path.join(projectPath, SDD_DIR);
|
|
53
|
-
const kiroPath = path.join(projectPath, SDD_DIR_LEGACY);
|
|
54
|
-
if (dirExists(specPath)) {
|
|
55
|
-
return SDD_DIR;
|
|
56
|
-
}
|
|
57
|
-
if (dirExists(kiroPath)) {
|
|
58
|
-
return SDD_DIR_LEGACY;
|
|
59
|
-
}
|
|
60
|
-
return SDD_DIR;
|
|
61
|
-
}
|
|
62
|
-
/**
|
|
63
|
-
* Get the specs directory path
|
|
64
|
-
* @param projectPath - Project root path
|
|
65
|
-
* @returns Specs directory path
|
|
66
|
-
*/
|
|
67
|
-
export function getSpecsPath(projectPath) {
|
|
68
|
-
return path.join(getSddRoot(projectPath), 'specs');
|
|
69
|
-
}
|
|
70
|
-
/**
|
|
71
|
-
* Get the steering directory path
|
|
72
|
-
* @param projectPath - Project root path
|
|
73
|
-
* @returns Steering directory path
|
|
74
|
-
*/
|
|
75
|
-
export function getSteeringPath(projectPath) {
|
|
76
|
-
return path.join(getSddRoot(projectPath), 'steering');
|
|
77
|
-
}
|
|
78
|
-
/**
|
|
79
|
-
* Get a feature's spec directory path
|
|
80
|
-
* @param projectPath - Project root path
|
|
81
|
-
* @param featureName - Feature name
|
|
82
|
-
* @returns Feature spec directory path
|
|
83
|
-
*/
|
|
84
|
-
export function getFeatureSpecPath(projectPath, featureName) {
|
|
85
|
-
return path.join(getSpecsPath(projectPath), featureName);
|
|
86
|
-
}
|
|
87
|
-
/**
|
|
88
|
-
* Get the spec.json file path for a feature
|
|
89
|
-
* @param projectPath - Project root path
|
|
90
|
-
* @param featureName - Feature name
|
|
91
|
-
* @returns spec.json file path
|
|
92
|
-
*/
|
|
93
|
-
export function getSpecJsonPath(projectPath, featureName) {
|
|
94
|
-
return path.join(getFeatureSpecPath(projectPath, featureName), 'spec.json');
|
|
95
|
-
}
|
|
96
|
-
/**
|
|
97
|
-
* Check if this is a legacy project (using .kiro instead of .spec)
|
|
98
|
-
* @param projectPath - Project root path
|
|
99
|
-
* @returns true if project uses .kiro
|
|
100
|
-
*/
|
|
101
|
-
export function isLegacyProject(projectPath) {
|
|
102
|
-
const specPath = path.join(projectPath, SDD_DIR);
|
|
103
|
-
const kiroPath = path.join(projectPath, SDD_DIR_LEGACY);
|
|
104
|
-
// If .spec exists, not legacy
|
|
105
|
-
if (dirExists(specPath)) {
|
|
106
|
-
return false;
|
|
107
|
-
}
|
|
108
|
-
// If only .kiro exists, it's legacy
|
|
109
|
-
return dirExists(kiroPath);
|
|
110
|
-
}
|
|
111
|
-
/**
|
|
112
|
-
* Get the appropriate SDD directory for new projects
|
|
113
|
-
* Always returns .spec for new projects
|
|
114
|
-
*
|
|
115
|
-
* @param projectPath - Project root path
|
|
116
|
-
* @returns Path to create SDD directory (.spec)
|
|
117
|
-
*/
|
|
118
|
-
export function getNewSddRoot(projectPath) {
|
|
119
|
-
return path.join(projectPath, SDD_DIR);
|
|
120
|
-
}
|
|
121
|
-
/**
|
|
122
|
-
* Create all required SDD directories for a new project
|
|
123
|
-
* @param projectPath - Project root path
|
|
124
|
-
* @returns Created paths
|
|
125
|
-
*/
|
|
126
|
-
export function createSddDirectories(projectPath) {
|
|
127
|
-
const sddRoot = getNewSddRoot(projectPath);
|
|
128
|
-
const paths = [
|
|
129
|
-
sddRoot,
|
|
130
|
-
path.join(sddRoot, 'specs'),
|
|
131
|
-
path.join(sddRoot, 'steering'),
|
|
132
|
-
];
|
|
133
|
-
for (const p of paths) {
|
|
134
|
-
fs.mkdirSync(p, { recursive: true });
|
|
135
|
-
}
|
|
136
|
-
return paths;
|
|
137
|
-
}
|
|
138
|
-
//# sourceMappingURL=sddPaths.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"sddPaths.js","sourceRoot":"","sources":["../../src/utils/sddPaths.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,IAAI,CAAC;AACzB,OAAO,KAAK,IAAI,MAAM,MAAM,CAAC;AAE7B;;;;GAIG;AACH,MAAM,CAAC,MAAM,OAAO,GAAG,OAAO,CAAC;AAC/B,MAAM,CAAC,MAAM,cAAc,GAAG,OAAO,CAAC;AAEtC;;;;GAIG;AACH,SAAS,SAAS,CAAC,OAAe;IAChC,IAAI,CAAC;QACH,OAAO,EAAE,CAA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