@nalvietnam/avatar-cli 1.11.0 → 1.11.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/index.js CHANGED
@@ -1572,7 +1572,7 @@ async function runChecks(cwd) {
1572
1572
  if (settings.statusLine?.command) {
1573
1573
  const cmd = settings.statusLine.command.trim();
1574
1574
  const match = cmd.match(/^(node|python|python3|bash|sh)\s+([^\s]+)/);
1575
- if (match) {
1575
+ if (match?.[2]) {
1576
1576
  const refFile = match[2];
1577
1577
  const fullPath = refFile.startsWith("/") ? refFile : join11(cwd, refFile);
1578
1578
  const fileExists = await pathExists(fullPath);
@@ -3249,7 +3249,7 @@ import { join as join17 } from "path";
3249
3249
  async function isStatusLineCommandResolvable(workspacePath, command) {
3250
3250
  const trimmed = command.trim();
3251
3251
  const match = trimmed.match(/^(node|python|python3|bash|sh)\s+([^\s]+)/);
3252
- if (!match) {
3252
+ if (!match?.[2]) {
3253
3253
  return true;
3254
3254
  }
3255
3255
  const filePath = match[2];
@@ -4792,7 +4792,7 @@ async function gatherStatus(cwd) {
4792
4792
  const techStackSummary = await readTechStackFirstLine(claudeRoot);
4793
4793
  return {
4794
4794
  projectName,
4795
- cliVersion: AVATAR_CLI_VERSION,
4795
+ cliVersion: readCliVersion(),
4796
4796
  packVersion,
4797
4797
  pendingCount,
4798
4798
  backupCount,