@ghl-ai/aw 0.1.47-beta.3 → 0.1.47-beta.4
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/commands/doctor.mjs +2 -2
- package/package.json +1 -1
package/commands/doctor.mjs
CHANGED
|
@@ -209,7 +209,7 @@ function directoryContainsGeneratedRuleFiles(dirPath, extension) {
|
|
|
209
209
|
try {
|
|
210
210
|
return readdirSync(dirPath, { withFileTypes: true })
|
|
211
211
|
.filter(entry => entry.isFile() && entry.name.endsWith(extension))
|
|
212
|
-
.some(entry => readText(join(dirPath, entry.name)).
|
|
212
|
+
.some(entry => readText(join(dirPath, entry.name)).includes(GENERATED_RULE_HEADER));
|
|
213
213
|
} catch {
|
|
214
214
|
return false;
|
|
215
215
|
}
|
|
@@ -500,7 +500,7 @@ function listGeneratedRuleFiles(dirPath, extension) {
|
|
|
500
500
|
return readdirSync(dirPath, { withFileTypes: true })
|
|
501
501
|
.filter(entry => entry.isFile() && entry.name.endsWith(extension))
|
|
502
502
|
.map(entry => join(dirPath, entry.name))
|
|
503
|
-
.filter(filePath => readText(filePath).
|
|
503
|
+
.filter(filePath => readText(filePath).includes(GENERATED_RULE_HEADER));
|
|
504
504
|
} catch {
|
|
505
505
|
return [];
|
|
506
506
|
}
|