MCPcopy Create free account
hub / github.com/Pimzino/claude-code-spec-workflow / constructor

Method constructor

src/setup.ts:34–51  ·  view source on GitHub ↗
(projectRoot: string = process.cwd())

Source from the content-addressed store, hash-verified

32 private markdownAgentsDir: string;
33
34 constructor(projectRoot: string = process.cwd()) {
35 this.projectRoot = projectRoot;
36 this.claudeDir = join(projectRoot, '.claude');
37 this.commandsDir = join(this.claudeDir, 'commands');
38 this.specsDir = join(this.claudeDir, 'specs');
39 this.templatesDir = join(this.claudeDir, 'templates');
40 // scriptsDir initialization removed in v1.2.5
41 this.steeringDir = join(this.claudeDir, 'steering');
42 this.bugsDir = join(this.claudeDir, 'bugs');
43 this.agentsDir = join(this.claudeDir, 'agents');
44 // Agents are now mandatory - no longer configurable
45
46 // Initialize source markdown directories
47 this.markdownDir = join(__dirname, 'markdown');
48 this.markdownCommandsDir = join(this.markdownDir, 'commands');
49 this.markdownTemplatesDir = join(this.markdownDir, 'templates');
50 this.markdownAgentsDir = join(this.markdownDir, 'agents');
51 }
52
53 async claudeDirectoryExists(): Promise<boolean> {
54 try {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected