claudekit-cli 3.4.0 → 3.5.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.
- package/README.md +18 -0
- package/bin/ck.js +23 -0
- package/dist/index.js +2492 -2470
- package/package.json +4 -3
package/README.md
CHANGED
|
@@ -116,6 +116,13 @@ ck new --prefix
|
|
|
116
116
|
# Interactive mode
|
|
117
117
|
ck init
|
|
118
118
|
|
|
119
|
+
# Non-interactive mode with sensible defaults
|
|
120
|
+
ck init --yes
|
|
121
|
+
ck init -y
|
|
122
|
+
|
|
123
|
+
# Combine with other flags
|
|
124
|
+
ck init -g --kit engineer -y
|
|
125
|
+
|
|
119
126
|
# With options
|
|
120
127
|
ck init --kit engineer --beta
|
|
121
128
|
|
|
@@ -130,11 +137,22 @@ ck init --exclude "*.local" --prefix
|
|
|
130
137
|
```
|
|
131
138
|
|
|
132
139
|
**Flags:**
|
|
140
|
+
- `--yes/-y`: Non-interactive mode with sensible defaults (skip all prompts)
|
|
133
141
|
- `--global/-g`: Use platform-specific config (macOS/Linux: ~/.claude, Windows: %USERPROFILE%\.claude)
|
|
134
142
|
- `--fresh`: Clean reinstall, removes .claude directory (requires "yes" confirmation)
|
|
135
143
|
- `--beta`: Show pre-release versions
|
|
136
144
|
- `--prefix`: Apply /ck: namespace to commands
|
|
137
145
|
|
|
146
|
+
**Default Behavior with `-y` Flag:**
|
|
147
|
+
|
|
148
|
+
| Prompt | Default |
|
|
149
|
+
|--------|---------|
|
|
150
|
+
| Select ClaudeKit | engineer (first option) |
|
|
151
|
+
| Target directory | Current directory (`.`) |
|
|
152
|
+
| Version selection | Latest stable release |
|
|
153
|
+
| Google Gemini setup | Skip |
|
|
154
|
+
| Other optional features | Skip |
|
|
155
|
+
|
|
138
156
|
### Update CLI
|
|
139
157
|
|
|
140
158
|
Keep the ClaudeKit CLI up to date:
|
package/bin/ck.js
CHANGED
|
@@ -11,6 +11,29 @@ import { existsSync } from "node:fs";
|
|
|
11
11
|
import { dirname, join } from "node:path";
|
|
12
12
|
import { fileURLToPath, pathToFileURL } from "node:url";
|
|
13
13
|
|
|
14
|
+
// Minimum required Node.js version (major.minor)
|
|
15
|
+
const MIN_NODE_VERSION = [18, 0];
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Check if the current Node.js version meets minimum requirements.
|
|
19
|
+
* Required because dependencies like ora@8 use ES2022+ features.
|
|
20
|
+
*/
|
|
21
|
+
const checkNodeVersion = () => {
|
|
22
|
+
const [major, minor] = process.versions.node.split(".").map(Number);
|
|
23
|
+
const [minMajor, minMinor] = MIN_NODE_VERSION;
|
|
24
|
+
|
|
25
|
+
if (major < minMajor || (major === minMajor && minor < minMinor)) {
|
|
26
|
+
console.error(
|
|
27
|
+
`❌ Node.js ${MIN_NODE_VERSION.join(".")}+ is required. Current version: ${process.versions.node}`,
|
|
28
|
+
);
|
|
29
|
+
console.error(" Please upgrade Node.js: https://nodejs.org/");
|
|
30
|
+
process.exit(1);
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
// Check Node.js version before proceeding
|
|
35
|
+
checkNodeVersion();
|
|
36
|
+
|
|
14
37
|
const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
15
38
|
|
|
16
39
|
// Detect platform and architecture
|