workspace-architect 2.0.3 → 2.0.5

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
@@ -132,10 +132,10 @@ async function listAssets(type) {
132
132
  } else {
133
133
  // Production Mode (Manifest)
134
134
  const manifest = await getManifest();
135
- const assets = Object.entries(manifest.assets)
136
- .filter(([key, asset]) => asset.type === type)
137
- .map(([key, asset]) => ({
138
- id: key.split(':')[1],
135
+ const typeAssets = manifest.assets[type] || {};
136
+ const assets = Object.entries(typeAssets)
137
+ .map(([id, asset]) => ({
138
+ id,
139
139
  ...asset
140
140
  }));
141
141
 
@@ -181,8 +181,7 @@ async function downloadAsset(id, options) {
181
181
  items = collectionContent.items || (Array.isArray(collectionContent) ? collectionContent : []);
182
182
  } else {
183
183
  const manifest = await getManifest();
184
- const key = `${type}:${name}`;
185
- const asset = manifest.assets[key];
184
+ const asset = manifest.assets[type]?.[name];
186
185
 
187
186
  if (!asset) {
188
187
  throw new Error(`Collection not found: ${id}`);
@@ -242,8 +241,7 @@ async function downloadAsset(id, options) {
242
241
  content = await fs.readFile(sourcePath, 'utf8');
243
242
  } else {
244
243
  const manifest = await getManifest();
245
- const key = `${type}:${name}`;
246
- const asset = manifest.assets[key];
244
+ const asset = manifest.assets[type]?.[name];
247
245
 
248
246
  if (!asset) {
249
247
  throw new Error(`Asset not found: ${id}`);
@@ -333,11 +331,10 @@ async function downloadSkill(name, options) {
333
331
  } else {
334
332
  // Production mode: fetch from manifest and download from GitHub
335
333
  const manifest = await getManifest();
336
- const key = `skills:${skillName}`;
337
- const asset = manifest.assets[key];
334
+ const asset = manifest.assets.skills?.[skillName];
338
335
 
339
336
  if (!asset) {
340
- throw new Error(`Skill not found: ${key}`);
337
+ throw new Error(`Skill not found: ${skillName}`);
341
338
  }
342
339
 
343
340
  skillPath = asset.path;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "workspace-architect",
3
- "version": "2.0.3",
3
+ "version": "2.0.5",
4
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",