thachvd-kit 1.0.24 → 1.0.25

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/bin/cli.js CHANGED
@@ -1345,7 +1345,6 @@ function copyAgentFolder() {
1345
1345
 
1346
1346
  const destAgent = path.join(targetDir, '.agent');
1347
1347
  let copied = 0;
1348
- let skipped = 0;
1349
1348
 
1350
1349
  function copyDir(src, dest) {
1351
1350
  fs.mkdirSync(dest, { recursive: true });
@@ -1359,18 +1358,14 @@ function copyAgentFolder() {
1359
1358
  if (entry.isDirectory()) {
1360
1359
  copyDir(srcPath, destPath);
1361
1360
  } else {
1362
- if (fs.existsSync(destPath)) {
1363
- skipped++;
1364
- } else {
1365
- fs.copyFileSync(srcPath, destPath);
1366
- copied++;
1367
- }
1361
+ fs.copyFileSync(srcPath, destPath);
1362
+ copied++;
1368
1363
  }
1369
1364
  }
1370
1365
  }
1371
1366
 
1372
1367
  copyDir(srcAgent, destAgent);
1373
- return { copied, skipped };
1368
+ return { copied, skipped: 0 };
1374
1369
  }
1375
1370
 
1376
1371
  function copySelectedSkillFolders(data, assumeYes) {
@@ -1388,7 +1383,6 @@ function copySelectedSkillFolders(data, assumeYes) {
1388
1383
  if (codexSkillsDir) destinations.push(codexSkillsDir);
1389
1384
 
1390
1385
  let copied = 0;
1391
- let skipped = 0;
1392
1386
  let missing = 0;
1393
1387
 
1394
1388
  function copyDir(src, dest) {
@@ -1398,8 +1392,6 @@ function copySelectedSkillFolders(data, assumeYes) {
1398
1392
  const destPath = path.join(dest, entry.name);
1399
1393
  if (entry.isDirectory()) {
1400
1394
  copyDir(srcPath, destPath);
1401
- } else if (fs.existsSync(destPath) && !assumeYes) {
1402
- skipped++;
1403
1395
  } else {
1404
1396
  fs.mkdirSync(path.dirname(destPath), { recursive: true });
1405
1397
  fs.copyFileSync(srcPath, destPath);
@@ -1419,13 +1411,25 @@ function copySelectedSkillFolders(data, assumeYes) {
1419
1411
  }
1420
1412
  }
1421
1413
 
1422
- return { copied, skipped, missing, skills: selectedSkills };
1414
+ return { copied, skipped: 0, missing, skills: selectedSkills };
1423
1415
  }
1424
1416
 
1425
1417
  async function writeGeneratedFile(relativePath, content, assumeYes) {
1426
1418
  const outputPath = path.join(targetDir, relativePath);
1427
1419
  const exists = fs.existsSync(outputPath);
1428
- if (exists && !assumeYes) return false;
1420
+ if (exists && !assumeYes) {
1421
+ const response = await prompts({
1422
+ type: 'confirm',
1423
+ name: 'overwrite',
1424
+ message: `File ${pc.bold(relativePath)} already exists. Do you want to overwrite it?`,
1425
+ initial: false
1426
+ });
1427
+ if (response.overwrite === undefined) {
1428
+ console.log(pc.yellow('\nCancelled.'));
1429
+ process.exit(130);
1430
+ }
1431
+ if (!response.overwrite) return false;
1432
+ }
1429
1433
 
1430
1434
  fs.mkdirSync(path.dirname(outputPath), { recursive: true });
1431
1435
  fs.writeFileSync(outputPath, content, 'utf8');
@@ -1723,10 +1727,10 @@ async function main() {
1723
1727
 
1724
1728
  ${pc.bold('Copy this prompt into your AI editor:')}
1725
1729
  ${pc.dim('---')}
1726
- Read AGENTS.md and all files under .agent/docs/.
1730
+ Read CLAUDE.md (if using Claude Code), AGENTS.md, and all files under .agent/docs/.
1727
1731
  Ask me what this project does and any important conventions I want preserved.
1728
1732
  Then scan this repository.
1729
- Update AGENTS.md, .cursorrules and .agent/docs/project.md, .agent/docs/architecture.md, .agent/docs/conventions.md, .agent/docs/workflow.md, and .agent/docs/tooling.md with factual project-specific rules.
1733
+ Update CLAUDE.md, AGENTS.md, .cursorrules and .agent/docs/project.md, .agent/docs/architecture.md, .agent/docs/conventions.md, .agent/docs/workflow.md, and .agent/docs/tooling.md with factual project-specific rules.
1730
1734
  Do not implement product code.
1731
1735
  Remove TODO: refine only when backed by evidence from the codebase.
1732
1736
  ${pc.dim('---')}
@@ -5,9 +5,9 @@ Use these prompts after `thachvd-kit init` when you want the AI agent to refine
5
5
  ## Initial Refinement
6
6
 
7
7
  ```text
8
- Read AGENTS.md and all files under .agent/docs/.
8
+ Read CLAUDE.md (if using Claude Code), AGENTS.md, and all files under .agent/docs/.
9
9
  Scan the current repository.
10
- Update .agent/docs/project.md, .agent/docs/architecture.md, and .agent/docs/conventions.md with factual project-specific rules.
10
+ Update CLAUDE.md, AGENTS.md, .cursorrules and .agent/docs/project.md, .agent/docs/architecture.md, and .agent/docs/conventions.md with factual project-specific rules.
11
11
  Do not implement product code.
12
12
  Remove TODO: refine items only when you have real evidence from the codebase.
13
13
  ```
@@ -15,7 +15,7 @@ Remove TODO: refine items only when you have real evidence from the codebase.
15
15
  ## Before A Feature
16
16
 
17
17
  ```text
18
- Read AGENTS.md and .agent/docs/workflow.md.
18
+ Read CLAUDE.md (if using Claude Code), AGENTS.md, and .agent/docs/workflow.md.
19
19
  Check whether .agent/docs/architecture.md and .agent/docs/conventions.md are accurate for this task.
20
20
  If they are stale, update the relevant docs first.
21
21
  Then define success criteria, implement the smallest coherent change, and verify.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "thachvd-kit",
3
- "version": "1.0.24",
3
+ "version": "1.0.25",
4
4
  "description": "Cross-agent project rules bootstrap kit for Codex, Antigravity, and Claude Code",
5
5
  "bin": {
6
6
  "thachvd-kit": "./bin/cli.js"