prjct-cli 0.22.0 → 0.25.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/CHANGELOG.md +76 -0
- package/CLAUDE.md +14 -7
- package/core/commands/command-data.ts +21 -8
- package/core/commands/setup.ts +52 -17
- package/core/infrastructure/setup.ts +101 -0
- package/core/schemas/project.ts +1 -0
- package/package.json +1 -1
- package/templates/commands/bug.md +79 -3
- package/templates/commands/feature.md +28 -677
- package/templates/commands/git.md +82 -6
- package/templates/commands/now.md +32 -119
- package/templates/commands/ship.md +265 -39
- package/templates/commands/sync.md +41 -3
- package/templates/commands/task.md +686 -0
- package/templates/global/CLAUDE.md +10 -3
|
@@ -387,6 +387,15 @@ WRITE: `{globalPath}/context/CLAUDE.md`
|
|
|
387
387
|
|
|
388
388
|
READ existing: `{globalPath}/project.json` (preserve createdAt)
|
|
389
389
|
|
|
390
|
+
GET CLI version:
|
|
391
|
+
```bash
|
|
392
|
+
bun -e "console.log(require('./package.json').version)" 2>/dev/null || node -e "console.log(require('./package.json').version)"
|
|
393
|
+
```
|
|
394
|
+
SET: `{cliVersion}` = result (e.g., "0.24.0")
|
|
395
|
+
|
|
396
|
+
CHECK: `{previousCliVersion}` = existing.cliVersion (if any)
|
|
397
|
+
SET: `{isVersionUpgrade}` = previousCliVersion != cliVersion
|
|
398
|
+
|
|
390
399
|
WRITE: `{globalPath}/project.json`
|
|
391
400
|
|
|
392
401
|
```json
|
|
@@ -395,6 +404,7 @@ WRITE: `{globalPath}/project.json`
|
|
|
395
404
|
"repoPath": "{cwd}",
|
|
396
405
|
"name": "{projectName}",
|
|
397
406
|
"version": "{version}",
|
|
407
|
+
"cliVersion": "{cliVersion}",
|
|
398
408
|
"techStack": {techStack},
|
|
399
409
|
"fileCount": {fileCount},
|
|
400
410
|
"commitCount": {commitCount},
|
|
@@ -412,6 +422,21 @@ WRITE: `{globalPath}/project.json`
|
|
|
412
422
|
|
|
413
423
|
Generate sub-agents for Claude Code in the GLOBAL storage `{globalPath}/agents/` directory.
|
|
414
424
|
|
|
425
|
+
### 7.0 PURGE Legacy Agents (CRITICAL)
|
|
426
|
+
|
|
427
|
+
**ALWAYS purge all existing agents to ensure no legacy remains.**
|
|
428
|
+
|
|
429
|
+
```bash
|
|
430
|
+
rm -rf {globalPath}/agents/*
|
|
431
|
+
```
|
|
432
|
+
|
|
433
|
+
OUTPUT: "🗑️ Purged legacy agents"
|
|
434
|
+
|
|
435
|
+
This ensures:
|
|
436
|
+
- Old agent formats are removed
|
|
437
|
+
- New agent templates are used
|
|
438
|
+
- No outdated instructions remain
|
|
439
|
+
|
|
415
440
|
### 7.1 Create Directory
|
|
416
441
|
|
|
417
442
|
```bash
|
|
@@ -549,7 +574,7 @@ IF cloudSync AND no syncError:
|
|
|
549
574
|
## Output
|
|
550
575
|
|
|
551
576
|
```
|
|
552
|
-
🔄
|
|
577
|
+
🔄 Project synced to prjct v{cliVersion}
|
|
553
578
|
|
|
554
579
|
📊 Project Stats
|
|
555
580
|
├── Files: {fileCount}
|
|
@@ -569,13 +594,26 @@ IF cloudSync AND no syncError:
|
|
|
569
594
|
├── context/shipped.md
|
|
570
595
|
└── context/CLAUDE.md
|
|
571
596
|
|
|
572
|
-
🤖
|
|
597
|
+
🤖 Agents Regenerated ({workflowAgents.length + domainAgents.length})
|
|
573
598
|
├── Workflow: prjct-workflow, prjct-planner, prjct-shipper
|
|
574
599
|
├── Domain: {domainAgents.join(', ') || 'none'}
|
|
575
600
|
{IF hasFrontendUI}
|
|
576
601
|
└── 🎨 UX/UI: uxui.md (Priority: UX > UI)
|
|
577
602
|
{ENDIF}
|
|
578
603
|
|
|
604
|
+
{IF isVersionUpgrade}
|
|
605
|
+
✨ New Features Available in v{cliVersion}:
|
|
606
|
+
|
|
607
|
+
• /p:task - Unified task command with agentic classification
|
|
608
|
+
• Automatic type detection (feature, bug, improvement, refactor, chore)
|
|
609
|
+
• 7-phase development workflow for all task types
|
|
610
|
+
• Git branch management with type-based prefixes
|
|
611
|
+
• UX/UI design workflow for frontend tasks
|
|
612
|
+
• Design expert integration
|
|
613
|
+
|
|
614
|
+
Note: /p:now and /p:feature are deprecated. Use /p:task instead.
|
|
615
|
+
{ENDIF}
|
|
616
|
+
|
|
579
617
|
{IF cloudSync}
|
|
580
618
|
☁️ Cloud Sync
|
|
581
619
|
├── Pushed: {pushedCount} events
|
|
@@ -592,7 +630,7 @@ Next: Commit your work or continue coding
|
|
|
592
630
|
{ELSE}
|
|
593
631
|
✨ Repository is clean!
|
|
594
632
|
|
|
595
|
-
Next: /p:
|
|
633
|
+
Next: /p:task "your next task"
|
|
596
634
|
{ENDIF}
|
|
597
635
|
```
|
|
598
636
|
|