@nalvietnam/avatar-cli 1.3.2 → 1.3.3

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
@@ -1120,14 +1120,7 @@ async function writeWithBackup(path, content, mode) {
1120
1120
  await writeTextAtomic(path, content, mode);
1121
1121
  return backup;
1122
1122
  }
1123
- var CLAUDE_SUBDIRS = ["project", "state", "_pending", "_backup"];
1124
- var PROJECT_KNOWLEDGE_TEMPLATES = [
1125
- "project/tech-stack.md",
1126
- "project/conventions.md",
1127
- "project/architecture.md",
1128
- "project/domain.md",
1129
- "project/gotchas.md"
1130
- ];
1123
+ var CLAUDE_SUBDIRS = ["state", "_pending", "_backup"];
1131
1124
  async function createClaudeDirTree(projectRoot) {
1132
1125
  const claudeRoot = join10(projectRoot, ".claude");
1133
1126
  await ensureDir(claudeRoot);
@@ -1137,39 +1130,8 @@ async function createClaudeDirTree(projectRoot) {
1137
1130
  await writeTextAtomic(join10(dir, ".gitkeep"), "");
1138
1131
  }
1139
1132
  }
1140
- async function writeProjectKnowledgeFiles(projectRoot, vars) {
1141
- const baseVars = {
1142
- ...vars,
1143
- primaryLanguage: "(ch\u01B0a scan)",
1144
- frameworks: "(ch\u01B0a scan)",
1145
- databases: "(ch\u01B0a scan)",
1146
- testStack: "(ch\u01B0a scan)",
1147
- buildStack: "(ch\u01B0a scan)",
1148
- toolVersions: "(ch\u01B0a scan)",
1149
- codeStyle: "(ch\u01B0a scan)",
1150
- namingConvention: "(ch\u01B0a scan)",
1151
- folderStructure: "(ch\u01B0a scan)",
1152
- commitConvention: "(ch\u01B0a scan)",
1153
- linterConfig: "(ch\u01B0a scan)",
1154
- architectureOverview: "(ch\u01B0a scan)",
1155
- moduleLayout: "(ch\u01B0a scan)",
1156
- dataFlow: "(ch\u01B0a scan)",
1157
- externalIntegrations: "(ch\u01B0a scan)",
1158
- deploymentTopology: "(ch\u01B0a scan)",
1159
- domainDescription: "(ch\u01B0a scan)",
1160
- coreEntities: "(ch\u01B0a scan)",
1161
- primaryUseCases: "(ch\u01B0a scan)",
1162
- domainGlossary: "(ch\u01B0a scan)"
1163
- };
1164
- const backups = [];
1165
- for (const tpl of PROJECT_KNOWLEDGE_TEMPLATES) {
1166
- const content = await renderTemplateByName(tpl, baseVars);
1167
- const relative4 = tpl.replace(/^project\//, "");
1168
- const outPath = join10(projectRoot, ".claude", "project", relative4);
1169
- const backup = await writeWithBackup(outPath, content);
1170
- if (backup) backups.push(backup);
1171
- }
1172
- return backups;
1133
+ async function writeProjectKnowledgeFiles(_projectRoot, _vars) {
1134
+ return [];
1173
1135
  }
1174
1136
  async function writeRootClaudeMd(projectRoot, vars) {
1175
1137
  const content = await renderTemplateByName("CLAUDE.md", vars);
@@ -3528,7 +3490,7 @@ async function removeSubmoduleEntry(gitmodulesPath, submodulePath) {
3528
3490
  }
3529
3491
 
3530
3492
  // src/commands/uninstall.ts
3531
- var CLI_VERSION = "1.3.2";
3493
+ var CLI_VERSION = "1.3.3";
3532
3494
  function registerUninstallCommand(program2) {
3533
3495
  program2.command("uninstall").description("G\u1EE1 Avatar kh\u1ECFi project \u2014 backup t\u1EF1 \u0111\u1ED9ng (M11)").option("--yes", "Skip confirm prompt").option("--no-backup", "Kh\xF4ng t\u1EA1o backup tr\u01B0\u1EDBc khi x\xF3a (nguy hi\u1EC3m)").option("--keep-submodule", "Gi\u1EEF submodule .claude/pack/").option("--keep-hooks", "Gi\u1EEF git hooks post-merge, pre-push").option("--dry-run", "Hi\u1EC3n th\u1ECB danh s\xE1ch s\u1EBD x\xF3a, kh\xF4ng th\u1EF1c thi").action(async (opts) => {
3534
3496
  try {
@@ -3610,7 +3572,7 @@ function printUninstallSuccessBox(backupPath) {
3610
3572
  }
3611
3573
 
3612
3574
  // src/index.ts
3613
- var CLI_VERSION2 = "1.3.2";
3575
+ var CLI_VERSION2 = "1.3.3";
3614
3576
  var program = new Command();
3615
3577
  program.name("avatar").description("AI harness CLI for NAL Vietnam engineering").version(CLI_VERSION2, "-v, --version", "Hi\u1EC3n th\u1ECB phi\xEAn b\u1EA3n Avatar CLI").addHelpText(
3616
3578
  "beforeAll",