prjct-cli 0.8.0 → 0.8.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/CHANGELOG.md +38 -0
- package/core/infrastructure/command-installer.js +14 -0
- package/package.json +2 -1
- package/scripts/install.sh +14 -2
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,44 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [0.8.1] - 2025-10-05
|
|
11
|
+
|
|
12
|
+
### Fixed
|
|
13
|
+
|
|
14
|
+
- **Critical Installation Bug** - Fixed incorrect path in `install.sh` line 315
|
|
15
|
+
- Changed `./core/command-installer` → `./core/infrastructure/command-installer`
|
|
16
|
+
- Resolves "Cannot find module" error during installation
|
|
17
|
+
|
|
18
|
+
- **Missing Method Error** - Added `installToAll()` method to command-installer
|
|
19
|
+
- Implements method called by install.sh line 316
|
|
20
|
+
- Acts as alias for `installCommands()` for backward compatibility
|
|
21
|
+
|
|
22
|
+
- **Commands Not Auto-Updating** - Implemented automatic command synchronization
|
|
23
|
+
- After `git pull`, commands in `~/.claude/commands/p/` now update automatically
|
|
24
|
+
- Added visual confirmation: "Commands synchronized ✓"
|
|
25
|
+
|
|
26
|
+
- **Missing Visual Confirmation** - Added ASCII confirmation in setup.sh
|
|
27
|
+
- Displays "✨ Setup Complete! ✨" after successful npm install
|
|
28
|
+
- Clear feedback that installation succeeded
|
|
29
|
+
|
|
30
|
+
### Added
|
|
31
|
+
|
|
32
|
+
- **Update Script** - New `scripts/update.sh` for easy updates
|
|
33
|
+
- Single command to update prjct-cli: `npm run update`
|
|
34
|
+
- Handles: git pull → npm install → command updates
|
|
35
|
+
- Visual progress indicators and confirmation
|
|
36
|
+
|
|
37
|
+
- **Enhanced Logging** - Improved updateCommands() with visual feedback
|
|
38
|
+
- Shows "🔄 Updating commands with latest templates..."
|
|
39
|
+
- Displays "✅ Updated X commands" on success
|
|
40
|
+
|
|
41
|
+
### Changed
|
|
42
|
+
|
|
43
|
+
- **Installation Flow** - Simplified and more reliable
|
|
44
|
+
- Auto-updates commands after git pull (no manual reinstall needed)
|
|
45
|
+
- Single npm install (eliminated duplication)
|
|
46
|
+
- Clear visual feedback at each step
|
|
47
|
+
|
|
10
48
|
## [0.8.0] - 2025-10-05
|
|
11
49
|
|
|
12
50
|
### Added
|
|
@@ -200,6 +200,20 @@ class CommandInstaller {
|
|
|
200
200
|
*/
|
|
201
201
|
async updateCommands() {
|
|
202
202
|
// Simply reinstall - will overwrite with latest templates
|
|
203
|
+
console.log('🔄 Updating commands with latest templates...')
|
|
204
|
+
const result = await this.installCommands()
|
|
205
|
+
if (result.success) {
|
|
206
|
+
console.log(`✅ Updated ${result.installed.length} commands`)
|
|
207
|
+
}
|
|
208
|
+
return result
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
/**
|
|
212
|
+
* Install to all detected editors (alias for installCommands)
|
|
213
|
+
* @param {boolean} interactive - Whether to show interactive prompts
|
|
214
|
+
* @returns {Promise<Object>} Installation results
|
|
215
|
+
*/
|
|
216
|
+
async installToAll(interactive = false) {
|
|
203
217
|
return await this.installCommands()
|
|
204
218
|
}
|
|
205
219
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "prjct-cli",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.1",
|
|
4
4
|
"description": "Built for Claude - Ship fast, track progress, stay focused. Developer momentum tool for indie hackers.",
|
|
5
5
|
"main": "core/index.js",
|
|
6
6
|
"bin": {
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
},
|
|
13
13
|
"scripts": {
|
|
14
14
|
"install-global": "./scripts/install.sh",
|
|
15
|
+
"update": "./scripts/update.sh",
|
|
15
16
|
"test": "vitest run --workspace=vitest.workspace.js",
|
|
16
17
|
"test:watch": "vitest --workspace=vitest.workspace.js",
|
|
17
18
|
"test:coverage": "vitest run --coverage --workspace=vitest.workspace.js",
|
package/scripts/install.sh
CHANGED
|
@@ -105,7 +105,7 @@ echo -e " ${BOLD}${CYAN}██████╔╝██████╔╝
|
|
|
105
105
|
echo -e " ${BOLD}${CYAN}██╔═══╝ ██╔══██╗██ ██║██║ ██║${NC}"
|
|
106
106
|
echo -e " ${BOLD}${CYAN}██║ ██║ ██║╚█████╔╝╚██████╗ ██║${NC}"
|
|
107
107
|
echo -e " ${BOLD}${CYAN}╚═╝ ╚═╝ ╚═╝ ╚════╝ ╚═════╝ ╚═╝${NC}"
|
|
108
|
-
echo -e " ${BOLD}${CYAN}prjct${NC}${MAGENTA}/${NC}${GREEN}cli${NC} ${DIM}${WHITE}v0.
|
|
108
|
+
echo -e " ${BOLD}${CYAN}prjct${NC}${MAGENTA}/${NC}${GREEN}cli${NC} ${DIM}${WHITE}v0.8.1${NC}"
|
|
109
109
|
echo ""
|
|
110
110
|
echo -e " ${DIM}Turn ideas into AI-ready roadmaps${NC}"
|
|
111
111
|
echo ""
|
|
@@ -244,6 +244,18 @@ if [ -d "$INSTALL_DIR" ]; then
|
|
|
244
244
|
) &
|
|
245
245
|
spin $!
|
|
246
246
|
echo -e " ${GREEN}${CHECK}${NC} Updated to v${REMOTE_VERSION}"
|
|
247
|
+
|
|
248
|
+
# Auto-update commands after git pull
|
|
249
|
+
printf " ${ARROW} Updating commands"
|
|
250
|
+
(
|
|
251
|
+
cd "$INSTALL_DIR"
|
|
252
|
+
node -e "
|
|
253
|
+
const installer = require('./core/infrastructure/command-installer');
|
|
254
|
+
installer.updateCommands();
|
|
255
|
+
" > /dev/null 2>&1
|
|
256
|
+
) &
|
|
257
|
+
spin $!
|
|
258
|
+
echo -e " ${GREEN}${CHECK}${NC} Commands synchronized"
|
|
247
259
|
else
|
|
248
260
|
printf " ${ARROW} Cloning repository"
|
|
249
261
|
(
|
|
@@ -312,7 +324,7 @@ else
|
|
|
312
324
|
printf " ${ARROW} Auto-installing to all detected editors...\n"
|
|
313
325
|
|
|
314
326
|
INSTALL_RESULT=$(node -e "
|
|
315
|
-
const installer = require('./core/command-installer');
|
|
327
|
+
const installer = require('./core/infrastructure/command-installer');
|
|
316
328
|
installer.installToAll(false).then(result => {
|
|
317
329
|
console.log('__RESULT_START__');
|
|
318
330
|
console.log(JSON.stringify(result));
|