claudekit-cli 1.1.0 → 1.2.0

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.
@@ -56,3 +56,47 @@ jobs:
56
56
  GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
57
57
  NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
58
58
  run: npx semantic-release
59
+
60
+ - name: Notify Discord
61
+ if: ${{ success() }}
62
+ uses: actions/github-script@v7
63
+ env:
64
+ DISCORD_WEBHOOK_URL: ${{ secrets.DISCORD_WEBHOOK_URL }}
65
+ with:
66
+ github-token: ${{ secrets.GITHUB_TOKEN }}
67
+ script: |
68
+ if (!process.env.DISCORD_WEBHOOK_URL) {
69
+ core.warning('DISCORD_WEBHOOK_URL not set, skipping Discord notification.')
70
+ return
71
+ }
72
+
73
+ const { owner, repo } = context.repo
74
+ const { data: releases } = await github.rest.repos.listReleases({
75
+ owner,
76
+ repo,
77
+ per_page: 1,
78
+ })
79
+
80
+ if (!releases.length) {
81
+ core.warning('No releases found, skipping Discord notification.')
82
+ return
83
+ }
84
+
85
+ const release = releases[0]
86
+ const description = (release.body || '').slice(0, 4000)
87
+
88
+ await fetch(process.env.DISCORD_WEBHOOK_URL, {
89
+ method: 'POST',
90
+ headers: { 'Content-Type': 'application/json' },
91
+ body: JSON.stringify({
92
+ username: 'ClaudeKit Release Bot',
93
+ embeds: [
94
+ {
95
+ title: `Release ${release.name || release.tag_name}`,
96
+ url: release.html_url,
97
+ description: description || 'No changelog available.',
98
+ timestamp: release.created_at,
99
+ },
100
+ ],
101
+ }),
102
+ })
package/CHANGELOG.md CHANGED
@@ -1,3 +1,19 @@
1
+ # [1.2.0](https://github.com/mrgoonie/claudekit-cli/compare/v1.1.0...v1.2.0) (2025-10-17)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **cli:** resolve unicode character rendering in terminal output ([a8d1e53](https://github.com/mrgoonie/claudekit-cli/commit/a8d1e53462be644e8435b17a6679453860a1c06a))
7
+ * **download:** implement hybrid asset download with GitHub tarball fallback ([bfa2262](https://github.com/mrgoonie/claudekit-cli/commit/bfa22624562f5098a017c38d39906315edde98a4))
8
+ * format package.json keywords array to single line ([c4f5858](https://github.com/mrgoonie/claudekit-cli/commit/c4f5858dc1e4d95df5b9e4233884f7ba8b09a09a))
9
+
10
+
11
+ ### Features
12
+
13
+ * **cli:** add verbose logging with --verbose flag and log file support ([d0c960d](https://github.com/mrgoonie/claudekit-cli/commit/d0c960d7115f4eb38b328f08ed980eda12dacd4b))
14
+ * **download:** prioritize ClaudeKit package assets in release downloads ([07533fe](https://github.com/mrgoonie/claudekit-cli/commit/07533fead1ed7f8382db81b65c4b82a7578ac86f))
15
+ * **update:** add custom file preservation and fix download authentication ([901f356](https://github.com/mrgoonie/claudekit-cli/commit/901f356de0fed1c68e3ad249d293f3eb3867bacf))
16
+
1
17
  # [1.1.0](https://github.com/mrgoonie/claudekit-cli/compare/v1.0.1...v1.1.0) (2025-10-17)
2
18
 
3
19
 
package/CLAUDE.md CHANGED
@@ -15,6 +15,8 @@ Your role is to analyze user requirements, delegate tasks to appropriate sub-age
15
15
 
16
16
  **IMPORTANT:** You must follow strictly the development rules in `./.claude/workflows/development-rules.md` file.
17
17
  **IMPORTANT:** Before you plan or proceed any implementation, always read the `./README.md` file first to get context.
18
+ **IMPORTANT:** Sacrifice grammar for the sake of concision when writing reports.
19
+ **IMPORTANT:** In reports, list any unresolved questions at the end, if any.
18
20
 
19
21
  ## Documentation Management
20
22
 
@@ -29,12 +31,4 @@ We keep all important docs in `./docs` folder and keep updating them, structure
29
31
  ├── deployment-guide.md
30
32
  ├── system-architecture.md
31
33
  └── project-roadmap.md
32
- ```
33
-
34
- ## Related directories
35
-
36
- - ClaudeKit CLI: current directory
37
- - ClaudeKit Engineer: `../claudekit-engineer`
38
- - ClaudeKit Marketing: `../claudekit-marketing`
39
- - ClaudeKit Website: `../claudekit-web`
40
- - ClaudeKit Docs: `../claudekit-docs`
34
+ ```
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2024 Duy Nguyen
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -116,13 +116,37 @@ ck versions --all
116
116
  ```bash
117
117
  # Show CLI version
118
118
  ck --version
119
- ck -v
120
119
 
121
120
  # Show help
122
121
  ck --help
123
122
  ck -h
124
123
  ```
125
124
 
125
+ ### Debugging and Verbose Mode
126
+
127
+ Enable detailed logging for debugging or troubleshooting:
128
+
129
+ ```bash
130
+ # Enable verbose logging with flag
131
+ ck new --verbose
132
+ ck update -v # Short form
133
+
134
+ # Using environment variable
135
+ CLAUDEKIT_VERBOSE=1 ck new
136
+
137
+ # Save logs to file for sharing
138
+ ck new --verbose --log-file debug.log
139
+ ```
140
+
141
+ **Verbose mode shows:**
142
+ - HTTP request/response details (with sanitized tokens)
143
+ - File operations (downloads, extractions, copies)
144
+ - Command execution steps and timing
145
+ - Error stack traces with full context
146
+ - Authentication flow details
147
+
148
+ **Note:** All sensitive data (tokens, credentials) is automatically sanitized in verbose logs for security.
149
+
126
150
  ## Authentication
127
151
 
128
152
  The CLI requires a GitHub Personal Access Token (PAT) to download releases from private repositories. The authentication flow follows a multi-tier fallback:
@@ -178,6 +202,34 @@ The following file patterns are protected and will not be overwritten during upd
178
202
  - `node_modules/**`, `.git/**`
179
203
  - `dist/**`, `build/**`
180
204
 
205
+ ### Custom .claude Files
206
+
207
+ When updating a project, the CLI automatically preserves your custom `.claude/` files that don't exist in the new release package. This allows you to maintain:
208
+
209
+ - Custom slash commands
210
+ - Personal workflows
211
+ - Project-specific configurations
212
+ - Any other custom files in `.claude/` directory
213
+
214
+ **How it works:**
215
+ 1. Before updating, the CLI scans your project's `.claude/` directory
216
+ 2. Compares it with the new release's `.claude/` directory
217
+ 3. Identifies custom files (files in your project but not in the release)
218
+ 4. Automatically protects these custom files during the update
219
+
220
+ **Example:**
221
+ ```
222
+ Your project:
223
+ .claude/
224
+ ├── commands/standard.md (from ClaudeKit)
225
+ └── commands/my-custom.md (your custom command)
226
+
227
+ After update:
228
+ .claude/
229
+ ├── commands/standard.md (updated from new release)
230
+ └── commands/my-custom.md (preserved - your custom file)
231
+ ```
232
+
181
233
  ## Development
182
234
 
183
235
  ```bash