speccrew 0.6.16 → 0.6.17

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "speccrew",
3
- "version": "0.6.16",
3
+ "version": "0.6.17",
4
4
  "description": "Spec-Driven Development toolkit for AI-powered IDEs",
5
5
  "author": "charlesmu99",
6
6
  "repository": {
@@ -915,8 +915,10 @@ function cmdInitKnowledgeTasks(args) {
915
915
  const filePath = path.join(featuresDir, file);
916
916
  try {
917
917
  const data = readJsonFile(filePath);
918
- if (data.platform_id) {
919
- featuresDataByPlatform[data.platform_id] = data;
918
+ // Support both platformId (camelCase) and platform_id (snake_case)
919
+ const platformId = data.platformId || data.platform_id;
920
+ if (platformId) {
921
+ featuresDataByPlatform[platformId] = data;
920
922
  }
921
923
  } catch (e) {
922
924
  outputError(`Failed to parse features file ${file}: ${e.message}`);
@@ -942,11 +944,9 @@ function cmdInitKnowledgeTasks(args) {
942
944
  } else {
943
945
  // Look up features from features-*.json files
944
946
  const platformData = featuresDataByPlatform[platform_id];
945
- if (platformData && platformData.modules && platformData.modules[module_name]) {
946
- const moduleData = platformData.modules[module_name];
947
- if (moduleData.features && Array.isArray(moduleData.features)) {
948
- featuresToProcess = moduleData.features;
949
- }
947
+ if (platformData && platformData.features && Array.isArray(platformData.features)) {
948
+ // Filter features by module name
949
+ featuresToProcess = platformData.features.filter(f => f.module === module_name);
950
950
  }
951
951
  }
952
952