@jvittechs/j 1.0.12 → 1.0.14

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.14",
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: {
@@ -4418,6 +4418,18 @@ function showGuide(name) {
4418
4418
  console.log(` ${chalk7.cyan(`${name} t summary`)} Dashboard t\u1ED5ng quan`);
4419
4419
  console.log(` ${chalk7.cyan(`${name} t guide`)} H\u01B0\u1EDBng d\u1EABn chi ti\u1EBFt`);
4420
4420
  console.log();
4421
+ console.log(chalk7.bold("\u2501\u2501\u2501 WORKFLOWS (d\xF9ng trong IDE) \u2501\u2501\u2501"));
4422
+ console.log(` ${chalk7.cyan("/improve")} ${chalk7.dim("[feature]")} Ph\xE2n t\xEDch & \u0111\u1EC1 xu\u1EA5t c\u1EA3i thi\u1EC7n project`);
4423
+ console.log(` ${chalk7.cyan("/plan")} ${chalk7.dim("[task]")} L\xEAn k\u1EBF ho\u1EA1ch nhanh \u2192 tasks \u2192 implement`);
4424
+ console.log(` ${chalk7.cyan("/develop-feature")} ${chalk7.dim("[feature]")} Ph\xE1t tri\u1EC3n t\xEDnh n\u0103ng (FRD \u2192 TDD \u2192 Code)`);
4425
+ console.log(` ${chalk7.cyan("/fix-bug")} ${chalk7.dim("[bug]")} Ph\xE2n t\xEDch & s\u1EEDa bug`);
4426
+ console.log(` ${chalk7.cyan("/commit-it")} Commit an to\xE0n v\u1EDBi message chi ti\u1EBFt`);
4427
+ console.log();
4428
+ console.log(chalk7.dim(" Workflow c\u1EA3i thi\u1EC7n project:"));
4429
+ console.log(chalk7.dim(" 1. /improve # Ph\xE2n t\xEDch & \u0111\u1EC1 xu\u1EA5t"));
4430
+ console.log(chalk7.dim(" 2. Ch\u1ECDn improvements c\u1EA7n l\xE0m # User x\xE1c nh\u1EADn"));
4431
+ console.log(chalk7.dim(" 3. \u2192 T\u1EF1 \u0111\u1ED9ng g\u1ECDi /plan # T\u1EA1o tasks & implement"));
4432
+ console.log();
4421
4433
  console.log(chalk7.bold("\u2501\u2501\u2501 AI TOOLS \u2501\u2501\u2501"));
4422
4434
  console.log(` ${chalk7.cyan(`${name} chat`)} Chat AI qua Jai1 LLM Proxy`);
4423
4435
  console.log(` ${chalk7.cyan(`${name} translate`)} D\u1ECBch v\u0103n b\u1EA3n/file b\u1EB1ng AI`);
@@ -4617,27 +4629,25 @@ async function checkIde(cliName) {
4617
4629
  passed: true,
4618
4630
  message: `${activeIdes.length} IDE \u0111\u01B0\u1EE3c ph\xE1t hi\u1EC7n: ${ideNames}`
4619
4631
  };
4620
- const idesMissingRules = [];
4621
- const idesMissingWorkflows = [];
4622
4632
  const details = [];
4633
+ const fullyConfigured = [];
4623
4634
  for (const ide of activeIdes) {
4624
4635
  const rulesIcon = ide.hasRules ? "\u2713" : "\u2717";
4625
4636
  const workflowsIcon = ide.hasWorkflows ? "\u2713" : "\u2717";
4626
4637
  details.push(
4627
4638
  `${ide.name}: rules ${rulesIcon} (${ide.ruleCount}) | workflows ${workflowsIcon} (${ide.workflowCount})`
4628
4639
  );
4629
- if (!ide.hasRules) idesMissingRules.push(ide.name);
4630
- if (!ide.hasWorkflows) idesMissingWorkflows.push(ide.name);
4640
+ if (ide.hasRules && ide.hasWorkflows) {
4641
+ fullyConfigured.push(ide.name);
4642
+ }
4631
4643
  }
4632
- const allHaveRules = idesMissingRules.length === 0;
4633
- const allHaveWorkflows = idesMissingWorkflows.length === 0;
4634
- const allPassed = allHaveRules && allHaveWorkflows;
4644
+ const passed = fullyConfigured.length > 0;
4635
4645
  const rulesWorkflowsCheck = {
4636
4646
  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" : ""}`,
4647
+ passed,
4648
+ 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
4649
  details,
4640
- ...!allPassed && {
4650
+ ...!passed && {
4641
4651
  suggestion: `Ch\u1EA1y "${cliName} rules apply" v\xE0 "${cliName} ide sync" \u0111\u1EC3 b\u1ED5 sung.`
4642
4652
  }
4643
4653
  };