workflow-agent-cli 2.10.0 → 2.10.1
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/dist/cli/index.js +15 -10
- package/dist/cli/index.js.map +1 -1
- package/package.json +1 -1
package/dist/cli/index.js
CHANGED
|
@@ -875,17 +875,22 @@ async function doctorCommand(options) {
|
|
|
875
875
|
console.log(chalk5.yellow("\u26A0 No git repository found"));
|
|
876
876
|
console.log(chalk5.dim(" Run: git init"));
|
|
877
877
|
} else {
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
878
|
+
try {
|
|
879
|
+
const hooksStatus = await getAllHooksStatus(cwd);
|
|
880
|
+
for (const status of hooksStatus) {
|
|
881
|
+
if (status.installed) {
|
|
882
|
+
console.log(chalk5.green(`\u2713 ${status.hookType}: installed`));
|
|
883
|
+
} else {
|
|
884
|
+
console.log(chalk5.yellow(`\u26A0 ${status.hookType}: not installed`));
|
|
885
|
+
}
|
|
884
886
|
}
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
887
|
+
const allInstalled = hooksStatus.every((s) => s.installed);
|
|
888
|
+
if (!allInstalled) {
|
|
889
|
+
console.log(chalk5.dim("\n Run: workflow hooks install"));
|
|
890
|
+
}
|
|
891
|
+
} catch (error) {
|
|
892
|
+
console.log(chalk5.yellow("\u26A0 Could not check hooks status"));
|
|
893
|
+
console.log(chalk5.dim(` ${error instanceof Error ? error.message : "Unknown error"}`));
|
|
889
894
|
}
|
|
890
895
|
}
|
|
891
896
|
if (missingFiles.length > 0) {
|