metacoding 1.0.0 → 1.1.1
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 +79 -42
- package/LICENSE +1 -1
- package/lib/commands/init.d.ts.map +1 -1
- package/lib/commands/init.js +1 -1
- package/lib/commands/init.js.map +1 -1
- package/lib/services/template-manager.d.ts +4 -1
- package/lib/services/template-manager.d.ts.map +1 -1
- package/lib/services/template-manager.js +129 -10
- package/lib/services/template-manager.js.map +1 -1
- package/lib/services/vscode.js +1 -1
- package/lib/services/vscode.js.map +1 -1
- package/package.json +12 -4
- package/templates/general/code-review.instructions.md +265 -0
- package/templates/general/{files/copilot-instructions.md.template → copilot-instructions.md} +97 -140
- package/templates/{python/files → general}/docs-update.instructions.md +45 -32
- package/templates/general/release.instructions.md +242 -0
- package/templates/general/test-runner.instructions.md +188 -0
- package/templates/node/nodejs.coding.instructions.md +249 -0
- package/templates/node/nodejs.docs.instructions.md +234 -0
- package/templates/node/nodejs.testing.instructions.md +373 -0
- package/templates/python/python.coding.instructions.md +339 -0
- package/templates/python/python.docs.instructions.md +1147 -0
- package/templates/python/python.testing.instructions.md +1074 -0
- package/templates/react/react.coding.instructions.md +695 -0
- package/templates/react/react.docs.instructions.md +427 -0
- package/templates/react/react.testing.instructions.md +193 -0
- package/templates/react/test-runner.instructions.md +135 -0
- package/templates/typescript/template.json +16 -0
- package/templates/typescript/typescript.coding.instructions.md +368 -0
- package/templates/typescript/typescript.docs.instructions.md +734 -0
- package/templates/typescript/typescript.testing.instructions.md +740 -0
- package/templates/general/files/code-review.instructions.md +0 -111
- package/templates/general/files/docs-update.instructions.md +0 -203
- package/templates/general/files/release.instructions.md +0 -72
- package/templates/general/files/test-runner.instructions.md +0 -107
- package/templates/node/files/code-review.instructions.md +0 -222
- package/templates/node/files/copilot-instructions.md.template +0 -391
- package/templates/node/files/docs-update.instructions.md +0 -203
- package/templates/node/files/release.instructions.md +0 -72
- package/templates/node/files/test-runner.instructions.md +0 -108
- package/templates/python/files/code-review.instructions.md +0 -215
- package/templates/python/files/copilot-instructions.md.template +0 -418
- package/templates/python/files/release.instructions.md +0 -72
- package/templates/python/files/test-runner.instructions.md +0 -108
- package/templates/react/files/code-review.instructions.md +0 -160
- package/templates/react/files/copilot-instructions.md.template +0 -472
- package/templates/react/files/docs-update.instructions.md +0 -203
- package/templates/react/files/release.instructions.md +0 -72
- package/templates/react/files/test-runner.instructions.md +0 -108
package/CHANGELOG.md
CHANGED
|
@@ -5,50 +5,25 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
-
## [
|
|
8
|
+
## [Unreleased]
|
|
9
9
|
|
|
10
10
|
### Added
|
|
11
11
|
|
|
12
|
-
-
|
|
13
|
-
- **Interactive CLI Tool**: `metacoding` command with init, validate, and update subcommands
|
|
14
|
-
- **Template System**: Configurable templates for different project types (general, react, node, python)
|
|
15
|
-
- **Project Detection**: Automatic detection of project type, tech stack, and existing configuration
|
|
16
|
-
- **VS Code Integration**: Automatic VS Code settings configuration for GitHub Copilot
|
|
17
|
-
- **Interactive Setup**: Guided project configuration with prompts for project details
|
|
18
|
-
- **TypeScript Implementation**: Full TypeScript codebase with comprehensive type definitions
|
|
19
|
-
- **Test Suite**: Unit and integration tests with >80% coverage target
|
|
20
|
-
- **Professional CLI Experience**: Color output, progress indicators, and helpful error messages
|
|
12
|
+
- Future enhancements and features will be listed here
|
|
21
13
|
|
|
22
|
-
|
|
14
|
+
## [1.1.1] - 2025-06-22
|
|
23
15
|
|
|
24
|
-
|
|
25
|
-
- **Setup Process**: From 6-step manual process to single `metacoding init` command
|
|
26
|
-
- **User Experience**: From error-prone manual setup to guided, validated automation
|
|
27
|
-
- **Template Processing**: Dynamic variable substitution for project-specific customization
|
|
28
|
-
- **File Management**: Automatic directory creation, file validation, and conflict resolution
|
|
16
|
+
### Fixed
|
|
29
17
|
|
|
30
|
-
|
|
18
|
+
- **General Template TypeScript Support**: Fixed issue where selecting TypeScript with general template loaded all language-specific instruction files instead of only TypeScript files
|
|
19
|
+
- **Template System**: Updated loadInstructionFiles method to properly filter instruction files based on technology choices
|
|
20
|
+
- **Build Configuration**: Fixed TypeScript configuration to exclude test files from production build
|
|
31
21
|
|
|
32
|
-
|
|
33
|
-
- **Build System**: TypeScript compilation with source maps and declarations
|
|
34
|
-
- **Testing**: Jest test framework with coverage reporting
|
|
35
|
-
- **Code Quality**: ESLint, Prettier, and strict TypeScript configuration
|
|
36
|
-
- **Distribution**: Professional npm package with proper semver and release management
|
|
37
|
-
|
|
38
|
-
### Breaking Changes
|
|
39
|
-
|
|
40
|
-
- **Installation**: Manual setup method is deprecated in favor of npm package
|
|
41
|
-
- **File Structure**: Templates now use `{{VARIABLE}}` syntax instead of `[placeholder]` format
|
|
42
|
-
|
|
43
|
-
### Migration Guide
|
|
44
|
-
|
|
45
|
-
Existing manual installations can be migrated by:
|
|
22
|
+
### Changed
|
|
46
23
|
|
|
47
|
-
|
|
48
|
-
2. Running `metacoding validate` to check current setup
|
|
49
|
-
3. Running `metacoding update` to migrate to latest format
|
|
24
|
+
- **Package Build**: Improved TypeScript compilation configuration for cleaner npm package output
|
|
50
25
|
|
|
51
|
-
## [
|
|
26
|
+
## [1.1.0] - 2025-06-22
|
|
52
27
|
|
|
53
28
|
### Added
|
|
54
29
|
|
|
@@ -67,6 +42,11 @@ Existing manual installations can be migrated by:
|
|
|
67
42
|
- Present-tense headers reflecting current state
|
|
68
43
|
- **Workflow Enforcement Rules**: Quality gates and violation handling procedures
|
|
69
44
|
- **Enhanced Role and Persona**: Updated to emphasize strict workflow adherence
|
|
45
|
+
- **Instruction File Architecture**: Implemented composable instruction system eliminating duplication
|
|
46
|
+
- Created shared TypeScript instruction component for Node.js and React templates
|
|
47
|
+
- Established single source of truth for universal instruction files
|
|
48
|
+
- Built template inheritance system for automatic instruction composition
|
|
49
|
+
- Achieved clean separation of concerns with maintainable architecture
|
|
70
50
|
|
|
71
51
|
### Changed
|
|
72
52
|
|
|
@@ -75,17 +55,74 @@ Existing manual installations can be migrated by:
|
|
|
75
55
|
- **README**: Expanded to include workflow details and status transparency standards
|
|
76
56
|
- **File Structure**: Added `/_meta` and `/test` directories for task and test documentation
|
|
77
57
|
|
|
58
|
+
### Fixed
|
|
59
|
+
|
|
60
|
+
- **Template Architecture Duplication**: Eliminated duplication of TypeScript instruction files across templates
|
|
61
|
+
- Removed duplicated files from `/general/`, `/node/`, and `/react/` templates
|
|
62
|
+
- Implemented single source of truth principle for shared instruction components
|
|
63
|
+
- Fixed maintenance overhead from keeping multiple copies of identical files synchronized
|
|
64
|
+
|
|
78
65
|
### Enhanced
|
|
79
66
|
|
|
80
|
-
-
|
|
81
|
-
-
|
|
82
|
-
-
|
|
83
|
-
-
|
|
67
|
+
- **Template Inheritance System**: Implemented composable instruction file architecture
|
|
68
|
+
- Node.js and React templates now automatically inherit TypeScript instructions
|
|
69
|
+
- Template loading follows hierarchical order: universal → shared language → template-specific
|
|
70
|
+
- Template manager excludes shared components from standalone template selection
|
|
71
|
+
- **Maintainability**: Architectural improvements reduce long-term maintenance burden
|
|
72
|
+
- Changes to shared instructions automatically propagate to dependent templates
|
|
73
|
+
- Clean separation of concerns with each directory containing only relevant files
|
|
74
|
+
- Single source of truth for all TypeScript-related development guidance
|
|
75
|
+
- **Code Quality**: Mandatory TDD approach with comprehensive workflow enforcement
|
|
76
|
+
- **Documentation Standards**: Status-transparent language and clear architectural documentation
|
|
77
|
+
- **Team Collaboration**: Consistent workflow enforcement across all development tasks
|
|
78
|
+
- **Risk Mitigation**: Incremental, tested changes with proper validation gates
|
|
84
79
|
|
|
85
80
|
## [1.0.0] - 2025-06-21
|
|
86
81
|
|
|
87
82
|
### Added
|
|
88
83
|
|
|
89
|
-
-
|
|
90
|
-
-
|
|
91
|
-
-
|
|
84
|
+
- **NPM Package Distribution**: Complete transformation from manual file copying to professional npm package
|
|
85
|
+
- **Interactive CLI Tool**: `metacoding` command with init, validate, and update subcommands
|
|
86
|
+
- **Template System**: Configurable templates for different project types (general, react, node, python)
|
|
87
|
+
- **Project Detection**: Automatic detection of project type, tech stack, and existing configuration
|
|
88
|
+
- **VS Code Integration**: Automatic VS Code settings configuration for GitHub Copilot
|
|
89
|
+
- **Interactive Setup**: Guided project configuration with prompts for project details
|
|
90
|
+
- **TypeScript Implementation**: Full TypeScript codebase with comprehensive type definitions
|
|
91
|
+
- **Test Suite**: Unit and integration tests with >80% coverage target achieved
|
|
92
|
+
- **Professional CLI Experience**: Color output, progress indicators, and helpful error messages
|
|
93
|
+
|
|
94
|
+
### Changed
|
|
95
|
+
|
|
96
|
+
- **Installation Method**: From manual file download to simple `npm install -g metacoding`
|
|
97
|
+
- **Setup Process**: From 6-step manual process to single `metacoding init` command
|
|
98
|
+
- **User Experience**: From error-prone manual setup to guided, validated automation
|
|
99
|
+
- **Template Processing**: Dynamic variable substitution for project-specific customization
|
|
100
|
+
- **File Management**: Automatic directory creation, file validation, and conflict resolution
|
|
101
|
+
|
|
102
|
+
### Fixed
|
|
103
|
+
|
|
104
|
+
- **Template Architecture**: Updated all tests to match current template directory structure
|
|
105
|
+
- **File Organization**: Removed obsolete `/files/` subdirectories from template structure
|
|
106
|
+
- **Test Coverage**: All 13 test suites and 140 tests now pass with comprehensive coverage
|
|
107
|
+
- **Naming Conventions**: Updated test expectations to match actual instruction file names
|
|
108
|
+
|
|
109
|
+
### Technical Details
|
|
110
|
+
|
|
111
|
+
- **Dependencies**: Commander.js for CLI, Inquirer for prompts, Chalk for colors, fs-extra for file operations
|
|
112
|
+
- **Build System**: TypeScript compilation with source maps and declarations
|
|
113
|
+
- **Testing**: Jest test framework with coverage reporting
|
|
114
|
+
- **Code Quality**: ESLint, Prettier, and strict TypeScript configuration
|
|
115
|
+
- **Distribution**: Professional npm package with proper semver and release management
|
|
116
|
+
|
|
117
|
+
### Breaking Changes
|
|
118
|
+
|
|
119
|
+
- **Installation**: Manual setup method is deprecated in favor of npm package
|
|
120
|
+
- **File Structure**: Templates now use `{{VARIABLE}}` syntax instead of `[placeholder]` format
|
|
121
|
+
|
|
122
|
+
### Migration Guide
|
|
123
|
+
|
|
124
|
+
Existing manual installations can be migrated by:
|
|
125
|
+
|
|
126
|
+
1. Installing the npm package: `npm install -g metacoding`
|
|
127
|
+
2. Running `metacoding validate` to check current setup
|
|
128
|
+
3. Running `metacoding update` to migrate to latest format
|
package/LICENSE
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../../src/commands/init.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAAiB,MAAM,UAAU,CAAC;AAStD,qBAAa,WAAW;IACtB,OAAO,CAAC,eAAe,CAAkB;IACzC,OAAO,CAAC,UAAU,CAAoB;IACtC,OAAO,CAAC,aAAa,CAAgB;IACrC,OAAO,CAAC,eAAe,CAAkB;;IAYnC,OAAO,CAAC,OAAO,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC;YAqCpC,uBAAuB;YAgGvB,YAAY;
|
|
1
|
+
{"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../../src/commands/init.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAAiB,MAAM,UAAU,CAAC;AAStD,qBAAa,WAAW;IACtB,OAAO,CAAC,eAAe,CAAkB;IACzC,OAAO,CAAC,UAAU,CAAoB;IACtC,OAAO,CAAC,aAAa,CAAgB;IACrC,OAAO,CAAC,eAAe,CAAkB;;IAYnC,OAAO,CAAC,OAAO,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC;YAqCpC,uBAAuB;YAgGvB,YAAY;IA0C1B,OAAO,CAAC,uBAAuB;IAgB/B,OAAO,CAAC,mBAAmB;IAgB3B,OAAO,CAAC,gBAAgB;CAezB"}
|
package/lib/commands/init.js
CHANGED
|
@@ -130,7 +130,7 @@ class InitCommand {
|
|
|
130
130
|
try {
|
|
131
131
|
await this.fileSystem.ensureDirectoryExists('.github');
|
|
132
132
|
await this.fileSystem.ensureDirectoryExists('.github/instructions');
|
|
133
|
-
const template = await this.templateManager.getTemplate(config.projectType);
|
|
133
|
+
const template = await this.templateManager.getTemplate(config.projectType, config);
|
|
134
134
|
const processedFiles = await this.templateManager.processTemplate(template, config);
|
|
135
135
|
for (const file of processedFiles) {
|
|
136
136
|
await this.fileSystem.writeFile(file.path, file.content);
|
package/lib/commands/init.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"init.js","sourceRoot":"","sources":["../../src/commands/init.ts"],"names":[],"mappings":";;;;;;AAAA,kDAA0B;AAC1B,wDAAgC;AAChC,8CAAsB;AAEtB,mEAA+D;AAC/D,uDAA2D;AAC3D,+CAAmD;AACnD,mEAA+D;AAK/D,MAAa,WAAW;IAMtB;QACE,IAAI,CAAC,eAAe,GAAG,IAAI,kCAAe,EAAE,CAAC;QAC7C,IAAI,CAAC,UAAU,GAAG,IAAI,8BAAiB,EAAE,CAAC;QAC1C,IAAI,CAAC,aAAa,GAAG,IAAI,sBAAa,EAAE,CAAC;QACzC,IAAI,CAAC,eAAe,GAAG,IAAI,kCAAe,EAAE,CAAC;IAC/C,CAAC;IAKD,KAAK,CAAC,OAAO,CAAC,OAAoB;QAChC,OAAO,CAAC,GAAG,CAAC,eAAK,CAAC,IAAI,CAAC,IAAI,CAAC,mCAAmC,CAAC,CAAC,CAAC;QAGlE,MAAM,WAAW,GAAG,MAAM,IAAI,CAAC,eAAe,CAAC,aAAa,EAAE,CAAC;QAG/D,IAAI,CAAC,MAAM,IAAI,CAAC,UAAU,CAAC,iBAAiB,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC;YAClE,MAAM,EAAE,OAAO,EAAE,GAAG,MAAM,kBAAQ,CAAC,MAAM,CAAC;gBACxC;oBACE,IAAI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QAAQ,WAAW,EAAE,CAAC;YACpB,KAAK,OAAO;gBACV,OAAO,8BAA8B,CAAC;YACxC,KAAK,MAAM;gBACT,OAAO,MAAM,CAAC;YAChB,KAAK,QAAQ;gBACX,OAAO,QAAQ,CAAC;YAClB;gBACE,OAAO,MAAM,CAAC;QAClB,CAAC;IACH,CAAC;IAKO,mBAAmB,CAAC,WAAmB;QAC7C,QAAQ,WAAW,EAAE,CAAC;YACpB,KAAK,OAAO;gBACV,OAAO,MAAM,CAAC;YAChB,KAAK,MAAM;gBACT,OAAO,qBAAqB,CAAC;YAC/B,KAAK,QAAQ;gBACX,OAAO,QAAQ,CAAC;YAClB;gBACE,OAAO,qBAAqB,CAAC;QACjC,CAAC;IACH,CAAC;IAKO,gBAAgB;QACtB,OAAO,CAAC,GAAG,CAAC,eAAK,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC;QACvC,OAAO,CAAC,GAAG,CAAC,eAAK,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,mCAAmC,CAAC,CAAC;QAClE,OAAO,CAAC,GAAG,CAAC,eAAK,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,0BAA0B,CAAC,CAAC;QACzD,OAAO,CAAC,GAAG,CACT,eAAK,CAAC,GAAG,CAAC,IAAI,CAAC,EACf,wDAAwD,CACzD,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,eAAK,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,4CAA4C,CAAC,CAAC;QAC3E,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;QAChB,OAAO,CAAC,GAAG,CACT,eAAK,CAAC,IAAI,CAAC,YAAY,CAAC,EACxB,qDAAqD,CACtD,CAAC;IACJ,CAAC;CACF;AA9OD,kCA8OC"}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { Template, ProjectConfig } from '../types';
|
|
2
2
|
export declare class TemplateManager {
|
|
3
3
|
private readonly templatesDir;
|
|
4
|
+
private readonly instructionsDir;
|
|
4
5
|
constructor();
|
|
5
|
-
getTemplate(templateName: string): Promise<Template>;
|
|
6
|
+
getTemplate(templateName: string, projectConfig?: ProjectConfig): Promise<Template>;
|
|
7
|
+
private loadInstructionFiles;
|
|
6
8
|
processTemplate(template: Template, config: ProjectConfig): Promise<Array<{
|
|
7
9
|
path: string;
|
|
8
10
|
content: string;
|
|
@@ -11,5 +13,6 @@ export declare class TemplateManager {
|
|
|
11
13
|
private loadTemplateFiles;
|
|
12
14
|
private processTemplateContent;
|
|
13
15
|
private getProjectDomain;
|
|
16
|
+
private getProjectSpecificGuidance;
|
|
14
17
|
}
|
|
15
18
|
//# sourceMappingURL=template-manager.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"template-manager.d.ts","sourceRoot":"","sources":["../../src/services/template-manager.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAKnD,qBAAa,eAAe;IAC1B,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAS;;
|
|
1
|
+
{"version":3,"file":"template-manager.d.ts","sourceRoot":"","sources":["../../src/services/template-manager.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAKnD,qBAAa,eAAe;IAC1B,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAS;IACtC,OAAO,CAAC,QAAQ,CAAC,eAAe,CAAS;;IAYnC,WAAW,CACf,YAAY,EAAE,MAAM,EACpB,aAAa,CAAC,EAAE,aAAa,GAC5B,OAAO,CAAC,QAAQ,CAAC;YAwCN,oBAAoB;IA+G5B,eAAe,CACnB,QAAQ,EAAE,QAAQ,EAClB,MAAM,EAAE,aAAa,GACpB,OAAO,CAAC,KAAK,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAqC9C,qBAAqB,IAAI,OAAO,CAAC,MAAM,EAAE,CAAC;YA4BlC,iBAAiB;IAkD/B,OAAO,CAAC,sBAAsB;IA8D9B,OAAO,CAAC,gBAAgB;IAgBxB,OAAO,CAAC,0BAA0B;CA+BnC"}
|
|
@@ -39,8 +39,9 @@ const fs = __importStar(require("fs-extra"));
|
|
|
39
39
|
class TemplateManager {
|
|
40
40
|
constructor() {
|
|
41
41
|
this.templatesDir = path.join(__dirname, '../../templates');
|
|
42
|
+
this.instructionsDir = this.templatesDir;
|
|
42
43
|
}
|
|
43
|
-
async getTemplate(templateName) {
|
|
44
|
+
async getTemplate(templateName, projectConfig) {
|
|
44
45
|
const templatePath = path.join(this.templatesDir, templateName);
|
|
45
46
|
if (!(await fs.pathExists(templatePath))) {
|
|
46
47
|
throw new Error(`Template '${templateName}' not found`);
|
|
@@ -51,7 +52,9 @@ class TemplateManager {
|
|
|
51
52
|
}
|
|
52
53
|
const config = await fs.readJson(configPath);
|
|
53
54
|
const filesDir = path.join(templatePath, 'files');
|
|
54
|
-
const
|
|
55
|
+
const templateFiles = await this.loadTemplateFiles(filesDir);
|
|
56
|
+
const instructionFiles = await this.loadInstructionFiles(templateName, projectConfig);
|
|
57
|
+
const files = [...templateFiles, ...instructionFiles];
|
|
55
58
|
return {
|
|
56
59
|
name: templateName,
|
|
57
60
|
description: config.description,
|
|
@@ -60,16 +63,101 @@ class TemplateManager {
|
|
|
60
63
|
vscodeSettings: config.vscodeSettings || {},
|
|
61
64
|
};
|
|
62
65
|
}
|
|
66
|
+
async loadInstructionFiles(templateName, projectConfig) {
|
|
67
|
+
const files = [];
|
|
68
|
+
const generalPath = path.join(this.templatesDir, 'general');
|
|
69
|
+
const universalFiles = [
|
|
70
|
+
'copilot-instructions.md',
|
|
71
|
+
'docs-update.instructions.md',
|
|
72
|
+
'release.instructions.md',
|
|
73
|
+
'code-review.instructions.md',
|
|
74
|
+
];
|
|
75
|
+
for (const file of universalFiles) {
|
|
76
|
+
const filePath = path.join(generalPath, file);
|
|
77
|
+
if (await fs.pathExists(filePath)) {
|
|
78
|
+
files.push({
|
|
79
|
+
source: `general/${file}`,
|
|
80
|
+
destination: file === 'copilot-instructions.md'
|
|
81
|
+
? '.github/copilot-instructions.md'
|
|
82
|
+
: `.github/instructions/${file}`,
|
|
83
|
+
template: file === 'copilot-instructions.md',
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
const testingFiles = {
|
|
88
|
+
react: 'react.testing.instructions.md',
|
|
89
|
+
node: 'nodejs.testing.instructions.md',
|
|
90
|
+
python: 'python.testing.instructions.md',
|
|
91
|
+
general: 'test-runner.instructions.md',
|
|
92
|
+
};
|
|
93
|
+
const testingFile = testingFiles[templateName];
|
|
94
|
+
if (testingFile) {
|
|
95
|
+
const templatePath = path.join(this.templatesDir, templateName);
|
|
96
|
+
const testingFilePath = path.join(templatePath, testingFile);
|
|
97
|
+
if (await fs.pathExists(testingFilePath)) {
|
|
98
|
+
files.push({
|
|
99
|
+
source: `${templateName}/${testingFile}`,
|
|
100
|
+
destination: '.github/instructions/test-runner.instructions.md',
|
|
101
|
+
template: false,
|
|
102
|
+
});
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
const typescriptTemplates = ['node', 'react'];
|
|
106
|
+
const useTypeScript = typescriptTemplates.includes(templateName) ||
|
|
107
|
+
projectConfig?.techStack?.includes('TypeScript');
|
|
108
|
+
if (useTypeScript) {
|
|
109
|
+
const typescriptPath = path.join(this.templatesDir, 'typescript');
|
|
110
|
+
if (await fs.pathExists(typescriptPath)) {
|
|
111
|
+
const typescriptFiles = await fs.readdir(typescriptPath);
|
|
112
|
+
for (const file of typescriptFiles) {
|
|
113
|
+
if (file === 'template.json') {
|
|
114
|
+
continue;
|
|
115
|
+
}
|
|
116
|
+
if (file.endsWith('.instructions.md')) {
|
|
117
|
+
files.push({
|
|
118
|
+
source: `typescript/${file}`,
|
|
119
|
+
destination: `.github/instructions/${file}`,
|
|
120
|
+
template: false,
|
|
121
|
+
});
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
if (templateName !== 'general') {
|
|
127
|
+
const templatePath = path.join(this.templatesDir, templateName);
|
|
128
|
+
const templateFiles = await fs.readdir(templatePath);
|
|
129
|
+
for (const file of templateFiles) {
|
|
130
|
+
if (file === 'template.json' || universalFiles.includes(file)) {
|
|
131
|
+
continue;
|
|
132
|
+
}
|
|
133
|
+
if (file.endsWith('.instructions.md')) {
|
|
134
|
+
files.push({
|
|
135
|
+
source: `${templateName}/${file}`,
|
|
136
|
+
destination: `.github/instructions/${file}`,
|
|
137
|
+
template: false,
|
|
138
|
+
});
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
return files;
|
|
143
|
+
}
|
|
63
144
|
async processTemplate(template, config) {
|
|
64
145
|
const processedFiles = [];
|
|
65
146
|
for (const file of template.files) {
|
|
66
147
|
let content;
|
|
148
|
+
let filePath;
|
|
149
|
+
if (file.source.includes('/')) {
|
|
150
|
+
filePath = path.join(this.templatesDir, file.source);
|
|
151
|
+
}
|
|
152
|
+
else {
|
|
153
|
+
filePath = path.join(this.templatesDir, template.name, file.source);
|
|
154
|
+
}
|
|
67
155
|
if (file.template) {
|
|
68
|
-
const templateContent = await fs.readFile(
|
|
156
|
+
const templateContent = await fs.readFile(filePath, 'utf8');
|
|
69
157
|
content = this.processTemplateContent(templateContent, config);
|
|
70
158
|
}
|
|
71
159
|
else {
|
|
72
|
-
content = await fs.readFile(
|
|
160
|
+
content = await fs.readFile(filePath, 'utf8');
|
|
73
161
|
}
|
|
74
162
|
processedFiles.push({
|
|
75
163
|
path: file.destination,
|
|
@@ -84,10 +172,11 @@ class TemplateManager {
|
|
|
84
172
|
}
|
|
85
173
|
const items = await fs.readdir(this.templatesDir);
|
|
86
174
|
const templates = [];
|
|
175
|
+
const excludedTemplates = ['typescript'];
|
|
87
176
|
for (const item of items) {
|
|
88
177
|
const itemPath = path.join(this.templatesDir, item);
|
|
89
178
|
const stat = await fs.stat(itemPath);
|
|
90
|
-
if (stat.isDirectory()) {
|
|
179
|
+
if (stat.isDirectory() && !excludedTemplates.includes(item)) {
|
|
91
180
|
const configPath = path.join(itemPath, 'template.json');
|
|
92
181
|
if (await fs.pathExists(configPath)) {
|
|
93
182
|
templates.push(item);
|
|
@@ -110,11 +199,9 @@ class TemplateManager {
|
|
|
110
199
|
if (isTemplate) {
|
|
111
200
|
destination = item.name.replace('.template', '');
|
|
112
201
|
}
|
|
113
|
-
if (destination === 'copilot-instructions.md'
|
|
114
|
-
destination
|
|
115
|
-
|
|
116
|
-
else if (destination.endsWith('.instructions.md')) {
|
|
117
|
-
destination = `.github/instructions/${destination}`;
|
|
202
|
+
if (destination === 'copilot-instructions.md' ||
|
|
203
|
+
destination.endsWith('.instructions.md')) {
|
|
204
|
+
continue;
|
|
118
205
|
}
|
|
119
206
|
files.push({
|
|
120
207
|
source,
|
|
@@ -136,6 +223,7 @@ class TemplateManager {
|
|
|
136
223
|
TEST_FRAMEWORK: config.testFramework || 'Jest',
|
|
137
224
|
BUILD_TOOL: config.buildTool || 'TypeScript Compiler',
|
|
138
225
|
PROJECT_DOMAIN: this.getProjectDomain(config.projectType),
|
|
226
|
+
PROJECT_SPECIFIC_GUIDANCE: this.getProjectSpecificGuidance(config.projectType),
|
|
139
227
|
};
|
|
140
228
|
let processedContent = content;
|
|
141
229
|
for (const [key, value] of Object.entries(variables)) {
|
|
@@ -162,6 +250,37 @@ class TemplateManager {
|
|
|
162
250
|
return 'software';
|
|
163
251
|
}
|
|
164
252
|
}
|
|
253
|
+
getProjectSpecificGuidance(projectType) {
|
|
254
|
+
switch (projectType) {
|
|
255
|
+
case 'react':
|
|
256
|
+
return `
|
|
257
|
+
- **React Components:** Follow modern React patterns with hooks and functional components
|
|
258
|
+
- **JSX Best Practices:** Use semantic HTML elements and proper JSX syntax
|
|
259
|
+
- **State Management:** Implement efficient state management with React hooks
|
|
260
|
+
- **Component Architecture:** Build reusable, testable React components
|
|
261
|
+
- **Frontend Performance:** Optimize rendering and bundle size for better user experience`;
|
|
262
|
+
case 'node':
|
|
263
|
+
return `
|
|
264
|
+
- **Server Architecture:** Design scalable Node.js server applications
|
|
265
|
+
- **API Development:** Build robust REST APIs with proper error handling
|
|
266
|
+
- **Backend Services:** Implement efficient server-side business logic
|
|
267
|
+
- **Database Integration:** Use appropriate data persistence patterns
|
|
268
|
+
- **Performance:** Optimize server response times and resource usage`;
|
|
269
|
+
case 'python':
|
|
270
|
+
return `
|
|
271
|
+
- **Django Development:** Follow Django best practices for web applications
|
|
272
|
+
- **Flask Applications:** Build lightweight Flask applications when appropriate
|
|
273
|
+
- **Python Standards:** Adhere to PEP 8 and Python coding conventions
|
|
274
|
+
- **Backend Development:** Implement scalable Python backend solutions
|
|
275
|
+
- **Framework Integration:** Use appropriate Python frameworks for different use cases`;
|
|
276
|
+
default:
|
|
277
|
+
return `
|
|
278
|
+
- **Best Practices:** Follow language-specific coding standards and conventions
|
|
279
|
+
- **Architecture:** Implement modular and maintainable code structure
|
|
280
|
+
- **Testing:** Write comprehensive tests for all functionality
|
|
281
|
+
- **Documentation:** Maintain clear and up-to-date documentation`;
|
|
282
|
+
}
|
|
283
|
+
}
|
|
165
284
|
}
|
|
166
285
|
exports.TemplateManager = TemplateManager;
|
|
167
286
|
//# sourceMappingURL=template-manager.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"template-manager.js","sourceRoot":"","sources":["../../src/services/template-manager.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2CAA6B;AAC7B,6CAA+B;AAM/B,MAAa,eAAe;
|
|
1
|
+
{"version":3,"file":"template-manager.js","sourceRoot":"","sources":["../../src/services/template-manager.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2CAA6B;AAC7B,6CAA+B;AAM/B,MAAa,eAAe;IAI1B;QAEE,IAAI,CAAC,YAAY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;YAC7D,OAAO,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;QAC7B,CAAC;QAAC,MAAM,CAAC;YACP,OAAO,EAAE,CAAC;QACZ,CAAC;IACH,CAAC;IAKD,KAAK,CAAC,sBAAsB;QAC1B,OAAO,MAAM,EAAE,CAAC,UAAU,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;IAC7C,CAAC;CACF;AAxGD,sCAwGC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "metacoding",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.1",
|
|
4
4
|
"description": "Guided Development Workflow for GitHub Copilot - Transform your coding experience with AI-guided standards, structured workflows, and quality practices",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -74,8 +74,8 @@
|
|
|
74
74
|
"@types/inquirer": "^8.2.10",
|
|
75
75
|
"@types/jest": "^29.5.8",
|
|
76
76
|
"@types/node": "^20.10.0",
|
|
77
|
-
"@typescript-eslint/eslint-plugin": "^
|
|
78
|
-
"@typescript-eslint/parser": "^
|
|
77
|
+
"@typescript-eslint/eslint-plugin": "^8.0.0",
|
|
78
|
+
"@typescript-eslint/parser": "^8.0.0",
|
|
79
79
|
"eslint": "^8.54.0",
|
|
80
80
|
"eslint-config-prettier": "^9.0.0",
|
|
81
81
|
"eslint-plugin-prettier": "^5.0.1",
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
"prettier": "^3.1.0",
|
|
84
84
|
"ts-jest": "^29.1.1",
|
|
85
85
|
"ts-node": "^10.9.1",
|
|
86
|
-
"typescript": "^5.3
|
|
86
|
+
"typescript": "^5.8.3"
|
|
87
87
|
},
|
|
88
88
|
"peerDependencies": {
|
|
89
89
|
"vscode": "*"
|
|
@@ -96,6 +96,14 @@
|
|
|
96
96
|
"jest": {
|
|
97
97
|
"preset": "ts-jest",
|
|
98
98
|
"testEnvironment": "node",
|
|
99
|
+
"transform": {
|
|
100
|
+
"^.+\\.ts$": [
|
|
101
|
+
"ts-jest",
|
|
102
|
+
{
|
|
103
|
+
"tsconfig": "test/tsconfig.json"
|
|
104
|
+
}
|
|
105
|
+
]
|
|
106
|
+
},
|
|
99
107
|
"roots": [
|
|
100
108
|
"<rootDir>/src",
|
|
101
109
|
"<rootDir>/test"
|