agents-templated 2.2.8 → 2.2.9

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 CHANGED
@@ -146,7 +146,6 @@ your-project/
146
146
  │ └── README.md # Human-readable setup guide
147
147
 
148
148
  ├── .github/
149
- │ ├── instructions/ # Compatibility pointer directory
150
149
  │ ├── skills/
151
150
  │ │ ├── find-skills/ # Skill discovery helper
152
151
  │ │ ├── feature-delivery/ # Scoped feature delivery workflow
package/bin/cli.js CHANGED
@@ -186,7 +186,6 @@ program
186
186
  // Install AI Agent instructions (Cursor, Copilot, Claude, Generic AGENTS)
187
187
  if (installAll || choices.includes('github')) {
188
188
  console.log(chalk.yellow('Installing AI agent instructions...'));
189
- await fs.ensureDir(path.join(targetDir, '.github', 'instructions'));
190
189
  await writeGeneratedInstructions(targetDir, templateDir, options.force);
191
190
  console.log(chalk.gray(' ✓ Claude (CLAUDE.md — canonical source)'));
192
191
  console.log(chalk.gray(' ✓ GitHub Copilot (.github/copilot-instructions.md pointer)'));
@@ -358,7 +357,6 @@ program
358
357
  // Install AI Agent instructions (Cursor, Copilot, Claude, Generic AGENTS)
359
358
  if (options.github) {
360
359
  console.log(chalk.yellow('Installing AI agent instructions...'));
361
- await fs.ensureDir(path.join(targetDir, '.github', 'instructions'));
362
360
  await writeGeneratedInstructions(targetDir, templateDir, options.force);
363
361
  console.log(chalk.gray(' ✓ Claude (CLAUDE.md — canonical source)'));
364
362
  console.log(chalk.gray(' ✓ GitHub Copilot (.github/copilot-instructions.md pointer)'));
@@ -666,6 +664,16 @@ async function cleanupLegacyInstructionFiles(targetDir) {
666
664
  console.log(chalk.green(` ✓ Removed legacy file: ${file}`));
667
665
  }
668
666
  }
667
+
668
+ // Remove deprecated directory if it is now empty.
669
+ const legacyInstructionsDir = path.join(targetDir, '.github', 'instructions');
670
+ if (await fs.pathExists(legacyInstructionsDir)) {
671
+ const entries = await fs.readdir(legacyInstructionsDir);
672
+ if (entries.length === 0) {
673
+ await fs.remove(legacyInstructionsDir);
674
+ console.log(chalk.green(' ✓ Removed legacy directory: .github/instructions/'));
675
+ }
676
+ }
669
677
  }
670
678
 
671
679
  async function updateSelectedComponents(targetDir, templateDir, selectedComponents, overwrite = true) {
@@ -705,7 +713,6 @@ async function updateSelectedComponents(targetDir, templateDir, selectedComponen
705
713
 
706
714
  if (components.includes('github')) {
707
715
  console.log(chalk.yellow('Updating AI agent instructions...'));
708
- await fs.ensureDir(path.join(targetDir, '.github', 'instructions'));
709
716
  await writeGeneratedInstructions(targetDir, templateDir, overwrite);
710
717
  await cleanupLegacyInstructionFiles(targetDir);
711
718
  }
package/index.js CHANGED
@@ -71,7 +71,6 @@ async function install(targetDir, options = {}) {
71
71
 
72
72
  // AI Agent instructions (Cursor, Copilot, Claude)
73
73
  if (installAll || options.github) {
74
- await fs.ensureDir(path.join(targetDir, '.github', 'instructions'));
75
74
  await writeGeneratedInstructions(targetDir, templateDir, options.force);
76
75
  }
77
76
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agents-templated",
3
- "version": "2.2.8",
3
+ "version": "2.2.9",
4
4
  "description": "Technology-agnostic development template with multi-AI agent support (Cursor, Copilot, VSCode, Gemini), security-first patterns, and comprehensive testing guidelines",
5
5
  "main": "index.js",
6
6
  "bin": {
@@ -32,7 +32,7 @@ Each plan file must contain:
32
32
 
33
33
  ```
34
34
  ---
35
- mode: agent
35
+ agent: agent
36
36
  description: One-line summary of what this plan covers.
37
37
  ---
38
38
 
@@ -124,7 +124,6 @@ your-project/
124
124
  │ └── README.md # Human-readable setup guide
125
125
 
126
126
  ├── .github/
127
- │ ├── instructions/ # Compatibility pointer directory
128
127
  │ ├── skills/
129
128
  │ │ ├── find-skills/ # Skill discovery helper
130
129
  │ │ ├── error-patterns/ # Persistent error-debugging memory workflow