Skip to content

v1.1.1 - Fix Template Path Error

Latest

Choose a tag to compare

@ChampPABA ChampPABA released this 04 Nov 04:49
· 100 commits to main since this release

πŸ› Fix v1.1.1 - Template Path Error

What's Fixed

Critical bug fix for v1.1.0 where cak init and cak update commands failed with:

❌ Error: Template folder not found. Please reinstall the package.

Root Cause

The npm package was configured to include a template/ folder that didn't exist:

"files": ["bin/", "lib/", "template/"]  ← template/ doesn't exist!

The actual template folder is .claude/, and the CLI code referenced the wrong path.

Changes

βœ… package.json: Fixed files array

- "template/"
+ ".claude/"

βœ… lib/init.js: Fixed template path

- const templatePath = path.join(__dirname, '../template/.claude');
+ const templatePath = path.join(__dirname, '../.claude');

βœ… lib/update.js: Fixed template path

- const templatePath = path.join(__dirname, '../template/.claude');
+ const templatePath = path.join(__dirname, '../.claude');

Testing

# Install the fixed version
npm install -g @champpaba/claude-agent-kit@1.1.1

# Test init command
cd your-project
cak init
# βœ… Should work now!

# Test update command  
cak update
# βœ… Should work now!

Upgrade Instructions

If you installed v1.1.0, upgrade immediately:

npm update -g @champpaba/claude-agent-kit

# Verify version
cak --version
# β†’ 1.1.1

Impact

  • βœ… Fixes: cak init command (initialize template in new projects)
  • βœ… Fixes: cak update command (update existing templates)
  • βœ… No breaking changes - fully compatible with v1.1.0

πŸ“¦ Installation

npm install -g @champpaba/claude-agent-kit@1.1.1

πŸ€– Generated with Claude Code