prjct-cli 0.18.1 → 0.18.2
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
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.18.2] - 2025-12-15
|
|
4
|
+
|
|
5
|
+
### Fix: Agents Write to Global Storage
|
|
6
|
+
|
|
7
|
+
Fixed critical bug where sub-agents were being written to project's local `.claude/agents/` directory instead of global storage.
|
|
8
|
+
|
|
9
|
+
- **Bug**: `/p:sync` created agents in `{projectPath}/.claude/agents/` polluting local projects
|
|
10
|
+
- **Fix**: Agents now correctly write to `~/.prjct-cli/projects/{projectId}/agents/`
|
|
11
|
+
|
|
12
|
+
**Files Modified:**
|
|
13
|
+
- `templates/commands/sync.md` - Changed all agent paths from `{cwd}/.claude/agents/` to `{globalPath}/agents/`
|
|
14
|
+
- `templates/agentic/subagent-generation.md` - Updated paths and added critical rules
|
|
15
|
+
|
|
3
16
|
## [0.16.0] - 2025-12-15
|
|
4
17
|
|
|
5
18
|
### Dead Code Cleanup
|
package/package.json
CHANGED
|
@@ -11,7 +11,7 @@ You have access to:
|
|
|
11
11
|
|
|
12
12
|
## Output Location
|
|
13
13
|
|
|
14
|
-
Write sub-agents to: `{
|
|
14
|
+
Write sub-agents to: `{globalPath}/agents/` (global storage, NOT local project)
|
|
15
15
|
|
|
16
16
|
## Sub-Agent Format (Claude Code)
|
|
17
17
|
|
|
@@ -70,29 +70,29 @@ Each generated agent should include:
|
|
|
70
70
|
|
|
71
71
|
1. **Read Analysis**
|
|
72
72
|
```
|
|
73
|
-
Read("{
|
|
73
|
+
Read("{globalPath}/analysis/repo-summary.md")
|
|
74
74
|
```
|
|
75
75
|
|
|
76
76
|
2. **Create Directory**
|
|
77
77
|
```
|
|
78
|
-
Bash("mkdir -p {
|
|
78
|
+
Bash("mkdir -p {globalPath}/agents")
|
|
79
79
|
```
|
|
80
80
|
|
|
81
81
|
3. **Generate Workflow Agents** (always)
|
|
82
82
|
- Read template from `templates/subagents/workflow/prjct-workflow.md`
|
|
83
83
|
- Adapt with project context
|
|
84
|
-
- Write to `{
|
|
84
|
+
- Write to `{globalPath}/agents/prjct-workflow.md`
|
|
85
85
|
- Repeat for prjct-planner.md and prjct-shipper.md
|
|
86
86
|
|
|
87
87
|
4. **Generate Domain Agents** (based on analysis)
|
|
88
88
|
- For each detected technology stack:
|
|
89
89
|
- Read corresponding template from `templates/subagents/domain/`
|
|
90
90
|
- Adapt with project-specific details
|
|
91
|
-
- Write to `{
|
|
91
|
+
- Write to `{globalPath}/agents/`
|
|
92
92
|
|
|
93
93
|
5. **Report Generated Agents**
|
|
94
94
|
```
|
|
95
|
-
Generated sub-agents in
|
|
95
|
+
Generated sub-agents in {globalPath}/agents/:
|
|
96
96
|
- prjct-workflow.md (workflow)
|
|
97
97
|
- prjct-planner.md (workflow)
|
|
98
98
|
- prjct-shipper.md (workflow)
|
|
@@ -102,6 +102,8 @@ Each generated agent should include:
|
|
|
102
102
|
|
|
103
103
|
## Critical Rules
|
|
104
104
|
|
|
105
|
+
- **NEVER write agents to local project directories** (`.claude/`, `.prjct/`)
|
|
106
|
+
- **ALWAYS write agents to `{globalPath}/agents/`** (global storage)
|
|
105
107
|
- NEVER hardcode technology detection in TypeScript
|
|
106
108
|
- ALWAYS read and analyze repo-summary.md
|
|
107
109
|
- ADAPT templates to project context
|
|
@@ -374,12 +374,12 @@ WRITE: `{globalPath}/project.json`
|
|
|
374
374
|
|
|
375
375
|
## Step 7: Generate Claude Code Sub-Agents (AGENTIC)
|
|
376
376
|
|
|
377
|
-
Generate sub-agents for Claude Code in the
|
|
377
|
+
Generate sub-agents for Claude Code in the GLOBAL storage `{globalPath}/agents/` directory.
|
|
378
378
|
|
|
379
379
|
### 7.1 Create Directory
|
|
380
380
|
|
|
381
381
|
```bash
|
|
382
|
-
mkdir -p {
|
|
382
|
+
mkdir -p {globalPath}/agents
|
|
383
383
|
```
|
|
384
384
|
|
|
385
385
|
### 7.2 Read Generation Instructions
|
|
@@ -398,17 +398,17 @@ These 3 agents are ALWAYS created for every prjct project:
|
|
|
398
398
|
**prjct-workflow.md** - Handles: /p:now, /p:done, /p:next, /p:pause, /p:resume
|
|
399
399
|
READ template: `templates/subagents/workflow/prjct-workflow.md`
|
|
400
400
|
ADAPT with: projectId, projectPath
|
|
401
|
-
WRITE to: `{
|
|
401
|
+
WRITE to: `{globalPath}/agents/prjct-workflow.md`
|
|
402
402
|
|
|
403
403
|
**prjct-planner.md** - Handles: /p:feature, /p:idea, /p:spec, /p:bug
|
|
404
404
|
READ template: `templates/subagents/workflow/prjct-planner.md`
|
|
405
405
|
ADAPT with: projectId, projectPath
|
|
406
|
-
WRITE to: `{
|
|
406
|
+
WRITE to: `{globalPath}/agents/prjct-planner.md`
|
|
407
407
|
|
|
408
408
|
**prjct-shipper.md** - Handles: /p:ship
|
|
409
409
|
READ template: `templates/subagents/workflow/prjct-shipper.md`
|
|
410
410
|
ADAPT with: projectId, projectPath, detected test/lint commands
|
|
411
|
-
WRITE to: `{
|
|
411
|
+
WRITE to: `{globalPath}/agents/prjct-shipper.md`
|
|
412
412
|
|
|
413
413
|
### 7.4 Generate Domain Agents (Based on Stack)
|
|
414
414
|
|
|
@@ -425,7 +425,7 @@ Analyze `{techStack}` from Step 3 and generate ONLY relevant domain agents:
|
|
|
425
425
|
For EACH detected stack:
|
|
426
426
|
1. READ template from `templates/subagents/domain/{name}.md`
|
|
427
427
|
2. ADAPT description with detected frameworks (e.g., "React specialist" not just "frontend")
|
|
428
|
-
3. WRITE to `{
|
|
428
|
+
3. WRITE to `{globalPath}/agents/{name}.md`
|
|
429
429
|
|
|
430
430
|
### 7.5 Report Generated Agents
|
|
431
431
|
|
|
@@ -573,7 +573,7 @@ Next: /p:now to start a new task
|
|
|
573
573
|
│ └── events.jsonl
|
|
574
574
|
└── project.json # Metadata
|
|
575
575
|
|
|
576
|
-
{
|
|
576
|
+
# Sub-Agents are in {globalPath}/agents/ (NOT in project .claude/)
|
|
577
577
|
├── prjct-workflow.md # /p:now, /p:done, /p:next
|
|
578
578
|
├── prjct-planner.md # /p:feature, /p:idea, /p:spec
|
|
579
579
|
├── prjct-shipper.md # /p:ship
|