prjct-cli 0.27.0 → 0.28.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 +40 -0
- package/core/agentic/agent-router.ts +15 -0
- package/core/agentic/command-executor.ts +53 -5
- package/core/agentic/prompt-builder.ts +81 -0
- package/core/agentic/template-loader.ts +107 -32
- package/core/domain/agent-loader.ts +7 -9
- package/core/domain/context-estimator.ts +15 -15
- package/core/infrastructure/config-manager.ts +25 -4
- package/core/session/session-log-manager.ts +17 -0
- package/dist/bin/prjct.mjs +761 -399
- package/package.json +1 -1
- package/templates/commands/cleanup.md +5 -0
- package/templates/commands/ship.md +5 -0
- package/templates/commands/task.md +41 -0
package/package.json
CHANGED
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
---
|
|
2
2
|
allowed-tools: [Read, Edit, Bash]
|
|
3
3
|
description: 'Code cleanup'
|
|
4
|
+
tool-permissions:
|
|
5
|
+
bash:
|
|
6
|
+
allow: ["git status", "find . -type f", "wc -l"]
|
|
7
|
+
ask: ["rm *", "git clean"]
|
|
8
|
+
deny: ["rm -rf /", "rm -rf ~", "rm -rf .", "git reset --hard"]
|
|
4
9
|
---
|
|
5
10
|
|
|
6
11
|
# /p:cleanup
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
---
|
|
2
2
|
allowed-tools: [Read, Write, Bash, Glob, Grep, AskUserQuestion]
|
|
3
3
|
description: 'Ship feature with automated PR workflow'
|
|
4
|
+
tool-permissions:
|
|
5
|
+
bash:
|
|
6
|
+
allow: ["git status", "git log", "git diff", "git add", "git commit", "git push", "gh pr create", "gh pr view", "npm test", "npm run", "bun test", "bun run"]
|
|
7
|
+
ask: ["npm publish", "npm version", "git tag"]
|
|
8
|
+
deny: ["git push --force", "git reset --hard", "git clean -fd", "rm -rf"]
|
|
4
9
|
---
|
|
5
10
|
|
|
6
11
|
# /p:ship - Ship Feature
|
|
@@ -7,6 +7,47 @@ description: 'Unified task workflow with intelligent classification'
|
|
|
7
7
|
|
|
8
8
|
Start any work with automatic classification and intelligent breakdown.
|
|
9
9
|
|
|
10
|
+
## @ Agent Mentions
|
|
11
|
+
|
|
12
|
+
Invoke specific agents directly in your task using @ notation:
|
|
13
|
+
|
|
14
|
+
| Mention | Agent | Use Case |
|
|
15
|
+
|---------|-------|----------|
|
|
16
|
+
| `@frontend` | frontend.md | UI components, React/Vue |
|
|
17
|
+
| `@backend` | backend.md | APIs, server logic |
|
|
18
|
+
| `@database` | database.md | Schema, queries |
|
|
19
|
+
| `@uxui` | uxui.md | UX patterns, design |
|
|
20
|
+
| `@testing` | testing.md | Tests, coverage |
|
|
21
|
+
| `@devops` | devops.md | CI/CD, Docker |
|
|
22
|
+
|
|
23
|
+
**Examples:**
|
|
24
|
+
- `p. task @frontend add button` - Loads frontend specialist
|
|
25
|
+
- `p. task @frontend @uxui dark mode` - Loads both agents
|
|
26
|
+
- `p. task @backend optimize API` - Loads backend specialist
|
|
27
|
+
|
|
28
|
+
**Note:** If no @ mention, agents are auto-assigned based on task analysis.
|
|
29
|
+
|
|
30
|
+
## Claude Code Subagents
|
|
31
|
+
|
|
32
|
+
Special @ mentions invoke Claude Code's native subagents:
|
|
33
|
+
|
|
34
|
+
| Mention | Subagent | Use Case |
|
|
35
|
+
|---------|----------|----------|
|
|
36
|
+
| `@explore` | Explore | Fast codebase search, find patterns |
|
|
37
|
+
| `@general` | General | Complex multi-step research |
|
|
38
|
+
| `@plan` | Plan | Architecture design, implementation planning |
|
|
39
|
+
|
|
40
|
+
**Examples:**
|
|
41
|
+
- `p. task @explore find all API endpoints`
|
|
42
|
+
- `p. task @general research caching strategies`
|
|
43
|
+
- `p. task @plan design authentication system`
|
|
44
|
+
|
|
45
|
+
**Combined:**
|
|
46
|
+
- `p. task @frontend @explore add button like existing ones`
|
|
47
|
+
→ Loads frontend agent + uses Explore subagent to find similar buttons
|
|
48
|
+
|
|
49
|
+
---
|
|
50
|
+
|
|
10
51
|
## Context Variables
|
|
11
52
|
|
|
12
53
|
- `{projectId}`: From `.prjct/prjct.config.json`
|