workspace-architect 2.0.5 → 2.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.
package/README.md CHANGED
@@ -205,17 +205,20 @@ Create a JSON file in `assets/collections/`:
205
205
  {
206
206
  "name": "My Collection",
207
207
  "description": "A collection for X development.",
208
- "items": [
209
- "instructions:reactjs",
210
- "prompts:code-review",
211
- "agents:expert-architect"
212
- ]
208
+ "items": {
209
+ "instructions": ["reactjs"],
210
+ "prompts": ["code-review"],
211
+ "agents": ["expert-architect"]
212
+ }
213
213
  }
214
214
  ```
215
215
 
216
+ **Collection Format**: Collections use a nested object structure where items are grouped by type. Each type key contains an array of asset names (without the type prefix).
217
+
216
218
  ### Useful Scripts
217
219
 
218
220
  - `npm run generate-manifest` - Generate `assets-manifest.json` (required before PRs)
221
+ - `npm run migrate-collections` - Migrate collections from old flat array format to new nested format
219
222
  - `npm run analyze` - Analyze collections with TF-IDF/Cosine Similarity
220
223
  - `npm run analyze -- --add` - Auto-add high-confidence matches
221
224
  - `npm run analyze -- --remove` - Remove low-confidence items