thanh-kit 2.5.2 → 2.5.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
@@ -559,6 +559,23 @@ var init_claude_adapter = __esm({
559
559
  }
560
560
  return copied;
561
561
  }
562
+ /**
563
+ * Copy entire source directory to target (simple full copy)
564
+ */
565
+ async copyFullSource(sourceDir, targetDir, mergeMode) {
566
+ const copiedItems = [];
567
+ const items = await fs2.readdir(sourceDir);
568
+ for (const item of items) {
569
+ const srcPath = join3(sourceDir, item);
570
+ const destPath = join3(targetDir, item);
571
+ if (mergeMode && await fs2.pathExists(destPath)) {
572
+ continue;
573
+ }
574
+ await fs2.copy(srcPath, destPath, { overwrite: !mergeMode });
575
+ copiedItems.push(item);
576
+ }
577
+ return { success: true, copiedItems };
578
+ }
562
579
  };
563
580
  }
564
581
  });
@@ -2067,6 +2084,19 @@ async function initCommand(projectName, options) {
2067
2084
  const targetDir = join9(projectDir, adapter.config.directory);
2068
2085
  await fs8.ensureDir(targetDir);
2069
2086
  const targetLabel = adapter.config.displayName;
2087
+ if (kitName === "full" && target === "claude") {
2088
+ spinner.text = mergeMode ? `Merging full kit (${targetLabel})...` : `Copying full kit (${targetLabel})...`;
2089
+ const items = await fs8.readdir(source.claudeDir);
2090
+ for (const item of items) {
2091
+ const srcPath = join9(source.claudeDir, item);
2092
+ const destPath = join9(targetDir, item);
2093
+ if (mergeMode && await fs8.pathExists(destPath)) {
2094
+ continue;
2095
+ }
2096
+ await fs8.copy(srcPath, destPath, { overwrite: !mergeMode });
2097
+ }
2098
+ continue;
2099
+ }
2070
2100
  const filteredItems = adapter.filterInstallItems(toInstall);
2071
2101
  spinner.text = mergeMode ? `Merging agents (${targetLabel})...` : `Copying agents (${targetLabel})...`;
2072
2102
  await adapter.copyAgents(filteredItems.agents, source.claudeDir, targetDir, mergeMode);