prjct-cli 0.54.2 → 0.54.3

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,21 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.54.3] - 2026-01-30
4
+
5
+ ### Bug Fixes
6
+
7
+ - standardize confirmation pattern across all commands (#85)
8
+
9
+
10
+ ## [0.54.3] - 2026-01-30
11
+
12
+ ### Fixed
13
+
14
+ - Standardize confirmation pattern across all commands to use AskUserQuestion
15
+ - Updated `ship.md`, `merge.md`, `git.md`, `task.md` templates
16
+ - Replaces inconsistent "Proceed? (yes/no)" text prompts
17
+ - All confirmations now use consistent options: "Yes (Recommended)", "No, cancel"
18
+
3
19
  ## [0.54.2] - 2026-01-30
4
20
 
5
21
  ### Bug Fixes
@@ -25073,7 +25073,7 @@ var require_package = __commonJS({
25073
25073
  "package.json"(exports, module) {
25074
25074
  module.exports = {
25075
25075
  name: "prjct-cli",
25076
- version: "0.54.2",
25076
+ version: "0.54.3",
25077
25077
  description: "Context layer for AI agents. Project context for Claude Code, Gemini CLI, and more.",
25078
25078
  main: "core/index.ts",
25079
25079
  bin: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "prjct-cli",
3
- "version": "0.54.2",
3
+ "version": "0.54.3",
4
4
  "description": "Context layer for AI agents. Project context for Claude Code, Gemini CLI, and more.",
5
5
  "main": "core/index.ts",
6
6
  "bin": {
@@ -91,9 +91,8 @@ ABORT.
91
91
  git diff --stat
92
92
  ```
93
93
 
94
+ Show the user:
94
95
  ```
95
- OUTPUT:
96
- """
97
96
  ## Commit Plan
98
97
 
99
98
  Branch: {currentBranch}
@@ -101,13 +100,38 @@ Changes:
101
100
  {git diff --stat output}
102
101
 
103
102
  Will create commit with prjct footer.
104
- Proceed? (yes/no)
105
- """
103
+ ```
104
+
105
+ Then ask for confirmation:
106
+
107
+ ```
108
+ AskUserQuestion:
109
+ question: "Create this commit?"
110
+ header: "Commit"
111
+ options:
112
+ - label: "Yes, commit (Recommended)"
113
+ description: "Stage all changes and commit"
114
+ - label: "No, cancel"
115
+ description: "Abort commit"
116
+ - label: "Show full diff"
117
+ description: "See detailed changes"
118
+ ```
119
+
120
+ **Handle responses:**
106
121
 
107
- WAIT for explicit approval.
108
- DO NOT assume.
122
+ **If "Show full diff":**
123
+ - Run `git diff` to show full changes
124
+ - Ask again with Yes/No options only
125
+
126
+ **If "No, cancel":**
127
+ ```
128
+ OUTPUT: "✅ Commit cancelled"
129
+ STOP - Do not continue
109
130
  ```
110
131
 
132
+ **If "Yes, commit":**
133
+ CONTINUE to Step 3
134
+
111
135
  ### Step 3: Stage and Commit
112
136
 
113
137
  ```bash
@@ -159,20 +183,38 @@ ABORT.
159
183
  git log origin/{currentBranch}..HEAD --oneline 2>/dev/null || git log --oneline -3
160
184
  ```
161
185
 
186
+ Show the user:
162
187
  ```
163
- OUTPUT:
164
- """
165
188
  ## Push Plan
166
189
 
167
190
  Branch: {currentBranch}
168
191
  Commits to push:
169
192
  {commits}
193
+ ```
194
+
195
+ Then ask for confirmation:
196
+
197
+ ```
198
+ AskUserQuestion:
199
+ question: "Push these commits?"
200
+ header: "Push"
201
+ options:
202
+ - label: "Yes, push (Recommended)"
203
+ description: "Push to remote origin"
204
+ - label: "No, cancel"
205
+ description: "Keep commits local"
206
+ ```
170
207
 
171
- Proceed? (yes/no)
172
- """
208
+ **Handle responses:**
173
209
 
174
- WAIT for explicit approval.
210
+ **If "No, cancel":**
175
211
  ```
212
+ OUTPUT: "✅ Push cancelled"
213
+ STOP - Do not continue
214
+ ```
215
+
216
+ **If "Yes, push":**
217
+ CONTINUE to Step 3
176
218
 
177
219
  ### Step 3: Execute Push
178
220
 
@@ -79,11 +79,31 @@ Will do:
79
79
  1. Merge PR with squash
80
80
  2. Delete feature branch
81
81
  3. Update local main
82
+ ```
83
+
84
+ Then ask for confirmation:
82
85
 
83
- Proceed? (yes/no)
86
+ ```
87
+ AskUserQuestion:
88
+ question: "Merge this PR?"
89
+ header: "Merge"
90
+ options:
91
+ - label: "Yes, merge (Recommended)"
92
+ description: "Squash merge and delete branch"
93
+ - label: "No, cancel"
94
+ description: "Keep PR open"
95
+ ```
96
+
97
+ **Handle responses:**
98
+
99
+ **If "No, cancel":**
100
+ ```
101
+ OUTPUT: "✅ Merge cancelled"
102
+ STOP - Do not continue
84
103
  ```
85
104
 
86
- **⛔ WAIT for explicit approval. Do not assume.**
105
+ **If "Yes, merge":**
106
+ CONTINUE to Step 4
87
107
 
88
108
  ---
89
109
 
@@ -69,11 +69,37 @@ Will do:
69
69
  4. Commit with prjct footer
70
70
  5. Push branch
71
71
  6. Create PR to main
72
+ ```
73
+
74
+ Then ask for confirmation:
75
+
76
+ ```
77
+ AskUserQuestion:
78
+ question: "Ready to ship these changes?"
79
+ header: "Ship"
80
+ options:
81
+ - label: "Yes, ship it (Recommended)"
82
+ description: "Run tests, bump version, create PR"
83
+ - label: "No, cancel"
84
+ description: "Abort ship operation"
85
+ - label: "Show full diff"
86
+ description: "See all file changes before deciding"
87
+ ```
88
+
89
+ **Handle responses:**
72
90
 
73
- Proceed? (yes/no)
91
+ **If "Show full diff":**
92
+ - Run `git diff` to show full changes
93
+ - Ask again with Yes/No options only
94
+
95
+ **If "No, cancel":**
96
+ ```
97
+ OUTPUT: "✅ Ship cancelled"
98
+ STOP - Do not continue
74
99
  ```
75
100
 
76
- **⛔ WAIT for explicit "yes" or approval. Do not assume.**
101
+ **If "Yes, ship it":**
102
+ CONTINUE to Step 3
77
103
 
78
104
  ---
79
105
 
@@ -123,9 +123,8 @@ ELSE:
123
123
 
124
124
  **⛔ DO NOT create branches or modify state without user approval.**
125
125
 
126
+ Show the user:
126
127
  ```
127
- OUTPUT:
128
- """
129
128
  ## Task Plan
130
129
 
131
130
  Description: $ARGUMENTS
@@ -137,13 +136,38 @@ Will do:
137
136
  2. Initialize task tracking in state.json
138
137
  3. Break down into subtasks
139
138
  4. {If Linear: Update issue status to In Progress}
139
+ ```
140
+
141
+ Then ask for confirmation:
142
+
143
+ ```
144
+ AskUserQuestion:
145
+ question: "Start this task?"
146
+ header: "Task"
147
+ options:
148
+ - label: "Yes, start task (Recommended)"
149
+ description: "Create branch and begin tracking"
150
+ - label: "No, cancel"
151
+ description: "Don't create task"
152
+ - label: "Modify plan"
153
+ description: "Change type, branch name, or subtasks"
154
+ ```
155
+
156
+ **Handle responses:**
140
157
 
141
- Proceed? (yes/no)
142
- """
158
+ **If "Modify plan":**
159
+ - Ask: "What would you like to change?"
160
+ - Update plan accordingly
161
+ - Ask again with Yes/No options only
143
162
 
144
- WAIT for explicit "yes" or approval
145
- DO NOT assume
163
+ **If "No, cancel":**
146
164
  ```
165
+ OUTPUT: "✅ Task creation cancelled"
166
+ STOP - Do not continue
167
+ ```
168
+
169
+ **If "Yes, start task":**
170
+ CONTINUE to Step B
147
171
 
148
172
  ### Step B: Explore Codebase
149
173