@jvittechs/j 1.0.12 → 1.0.13

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.js CHANGED
@@ -169,7 +169,7 @@ import { basename as basename4 } from "path";
169
169
  // package.json
170
170
  var package_default = {
171
171
  name: "@jvittechs/j",
172
- version: "1.0.12",
172
+ version: "1.0.13",
173
173
  description: "A unified CLI tool for JV-IT TECHS developers to manage Jai1 Framework. Supports both `j` and `jai1` commands. Please contact TeamAI for usage instructions.",
174
174
  type: "module",
175
175
  bin: {
@@ -4617,27 +4617,25 @@ async function checkIde(cliName) {
4617
4617
  passed: true,
4618
4618
  message: `${activeIdes.length} IDE \u0111\u01B0\u1EE3c ph\xE1t hi\u1EC7n: ${ideNames}`
4619
4619
  };
4620
- const idesMissingRules = [];
4621
- const idesMissingWorkflows = [];
4622
4620
  const details = [];
4621
+ const fullyConfigured = [];
4623
4622
  for (const ide of activeIdes) {
4624
4623
  const rulesIcon = ide.hasRules ? "\u2713" : "\u2717";
4625
4624
  const workflowsIcon = ide.hasWorkflows ? "\u2713" : "\u2717";
4626
4625
  details.push(
4627
4626
  `${ide.name}: rules ${rulesIcon} (${ide.ruleCount}) | workflows ${workflowsIcon} (${ide.workflowCount})`
4628
4627
  );
4629
- if (!ide.hasRules) idesMissingRules.push(ide.name);
4630
- if (!ide.hasWorkflows) idesMissingWorkflows.push(ide.name);
4628
+ if (ide.hasRules && ide.hasWorkflows) {
4629
+ fullyConfigured.push(ide.name);
4630
+ }
4631
4631
  }
4632
- const allHaveRules = idesMissingRules.length === 0;
4633
- const allHaveWorkflows = idesMissingWorkflows.length === 0;
4634
- const allPassed = allHaveRules && allHaveWorkflows;
4632
+ const passed = fullyConfigured.length > 0;
4635
4633
  const rulesWorkflowsCheck = {
4636
4634
  name: "IDE Rules & Workflows",
4637
- passed: allPassed,
4638
- message: allPassed ? "T\u1EA5t c\u1EA3 IDE \u0111\u1EC1u c\xF3 rules v\xE0 workflows" : `M\u1ED9t s\u1ED1 IDE thi\u1EBFu ${!allHaveRules ? "rules" : ""}${!allHaveRules && !allHaveWorkflows ? " v\xE0 " : ""}${!allHaveWorkflows ? "workflows" : ""}`,
4635
+ passed,
4636
+ message: passed ? `${fullyConfigured.length} IDE \u0111\u1EA7y \u0111\u1EE7 rules & workflows: ${fullyConfigured.join(", ")}` : "Ch\u01B0a c\xF3 IDE n\xE0o \u0111\u1EA7y \u0111\u1EE7 c\u1EA3 rules v\xE0 workflows",
4639
4637
  details,
4640
- ...!allPassed && {
4638
+ ...!passed && {
4641
4639
  suggestion: `Ch\u1EA1y "${cliName} rules apply" v\xE0 "${cliName} ide sync" \u0111\u1EC3 b\u1ED5 sung.`
4642
4640
  }
4643
4641
  };