prjct-cli 0.56.0 → 0.57.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 +31 -0
- package/core/commands/analysis.ts +46 -1
- package/core/commands/command-data.ts +6 -1
- package/core/commands/commands.ts +7 -1
- package/core/index.ts +1 -0
- package/core/infrastructure/path-manager.ts +219 -0
- package/core/services/context-generator.ts +131 -0
- package/core/services/index.ts +3 -0
- package/core/services/nested-context-resolver.ts +378 -0
- package/core/services/sync-service.ts +2 -0
- package/dist/bin/prjct.mjs +935 -390
- package/package.json +1 -1
- package/templates/global/CLAUDE.md +25 -9
- package/templates/global/modules/CLAUDE-core.md +24 -5
package/package.json
CHANGED
|
@@ -5,15 +5,17 @@
|
|
|
5
5
|
|
|
6
6
|
## HOW TO USE PRJCT (Read This First)
|
|
7
7
|
|
|
8
|
-
When user types `p. <command>`,
|
|
8
|
+
When user types `p. <command>`, **READ the template** from `~/.claude/commands/p/{command}.md` and execute it step by step.
|
|
9
9
|
|
|
10
10
|
```
|
|
11
|
-
p. sync →
|
|
12
|
-
p. task X →
|
|
13
|
-
p. done →
|
|
14
|
-
p. ship X →
|
|
11
|
+
p. sync → ~/.claude/commands/p/sync.md
|
|
12
|
+
p. task X → ~/.claude/commands/p/task.md
|
|
13
|
+
p. done → ~/.claude/commands/p/done.md
|
|
14
|
+
p. ship X → ~/.claude/commands/p/ship.md
|
|
15
15
|
```
|
|
16
16
|
|
|
17
|
+
**⚠️ ALWAYS use the Read tool on the template file first. Templates contain mandatory workflows.**
|
|
18
|
+
|
|
17
19
|
---
|
|
18
20
|
|
|
19
21
|
## ⚡ FAST vs 🧠 SMART COMMANDS (CRITICAL)
|
|
@@ -389,17 +391,31 @@ Next: [suggested action]
|
|
|
389
391
|
|
|
390
392
|
---
|
|
391
393
|
|
|
392
|
-
## LOADING DOMAIN AGENTS
|
|
394
|
+
## LOADING DOMAIN AGENTS (CRITICAL)
|
|
395
|
+
|
|
396
|
+
**Before starting any 🧠 SMART command (task, ship, bug, done):**
|
|
397
|
+
|
|
398
|
+
```
|
|
399
|
+
1. Read .prjct/prjct.config.json → get projectId
|
|
400
|
+
2. Set globalPath = ~/.prjct-cli/projects/{projectId}
|
|
401
|
+
3. Read relevant agents from {globalPath}/agents/:
|
|
402
|
+
- prjct-planner.md → for task planning (p. task)
|
|
403
|
+
- prjct-shipper.md → for shipping (p. ship)
|
|
404
|
+
- prjct-workflow.md → for task lifecycle (p. done, p. pause)
|
|
405
|
+
- backend.md, frontend.md → for domain-specific coding
|
|
406
|
+
```
|
|
393
407
|
|
|
394
|
-
|
|
408
|
+
**Available agents** (read the ones relevant to your task):
|
|
409
|
+
- `prjct-planner.md` - Task planning, subtask breakdown
|
|
410
|
+
- `prjct-shipper.md` - PR creation, version bumping
|
|
411
|
+
- `prjct-workflow.md` - Task state management
|
|
395
412
|
- `frontend.md` - Frontend patterns, components
|
|
396
413
|
- `backend.md` - Backend patterns, APIs
|
|
397
414
|
- `database.md` - Database patterns, queries
|
|
398
|
-
- `uxui.md` - UX/UI guidelines
|
|
399
415
|
- `testing.md` - Testing patterns
|
|
400
416
|
- `devops.md` - CI/CD, containers
|
|
401
417
|
|
|
402
|
-
|
|
418
|
+
**USE the agent context when working.** Agents contain project-specific patterns.
|
|
403
419
|
|
|
404
420
|
---
|
|
405
421
|
|
|
@@ -4,15 +4,34 @@
|
|
|
4
4
|
|
|
5
5
|
## HOW TO USE PRJCT
|
|
6
6
|
|
|
7
|
-
When user types `p. <command>`,
|
|
7
|
+
When user types `p. <command>`, **READ the template** from `~/.claude/commands/p/{command}.md` and execute it step by step.
|
|
8
8
|
|
|
9
9
|
```
|
|
10
|
-
p. sync →
|
|
11
|
-
p. task X →
|
|
12
|
-
p. done →
|
|
13
|
-
p. ship X →
|
|
10
|
+
p. sync → ~/.claude/commands/p/sync.md
|
|
11
|
+
p. task X → ~/.claude/commands/p/task.md
|
|
12
|
+
p. done → ~/.claude/commands/p/done.md
|
|
13
|
+
p. ship X → ~/.claude/commands/p/ship.md
|
|
14
14
|
```
|
|
15
15
|
|
|
16
|
+
**⚠️ ALWAYS Read() the template file first. Templates contain mandatory workflows.**
|
|
17
|
+
|
|
18
|
+
---
|
|
19
|
+
|
|
20
|
+
## LOADING DOMAIN AGENTS (CRITICAL)
|
|
21
|
+
|
|
22
|
+
**Before starting any 🧠 SMART command (task, ship, bug, done):**
|
|
23
|
+
|
|
24
|
+
```
|
|
25
|
+
1. Read .prjct/prjct.config.json → get projectId
|
|
26
|
+
2. Set globalPath = ~/.prjct-cli/projects/{projectId}
|
|
27
|
+
3. Read {globalPath}/agents/*.md for domain expertise:
|
|
28
|
+
- prjct-planner.md → for task planning
|
|
29
|
+
- prjct-shipper.md → for shipping
|
|
30
|
+
- backend.md, frontend.md, etc → for domain-specific work
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
**USE the agent context when working.** Agents contain project-specific patterns.
|
|
34
|
+
|
|
16
35
|
---
|
|
17
36
|
|
|
18
37
|
## CRITICAL RULES
|