workspace-architect 1.5.11 → 1.5.13

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/bin/cli.js CHANGED
@@ -11,6 +11,7 @@ const __filename = fileURLToPath(import.meta.url);
11
11
  const __dirname = path.dirname(__filename);
12
12
  const ROOT_DIR = path.join(__dirname, '..');
13
13
  const ASSETS_DIR = path.join(ROOT_DIR, 'assets');
14
+ const GITHUB_AGENTS_DIR = path.join(ROOT_DIR, '.github', 'agents');
14
15
  const MANIFEST_PATH = path.join(ROOT_DIR, 'assets-manifest.json');
15
16
 
16
17
  // Check if running in local development mode (assets folder exists)
@@ -23,13 +24,13 @@ program
23
24
 
24
25
  program
25
26
  .command('list [type]')
26
- .description('List available assets (instructions, prompts, chatmodes, collections)')
27
+ .description('List available assets (instructions, prompts, agents, collections)')
27
28
  .action(async (type) => {
28
29
  try {
29
30
  if (type) {
30
31
  await listAssets(type);
31
32
  } else {
32
- const types = ['instructions', 'prompts', 'chatmodes', 'collections'];
33
+ const types = ['instructions', 'prompts', 'agents', 'collections'];
33
34
  for (const t of types) {
34
35
  await listAssets(t);
35
36
  }
@@ -66,7 +67,8 @@ async function listAssets(type) {
66
67
  if (IS_LOCAL) {
67
68
  // Local Development Mode
68
69
  const matter = (await import('gray-matter')).default;
69
- const dirPath = path.join(ASSETS_DIR, type);
70
+ // Use .github/agents for agents, assets/<type> for others
71
+ const dirPath = type === 'agents' ? GITHUB_AGENTS_DIR : path.join(ASSETS_DIR, type);
70
72
 
71
73
  if (!await fs.pathExists(dirPath)) {
72
74
  console.log(chalk.yellow(`No assets found for type: ${type}`));
@@ -129,7 +131,7 @@ async function downloadAsset(id, options) {
129
131
  throw new Error('Invalid ID format. Use type:name (e.g., instructions:basic-setup)');
130
132
  }
131
133
 
132
- const validTypes = ['instructions', 'prompts', 'chatmodes', 'collections'];
134
+ const validTypes = ['instructions', 'prompts', 'agents', 'collections'];
133
135
  if (!validTypes.includes(type)) {
134
136
  throw new Error(`Invalid type: ${type}. Valid types are: ${validTypes.join(', ')}`);
135
137
  }
@@ -141,7 +143,7 @@ async function downloadAsset(id, options) {
141
143
  if (IS_LOCAL) {
142
144
  let fileName = name;
143
145
  if (!path.extname(name)) fileName += '.json';
144
- const sourcePath = path.join(ASSETS_DIR, type, fileName);
146
+ const sourcePath = path.join(ASSETS_DIR, 'collections', fileName);
145
147
 
146
148
  if (!await fs.pathExists(sourcePath)) {
147
149
  throw new Error(`Collection not found: ${type}/${fileName}`);
@@ -182,13 +184,16 @@ async function downloadAsset(id, options) {
182
184
  name,
183
185
  name + '.md'
184
186
  ];
185
- if (type === 'chatmodes') potentialFileNames.push(name + '.chatmode.md');
187
+ if (type === 'agents') potentialFileNames.push(name + '.agent.md');
186
188
  if (type === 'prompts') potentialFileNames.push(name + '.prompt.md');
187
189
  if (type === 'instructions') potentialFileNames.push(name + '.instructions.md');
188
190
 
191
+ // Use .github/agents for agents, assets/<type> for others
192
+ const baseDir = type === 'agents' ? GITHUB_AGENTS_DIR : path.join(ASSETS_DIR, type);
193
+
189
194
  let sourcePath = null;
190
195
  for (const fname of potentialFileNames) {
191
- const p = path.join(ASSETS_DIR, type, fname);
196
+ const p = path.join(baseDir, fname);
192
197
  if (await fs.pathExists(p)) {
193
198
  sourcePath = p;
194
199
  fileName = fname;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "workspace-architect",
3
- "version": "1.5.11",
4
- "description": "A comprehensive library of specialized AI personas and chat modes for GitHub Copilot, ranging from architectural planning and specific tech stacks to advanced cognitive reasoning models.",
3
+ "version": "1.5.13",
4
+ "description": "A comprehensive library of specialized AI agents and personas for GitHub Copilot, ranging from architectural planning and specific tech stacks to advanced cognitive reasoning models.",
5
5
  "bin": {
6
6
  "workspace-architect": "./bin/cli.js"
7
7
  },
@@ -23,7 +23,7 @@
23
23
  ],
24
24
  "keywords": [
25
25
  "copilot",
26
- "chatmodes",
26
+ "agents",
27
27
  "personas",
28
28
  "prompts",
29
29
  "ai-assistant",
@@ -49,12 +49,12 @@
49
49
  "chalk": "^5.3.0",
50
50
  "commander": "^12.0.0",
51
51
  "fs-extra": "^11.2.0",
52
+ "gray-matter": "^4.0.3",
52
53
  "inquirer": "^9.2.15"
53
54
  },
54
55
  "devDependencies": {
55
56
  "@release-it/conventional-changelog": "^8.0.2",
56
57
  "conventional-changelog-conventionalcommits": "^7.0.2",
57
- "gray-matter": "^4.0.3",
58
58
  "release-it": "^17.11.0",
59
59
  "verdaccio": "^5.29.0"
60
60
  },