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
|
@@ -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
|
-
|
|
919
|
-
|
|
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.
|
|
946
|
-
|
|
947
|
-
|
|
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
|
|