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/README.md +9 -3
- package/assets-manifest.json +4510 -4470
- package/bin/cli.js +8 -11
- package/package.json +1 -1
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
|
|
136
|
-
|
|
137
|
-
.map(([
|
|
138
|
-
id
|
|
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
|
|
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
|
|
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
|
|
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: ${
|
|
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
|
+
"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",
|