claudekit-cli 3.41.4-dev.10 → 3.41.4-dev.11

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.
Files changed (2) hide show
  1. package/dist/index.js +21 -6
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -44716,7 +44716,12 @@ var init_claudekit_constants = __esm(() => {
44716
44716
  });
44717
44717
 
44718
44718
  // src/shared/skip-directories.ts
44719
- var BUILD_ARTIFACT_DIRS, CLAUDE_CODE_INTERNAL_DIRS, SKIP_DIRS_ALL, SKIP_DIRS_CLAUDE_INTERNAL;
44719
+ function hasSkippedDirectorySegment(relativePath, skipDirs = SKIP_DIRS_ALL) {
44720
+ const segments = relativePath.replace(/\\/g, "/").split("/").filter(Boolean);
44721
+ const skipSet = skipDirs === SKIP_DIRS_ALL ? SKIP_DIRS_ALL_SET : new Set(skipDirs);
44722
+ return segments.some((segment) => skipSet.has(segment));
44723
+ }
44724
+ var BUILD_ARTIFACT_DIRS, CLAUDE_CODE_INTERNAL_DIRS, SKIP_DIRS_ALL, SKIP_DIRS_ALL_SET, SKIP_DIRS_CLAUDE_INTERNAL;
44720
44725
  var init_skip_directories = __esm(() => {
44721
44726
  BUILD_ARTIFACT_DIRS = [
44722
44727
  "node_modules",
@@ -44744,6 +44749,7 @@ var init_skip_directories = __esm(() => {
44744
44749
  ...BUILD_ARTIFACT_DIRS,
44745
44750
  ...CLAUDE_CODE_INTERNAL_DIRS
44746
44751
  ];
44752
+ SKIP_DIRS_ALL_SET = new Set(SKIP_DIRS_ALL);
44747
44753
  SKIP_DIRS_CLAUDE_INTERNAL = CLAUDE_CODE_INTERNAL_DIRS;
44748
44754
  });
44749
44755
 
@@ -58815,7 +58821,7 @@ var package_default;
58815
58821
  var init_package = __esm(() => {
58816
58822
  package_default = {
58817
58823
  name: "claudekit-cli",
58818
- version: "3.41.4-dev.10",
58824
+ version: "3.41.4-dev.11",
58819
58825
  description: "CLI tool for bootstrapping and updating ClaudeKit projects",
58820
58826
  type: "module",
58821
58827
  repository: {
@@ -97120,6 +97126,7 @@ class ManifestWriter {
97120
97126
  }
97121
97127
 
97122
97128
  // src/domains/migration/legacy-migration.ts
97129
+ init_environment();
97123
97130
  init_logger();
97124
97131
  init_skip_directories();
97125
97132
  var import_fs_extra18 = __toESM(require_lib(), 1);
@@ -97180,14 +97187,22 @@ class LegacyMigration {
97180
97187
  }
97181
97188
  static async classifyFiles(claudeDir3, manifest) {
97182
97189
  const files = await LegacyMigration.scanFiles(claudeDir3);
97190
+ const relevantFiles = files.filter((file) => {
97191
+ const relativePath = relative17(claudeDir3, file);
97192
+ return !hasSkippedDirectorySegment(relativePath);
97193
+ });
97194
+ const skippedRuntimeArtifacts = files.length - relevantFiles.length;
97195
+ if (skippedRuntimeArtifacts > 0) {
97196
+ logger.debug(`Legacy migration ignored ${skippedRuntimeArtifacts} runtime artifact file(s) after scan`);
97197
+ }
97183
97198
  const preview = {
97184
97199
  ckPristine: [],
97185
97200
  ckModified: [],
97186
97201
  userCreated: [],
97187
- totalFiles: files.length
97202
+ totalFiles: relevantFiles.length
97188
97203
  };
97189
97204
  const filesInManifest = [];
97190
- for (const file of files) {
97205
+ for (const file of relevantFiles) {
97191
97206
  const relativePath = relative17(claudeDir3, file).replace(/\\/g, "/");
97192
97207
  const manifestEntry = ReleaseManifestLoader.findFile(manifest, relativePath);
97193
97208
  if (!manifestEntry) {
@@ -97204,7 +97219,7 @@ class LegacyMigration {
97204
97219
  const checksumResults = await mapWithLimit(filesInManifest, async ({ file, relativePath, manifestChecksum }) => {
97205
97220
  const actualChecksum = await OwnershipChecker.calculateChecksum(file);
97206
97221
  return { relativePath, actualChecksum, manifestChecksum };
97207
- });
97222
+ }, getOptimalConcurrency());
97208
97223
  for (const { relativePath, actualChecksum, manifestChecksum } of checksumResults) {
97209
97224
  if (actualChecksum === manifestChecksum) {
97210
97225
  preview.ckPristine.push(relativePath);
@@ -97260,7 +97275,7 @@ User-created files (sample):`);
97260
97275
  const fullPath = join104(claudeDir3, relativePath);
97261
97276
  const checksum = await OwnershipChecker.calculateChecksum(fullPath);
97262
97277
  return { relativePath, checksum, ownership };
97263
- });
97278
+ }, getOptimalConcurrency());
97264
97279
  for (const { relativePath, checksum, ownership } of checksumResults) {
97265
97280
  trackedFiles.push({
97266
97281
  path: relativePath,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claudekit-cli",
3
- "version": "3.41.4-dev.10",
3
+ "version": "3.41.4-dev.11",
4
4
  "description": "CLI tool for bootstrapping and updating ClaudeKit projects",
5
5
  "type": "module",
6
6
  "repository": {