metacoding 1.0.0 → 1.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.
Files changed (46) hide show
  1. package/CHANGELOG.md +68 -43
  2. package/LICENSE +1 -1
  3. package/lib/services/template-manager.d.ts +3 -0
  4. package/lib/services/template-manager.d.ts.map +1 -1
  5. package/lib/services/template-manager.js +126 -9
  6. package/lib/services/template-manager.js.map +1 -1
  7. package/lib/services/vscode.js +1 -1
  8. package/lib/services/vscode.js.map +1 -1
  9. package/package.json +4 -4
  10. package/templates/general/code-review.instructions.md +265 -0
  11. package/templates/general/{files/copilot-instructions.md.template → copilot-instructions.md} +97 -140
  12. package/templates/{python/files → general}/docs-update.instructions.md +45 -32
  13. package/templates/general/release.instructions.md +242 -0
  14. package/templates/general/test-runner.instructions.md +188 -0
  15. package/templates/node/nodejs.coding.instructions.md +249 -0
  16. package/templates/node/nodejs.docs.instructions.md +234 -0
  17. package/templates/node/nodejs.testing.instructions.md +373 -0
  18. package/templates/python/python.coding.instructions.md +339 -0
  19. package/templates/python/python.docs.instructions.md +1147 -0
  20. package/templates/python/python.testing.instructions.md +1074 -0
  21. package/templates/react/react.coding.instructions.md +695 -0
  22. package/templates/react/react.docs.instructions.md +427 -0
  23. package/templates/react/react.testing.instructions.md +193 -0
  24. package/templates/react/test-runner.instructions.md +135 -0
  25. package/templates/typescript/template.json +16 -0
  26. package/templates/typescript/typescript.coding.instructions.md +368 -0
  27. package/templates/typescript/typescript.docs.instructions.md +734 -0
  28. package/templates/typescript/typescript.testing.instructions.md +740 -0
  29. package/templates/general/files/code-review.instructions.md +0 -111
  30. package/templates/general/files/docs-update.instructions.md +0 -203
  31. package/templates/general/files/release.instructions.md +0 -72
  32. package/templates/general/files/test-runner.instructions.md +0 -107
  33. package/templates/node/files/code-review.instructions.md +0 -222
  34. package/templates/node/files/copilot-instructions.md.template +0 -391
  35. package/templates/node/files/docs-update.instructions.md +0 -203
  36. package/templates/node/files/release.instructions.md +0 -72
  37. package/templates/node/files/test-runner.instructions.md +0 -108
  38. package/templates/python/files/code-review.instructions.md +0 -215
  39. package/templates/python/files/copilot-instructions.md.template +0 -418
  40. package/templates/python/files/release.instructions.md +0 -72
  41. package/templates/python/files/test-runner.instructions.md +0 -108
  42. package/templates/react/files/code-review.instructions.md +0 -160
  43. package/templates/react/files/copilot-instructions.md.template +0 -472
  44. package/templates/react/files/docs-update.instructions.md +0 -203
  45. package/templates/react/files/release.instructions.md +0 -72
  46. package/templates/react/files/test-runner.instructions.md +0 -108
package/CHANGELOG.md CHANGED
@@ -5,6 +5,66 @@ 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
+ ## [Unreleased]
9
+
10
+ ### Added
11
+
12
+ - Future enhancements and features will be listed here
13
+
14
+ ## [1.1.0] - 2025-06-22
15
+
16
+ ### Added
17
+
18
+ - **Mandatory Development Workflow**: 7-step enforced process for all development tasks
19
+ - Task understanding and planning with user confirmation
20
+ - Task management with status tracking
21
+ - Test-Driven Development (TDD) approach
22
+ - Implementation and verification steps
23
+ - Documentation and status updates
24
+ - Version control requirements
25
+ - Workflow completion checks
26
+ - **Status Transparency Guidelines**: Documentation standards for clear status indication
27
+ - Prohibition of "planned" or "to-do" in titles and headers
28
+ - Standardized status indicators (✅ 🚧 ❌ ⚠️ 🔄)
29
+ - Checkbox format for task status tracking
30
+ - Present-tense headers reflecting current state
31
+ - **Workflow Enforcement Rules**: Quality gates and violation handling procedures
32
+ - **Enhanced Role and Persona**: Updated to emphasize strict workflow adherence
33
+ - **Instruction File Architecture**: Implemented composable instruction system eliminating duplication
34
+ - Created shared TypeScript instruction component for Node.js and React templates
35
+ - Established single source of truth for universal instruction files
36
+ - Built template inheritance system for automatic instruction composition
37
+ - Achieved clean separation of concerns with maintainable architecture
38
+
39
+ ### Changed
40
+
41
+ - **Main Template**: Updated `copilot-instructions.md` with comprehensive workflow section
42
+ - **Documentation Instructions**: Enhanced `docs-update.instructions.md` with status guidelines
43
+ - **README**: Expanded to include workflow details and status transparency standards
44
+ - **File Structure**: Added `/_meta` and `/test` directories for task and test documentation
45
+
46
+ ### Fixed
47
+
48
+ - **Template Architecture Duplication**: Eliminated duplication of TypeScript instruction files across templates
49
+ - Removed duplicated files from `/general/`, `/node/`, and `/react/` templates
50
+ - Implemented single source of truth principle for shared instruction components
51
+ - Fixed maintenance overhead from keeping multiple copies of identical files synchronized
52
+
53
+ ### Enhanced
54
+
55
+ - **Template Inheritance System**: Implemented composable instruction file architecture
56
+ - Node.js and React templates now automatically inherit TypeScript instructions
57
+ - Template loading follows hierarchical order: universal → shared language → template-specific
58
+ - Template manager excludes shared components from standalone template selection
59
+ - **Maintainability**: Architectural improvements reduce long-term maintenance burden
60
+ - Changes to shared instructions automatically propagate to dependent templates
61
+ - Clean separation of concerns with each directory containing only relevant files
62
+ - Single source of truth for all TypeScript-related development guidance
63
+ - **Code Quality**: Mandatory TDD approach with comprehensive workflow enforcement
64
+ - **Documentation Standards**: Status-transparent language and clear architectural documentation
65
+ - **Team Collaboration**: Consistent workflow enforcement across all development tasks
66
+ - **Risk Mitigation**: Incremental, tested changes with proper validation gates
67
+
8
68
  ## [1.0.0] - 2025-06-21
9
69
 
10
70
  ### Added
@@ -16,7 +76,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
16
76
  - **VS Code Integration**: Automatic VS Code settings configuration for GitHub Copilot
17
77
  - **Interactive Setup**: Guided project configuration with prompts for project details
18
78
  - **TypeScript Implementation**: Full TypeScript codebase with comprehensive type definitions
19
- - **Test Suite**: Unit and integration tests with >80% coverage target
79
+ - **Test Suite**: Unit and integration tests with >80% coverage target achieved
20
80
  - **Professional CLI Experience**: Color output, progress indicators, and helpful error messages
21
81
 
22
82
  ### Changed
@@ -27,6 +87,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
27
87
  - **Template Processing**: Dynamic variable substitution for project-specific customization
28
88
  - **File Management**: Automatic directory creation, file validation, and conflict resolution
29
89
 
90
+ ### Fixed
91
+
92
+ - **Template Architecture**: Updated all tests to match current template directory structure
93
+ - **File Organization**: Removed obsolete `/files/` subdirectories from template structure
94
+ - **Test Coverage**: All 13 test suites and 140 tests now pass with comprehensive coverage
95
+ - **Naming Conventions**: Updated test expectations to match actual instruction file names
96
+
30
97
  ### Technical Details
31
98
 
32
99
  - **Dependencies**: Commander.js for CLI, Inquirer for prompts, Chalk for colors, fs-extra for file operations
@@ -47,45 +114,3 @@ Existing manual installations can be migrated by:
47
114
  1. Installing the npm package: `npm install -g metacoding`
48
115
  2. Running `metacoding validate` to check current setup
49
116
  3. Running `metacoding update` to migrate to latest format
50
-
51
- ## [Unreleased]
52
-
53
- ### Added
54
-
55
- - **Mandatory Development Workflow**: 7-step enforced process for all development tasks
56
- - Task understanding and planning with user confirmation
57
- - Task management with status tracking
58
- - Test-Driven Development (TDD) approach
59
- - Implementation and verification steps
60
- - Documentation and status updates
61
- - Version control requirements
62
- - Workflow completion checks
63
- - **Status Transparency Guidelines**: Documentation standards for clear status indication
64
- - Prohibition of "planned" or "to-do" in titles and headers
65
- - Standardized status indicators (✅ 🚧 ❌ ⚠️ 🔄)
66
- - Checkbox format for task status tracking
67
- - Present-tense headers reflecting current state
68
- - **Workflow Enforcement Rules**: Quality gates and violation handling procedures
69
- - **Enhanced Role and Persona**: Updated to emphasize strict workflow adherence
70
-
71
- ### Changed
72
-
73
- - **Main Template**: Updated `copilot-instructions.md` with comprehensive workflow section
74
- - **Documentation Instructions**: Enhanced `docs-update.instructions.md` with status guidelines
75
- - **README**: Expanded to include workflow details and status transparency standards
76
- - **File Structure**: Added `/_meta` and `/test` directories for task and test documentation
77
-
78
- ### Enhanced
79
-
80
- - Code quality through mandatory TDD approach
81
- - Documentation accuracy with status-transparent language
82
- - Team collaboration with consistent workflow enforcement
83
- - Risk mitigation through incremental, tested changes
84
-
85
- ## [1.0.0] - 2025-06-21
86
-
87
- ### Added
88
-
89
- - Initial project structure
90
- - Core documentation files
91
- - Basic instruction templates
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2025 GitHub Copilot Instructions Template
3
+ Copyright (c) 2025 Anton Kulikov
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
@@ -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
6
  getTemplate(templateName: string): 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;;IAUhC,WAAW,CAAC,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC,QAAQ,CAAC;IA+BpD,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;IAiC9C,qBAAqB,IAAI,OAAO,CAAC,MAAM,EAAE,CAAC;YA0BlC,iBAAiB;IAiD/B,OAAO,CAAC,sBAAsB;IA2D9B,OAAO,CAAC,gBAAgB;CAYzB"}
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,CAAC,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC,QAAQ,CAAC;YAqC5C,oBAAoB;IA0G5B,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,6 +39,7 @@ 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
44
  async getTemplate(templateName) {
44
45
  const templatePath = path.join(this.templatesDir, templateName);
@@ -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 files = await this.loadTemplateFiles(filesDir);
55
+ const templateFiles = await this.loadTemplateFiles(filesDir);
56
+ const instructionFiles = await this.loadInstructionFiles(templateName);
57
+ const files = [...templateFiles, ...instructionFiles];
55
58
  return {
56
59
  name: templateName,
57
60
  description: config.description,
@@ -60,16 +63,99 @@ class TemplateManager {
60
63
  vscodeSettings: config.vscodeSettings || {},
61
64
  };
62
65
  }
66
+ async loadInstructionFiles(templateName) {
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
+ if (typescriptTemplates.includes(templateName)) {
107
+ const typescriptPath = path.join(this.templatesDir, 'typescript');
108
+ if (await fs.pathExists(typescriptPath)) {
109
+ const typescriptFiles = await fs.readdir(typescriptPath);
110
+ for (const file of typescriptFiles) {
111
+ if (file === 'template.json') {
112
+ continue;
113
+ }
114
+ if (file.endsWith('.instructions.md')) {
115
+ files.push({
116
+ source: `typescript/${file}`,
117
+ destination: `.github/instructions/${file}`,
118
+ template: false,
119
+ });
120
+ }
121
+ }
122
+ }
123
+ }
124
+ if (templateName !== 'general') {
125
+ const templatePath = path.join(this.templatesDir, templateName);
126
+ const templateFiles = await fs.readdir(templatePath);
127
+ for (const file of templateFiles) {
128
+ if (file === 'template.json' || universalFiles.includes(file)) {
129
+ continue;
130
+ }
131
+ if (file.endsWith('.instructions.md')) {
132
+ files.push({
133
+ source: `${templateName}/${file}`,
134
+ destination: `.github/instructions/${file}`,
135
+ template: false,
136
+ });
137
+ }
138
+ }
139
+ }
140
+ return files;
141
+ }
63
142
  async processTemplate(template, config) {
64
143
  const processedFiles = [];
65
144
  for (const file of template.files) {
66
145
  let content;
146
+ let filePath;
147
+ if (file.source.includes('/')) {
148
+ filePath = path.join(this.templatesDir, file.source);
149
+ }
150
+ else {
151
+ filePath = path.join(this.templatesDir, template.name, file.source);
152
+ }
67
153
  if (file.template) {
68
- const templateContent = await fs.readFile(path.join(this.templatesDir, template.name, 'files', file.source), 'utf8');
154
+ const templateContent = await fs.readFile(filePath, 'utf8');
69
155
  content = this.processTemplateContent(templateContent, config);
70
156
  }
71
157
  else {
72
- content = await fs.readFile(path.join(this.templatesDir, template.name, 'files', file.source), 'utf8');
158
+ content = await fs.readFile(filePath, 'utf8');
73
159
  }
74
160
  processedFiles.push({
75
161
  path: file.destination,
@@ -84,10 +170,11 @@ class TemplateManager {
84
170
  }
85
171
  const items = await fs.readdir(this.templatesDir);
86
172
  const templates = [];
173
+ const excludedTemplates = ['typescript'];
87
174
  for (const item of items) {
88
175
  const itemPath = path.join(this.templatesDir, item);
89
176
  const stat = await fs.stat(itemPath);
90
- if (stat.isDirectory()) {
177
+ if (stat.isDirectory() && !excludedTemplates.includes(item)) {
91
178
  const configPath = path.join(itemPath, 'template.json');
92
179
  if (await fs.pathExists(configPath)) {
93
180
  templates.push(item);
@@ -110,11 +197,9 @@ class TemplateManager {
110
197
  if (isTemplate) {
111
198
  destination = item.name.replace('.template', '');
112
199
  }
113
- if (destination === 'copilot-instructions.md') {
114
- destination = '.github/copilot-instructions.md';
115
- }
116
- else if (destination.endsWith('.instructions.md')) {
117
- destination = `.github/instructions/${destination}`;
200
+ if (destination === 'copilot-instructions.md' ||
201
+ destination.endsWith('.instructions.md')) {
202
+ continue;
118
203
  }
119
204
  files.push({
120
205
  source,
@@ -136,6 +221,7 @@ class TemplateManager {
136
221
  TEST_FRAMEWORK: config.testFramework || 'Jest',
137
222
  BUILD_TOOL: config.buildTool || 'TypeScript Compiler',
138
223
  PROJECT_DOMAIN: this.getProjectDomain(config.projectType),
224
+ PROJECT_SPECIFIC_GUIDANCE: this.getProjectSpecificGuidance(config.projectType),
139
225
  };
140
226
  let processedContent = content;
141
227
  for (const [key, value] of Object.entries(variables)) {
@@ -162,6 +248,37 @@ class TemplateManager {
162
248
  return 'software';
163
249
  }
164
250
  }
251
+ getProjectSpecificGuidance(projectType) {
252
+ switch (projectType) {
253
+ case 'react':
254
+ return `
255
+ - **React Components:** Follow modern React patterns with hooks and functional components
256
+ - **JSX Best Practices:** Use semantic HTML elements and proper JSX syntax
257
+ - **State Management:** Implement efficient state management with React hooks
258
+ - **Component Architecture:** Build reusable, testable React components
259
+ - **Frontend Performance:** Optimize rendering and bundle size for better user experience`;
260
+ case 'node':
261
+ return `
262
+ - **Server Architecture:** Design scalable Node.js server applications
263
+ - **API Development:** Build robust REST APIs with proper error handling
264
+ - **Backend Services:** Implement efficient server-side business logic
265
+ - **Database Integration:** Use appropriate data persistence patterns
266
+ - **Performance:** Optimize server response times and resource usage`;
267
+ case 'python':
268
+ return `
269
+ - **Django Development:** Follow Django best practices for web applications
270
+ - **Flask Applications:** Build lightweight Flask applications when appropriate
271
+ - **Python Standards:** Adhere to PEP 8 and Python coding conventions
272
+ - **Backend Development:** Implement scalable Python backend solutions
273
+ - **Framework Integration:** Use appropriate Python frameworks for different use cases`;
274
+ default:
275
+ return `
276
+ - **Best Practices:** Follow language-specific coding standards and conventions
277
+ - **Architecture:** Implement modular and maintainable code structure
278
+ - **Testing:** Write comprehensive tests for all functionality
279
+ - **Documentation:** Maintain clear and up-to-date documentation`;
280
+ }
281
+ }
165
282
  }
166
283
  exports.TemplateManager = TemplateManager;
167
284
  //# sourceMappingURL=template-manager.js.map
@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AAG,gBAAgB,CAAC,OAAO,CACzC,kBAAkB,EAClB,qCAAqC,CACtC,CAAC;QACF,gBAAgB,GAAG,gBAAgB,CAAC,OAAO,CACzC,kBAAkB,EAClB,wCAAwC,CACzC,CAAC;QACF,gBAAgB,GAAG,gBAAgB,CAAC,OAAO,CACzC,kBAAkB,EAClB,qCAAqC,CACtC,CAAC;QACF,gBAAgB,GAAG,gBAAgB,CAAC,OAAO,CACzC,gCAAgC,EAChC,SAAS,CAAC,UAAU,CACrB,CAAC;QACF,gBAAgB,GAAG,gBAAgB,CAAC,OAAO,CACzC,uBAAuB,EACvB,SAAS,CAAC,cAAc,CACzB,CAAC;QAEF,OAAO,gBAAgB,CAAC;IAC1B,CAAC;IAKO,gBAAgB,CAAC,WAAmB;QAC1C,QAAQ,WAAW,EAAE,CAAC;YACpB,KAAK,OAAO;gBACV,OAAO,gBAAgB,CAAC;YAC1B,KAAK,MAAM;gBACT,OAAO,iBAAiB,CAAC;YAC3B,KAAK,QAAQ;gBACX,OAAO,QAAQ,CAAC;YAClB;gBACE,OAAO,UAAU,CAAC;QACtB,CAAC;IACH,CAAC;CACF;AAhOD,0CAgOC"}
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,GAAG,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,iBAAiB,CAAC,CAAC;QAE5D,IAAI,CAAC,eAAe,GAAG,IAAI,CAAC,YAAY,CAAC;IAC3C,CAAC;IAKD,KAAK,CAAC,WAAW,CAAC,YAAoB;QACpC,MAAM,YAAY,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,YAAY,EAAE,YAAY,CAAC,CAAC;QAEhE,IAAI,CAAC,CAAC,MAAM,EAAE,CAAC,UAAU,CAAC,YAA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eService {
53
53
  const content = await fs.readFile(this.settingsFile, 'utf8');
54
54
  existingSettings = JSON.parse(content);
55
55
  }
56
- catch (error) {
56
+ catch {
57
57
  await this.backupSettings();
58
58
  existingSettings = {};
59
59
  }
@@ -1 +1 @@
1
- {"version":3,"file":"vscode.js","sourceRoot":"","sources":["../../src/services/vscode.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA+B;AAC/B,2CAA6B;AAK7B,MAAa,aAAa;IAA1B;QACmB,cAAS,GAAG,SAAS,CAAC;QACtB,iBAAY,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,eAAe,CAAC,CAAC;IAsG7E,CAAC;IAjGC,KAAK,CAAC,cAAc,CAClB,qBAA0C,EAAE;QAE5C,MAAM,gBAAgB,GAAG;YACvB,wDAAwD,EAAE,IAAI;YAC9D,kBAAkB,EAAE,IAAI;YACxB,GAAG,kBAAkB;SACtB,CAAC;QAEF,IAAI,gBAAgB,GAAG,EAAE,CAAC;QAG1B,IAAI,MAAM,EAAE,CAAC,UAAU,CAAC,IAAI,CAAC,YAAY,CAAC,EAAE,CAAC;YAC3C,IAAI,CAAC;gBACH,MAAM,OAAO,GAAG,MAAM,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC,YAAY,EAAE,MAAM,CAAC,CAAC;gBAC7D,gBAAgB,GAAG,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;YACzC,CAAC;YAAC,OAAO,KAAK,EAAE,CAAC;gBAEf,MAAM,IAAI,CAAC,cAAc,EAAE,CAAC;gBAC5B,gBAAgB,GAAG,EAAE,CAAC;YACxB,CAAC;QACH,CAAC;QAGD,MAAM,cAAc,GAAG;YACrB,GAAG,gBAAgB;YACnB,GAAG,gBAAgB;SACpB,CAAC;QAGF,MAAM,EAAE,CAAC,SAAS,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;QAGnC,MAAM,EAAE,CAAC,SAAS,CA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C9D,MAAM,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,YAAY,EAAE,UAAU,CAAC,CAAC;QAC7C,OAAO,UAAU,CAAC;IACpB,CAAC;IAKD,KAAK,CAAC,WAAW;QACf,IAAI,CAAC,CAAC,MAAM,EAAE,CAAC,UAAU,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,EAAE,CAAC;YAC9C,OAAO,EAAE,CAAC;QACZ,CAAC;QAED,IAAI,CAAC;YACH,MAAM,OAAO,GAAG,MAAM,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC,YAAY,EAAE,MAAM,CAAC,CAAC;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.0.0",
3
+ "version": "1.1.0",
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": "^6.13.1",
78
- "@typescript-eslint/parser": "^6.13.1",
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.2"
86
+ "typescript": "^5.8.3"
87
87
  },
88
88
  "peerDependencies": {
89
89
  "vscode": "*"