claudekit-cli 3.6.0 → 3.6.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 +21 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -14925,7 +14925,7 @@ var cac = (name = "") => new CAC(name);
|
|
|
14925
14925
|
// package.json
|
|
14926
14926
|
var package_default = {
|
|
14927
14927
|
name: "claudekit-cli",
|
|
14928
|
-
version: "3.6.
|
|
14928
|
+
version: "3.6.1",
|
|
14929
14929
|
description: "CLI tool for bootstrapping and updating ClaudeKit projects",
|
|
14930
14930
|
type: "module",
|
|
14931
14931
|
repository: {
|
|
@@ -16634,6 +16634,7 @@ Note: Do NOT use 'Paste an authentication token' - use web browser login.`);
|
|
|
16634
16634
|
if (token && token.length > 0) {
|
|
16635
16635
|
return token;
|
|
16636
16636
|
}
|
|
16637
|
+
logger.debug("gh auth token returned empty result");
|
|
16637
16638
|
return null;
|
|
16638
16639
|
} catch (error) {
|
|
16639
16640
|
if (error?.stderr) {
|
|
@@ -31612,12 +31613,25 @@ class FileScanner {
|
|
|
31612
31613
|
static async findCustomFiles(destDir, sourceDir, subPath) {
|
|
31613
31614
|
const destSubDir = join27(destDir, subPath);
|
|
31614
31615
|
const sourceSubDir = join27(sourceDir, subPath);
|
|
31616
|
+
logger.debug(`findCustomFiles - destDir: ${destDir}`);
|
|
31617
|
+
logger.debug(`findCustomFiles - sourceDir: ${sourceDir}`);
|
|
31618
|
+
logger.debug(`findCustomFiles - subPath: "${subPath}"`);
|
|
31619
|
+
logger.debug(`findCustomFiles - destSubDir: ${destSubDir}`);
|
|
31620
|
+
logger.debug(`findCustomFiles - sourceSubDir: ${sourceSubDir}`);
|
|
31615
31621
|
const destFiles = await FileScanner.getFiles(destSubDir, destDir);
|
|
31616
31622
|
const sourceFiles = await FileScanner.getFiles(sourceSubDir, sourceDir);
|
|
31623
|
+
logger.debug(`findCustomFiles - destFiles count: ${destFiles.length}`);
|
|
31624
|
+
logger.debug(`findCustomFiles - sourceFiles count: ${sourceFiles.length}`);
|
|
31625
|
+
const sourceExists = await import_fs_extra16.pathExists(sourceSubDir);
|
|
31626
|
+
if (sourceExists && sourceFiles.length === 0 && destFiles.length > 100) {
|
|
31627
|
+
logger.warning(`Source directory exists but is empty while destination has ${destFiles.length} files. This may indicate an extraction issue. Skipping custom file detection.`);
|
|
31628
|
+
return [];
|
|
31629
|
+
}
|
|
31617
31630
|
const sourceFileSet = new Set(sourceFiles);
|
|
31618
31631
|
const customFiles = destFiles.filter((file) => !sourceFileSet.has(file));
|
|
31619
31632
|
if (customFiles.length > 0) {
|
|
31620
|
-
|
|
31633
|
+
const displayPath = subPath || destSubDir;
|
|
31634
|
+
logger.info(`Found ${customFiles.length} custom file(s) in ${displayPath}`);
|
|
31621
31635
|
customFiles.slice(0, 5).forEach((file) => logger.debug(` - ${file}`));
|
|
31622
31636
|
if (customFiles.length > 5) {
|
|
31623
31637
|
logger.debug(` ... and ${customFiles.length - 5} more`);
|
|
@@ -31652,8 +31666,11 @@ async function initCommand(options) {
|
|
|
31652
31666
|
logger.info("Running in non-interactive mode (--yes flag)");
|
|
31653
31667
|
}
|
|
31654
31668
|
if (validOptions.global) {
|
|
31669
|
+
const globalKitDir = PathResolver.getGlobalKitDir();
|
|
31670
|
+
const cwdResolved = resolve4(process.cwd());
|
|
31671
|
+
const isInGlobalDir = cwdResolved === globalKitDir || cwdResolved === resolve4(globalKitDir, "..");
|
|
31655
31672
|
const localSettingsPath = join28(process.cwd(), ".claude", "settings.json");
|
|
31656
|
-
if (await import_fs_extra17.pathExists(localSettingsPath)) {
|
|
31673
|
+
if (!isInGlobalDir && await import_fs_extra17.pathExists(localSettingsPath)) {
|
|
31657
31674
|
if (isNonInteractive2) {
|
|
31658
31675
|
logger.warning("Local .claude/settings.json detected. Local settings take precedence over global.");
|
|
31659
31676
|
logger.warning("Consider removing local installation: rm -rf .claude");
|
|
@@ -32506,7 +32523,7 @@ import { promisify as promisify6 } from "node:util";
|
|
|
32506
32523
|
// package.json
|
|
32507
32524
|
var package_default2 = {
|
|
32508
32525
|
name: "claudekit-cli",
|
|
32509
|
-
version: "3.6.
|
|
32526
|
+
version: "3.6.1",
|
|
32510
32527
|
description: "CLI tool for bootstrapping and updating ClaudeKit projects",
|
|
32511
32528
|
type: "module",
|
|
32512
32529
|
repository: {
|