claude-devkit-cli 1.4.0 → 1.4.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/package.json
CHANGED
|
@@ -106,7 +106,37 @@ Never stage: `.env`, credentials, build artifacts, generated files, binaries > 1
|
|
|
106
106
|
git commit -m "type(scope): description"
|
|
107
107
|
```
|
|
108
108
|
|
|
109
|
-
|
|
109
|
+
---
|
|
110
|
+
|
|
111
|
+
## Step 6 — Push?
|
|
112
|
+
|
|
113
|
+
Check if a remote exists:
|
|
114
|
+
|
|
115
|
+
```bash
|
|
116
|
+
git remote
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
If no remote → skip this step entirely.
|
|
120
|
+
|
|
121
|
+
If remote exists, use `AskUserQuestion`:
|
|
122
|
+
|
|
123
|
+
```json
|
|
124
|
+
{
|
|
125
|
+
"questions": [
|
|
126
|
+
{
|
|
127
|
+
"question": "Commit successful. Push to remote now?",
|
|
128
|
+
"header": "Push",
|
|
129
|
+
"multiSelect": false,
|
|
130
|
+
"options": [
|
|
131
|
+
{"label": "Yes — push now (git push, or git push -u origin <branch> if no upstream)"},
|
|
132
|
+
{"label": "No — push later"}
|
|
133
|
+
]
|
|
134
|
+
}
|
|
135
|
+
]
|
|
136
|
+
}
|
|
137
|
+
```
|
|
138
|
+
|
|
139
|
+
If user chooses Yes → run `git push` (or `git push -u origin <branch>` if upstream not set).
|
|
110
140
|
|
|
111
141
|
---
|
|
112
142
|
|
|
@@ -116,7 +146,7 @@ git commit -m "type(scope): description"
|
|
|
116
146
|
staged: N files (+X/-Y lines)
|
|
117
147
|
checks: secrets ✓ | debug ✓
|
|
118
148
|
commit: abc1234 type(scope): description
|
|
119
|
-
pushed: no
|
|
149
|
+
pushed: yes → origin/<branch> (or "no")
|
|
120
150
|
```
|
|
121
151
|
|
|
122
152
|
Keep under 5 lines. No explanations.
|
|
@@ -124,5 +154,5 @@ Keep under 5 lines. No explanations.
|
|
|
124
154
|
## Rules
|
|
125
155
|
1. **Specific files, not `git add -A`.** Stage intentionally.
|
|
126
156
|
2. **Secrets = hard block.** No exceptions.
|
|
127
|
-
3. **
|
|
157
|
+
3. **Ask before pushing.** Push only if user confirms in Step 6.
|
|
128
158
|
4. **One concern per commit.** Mixed features → suggest separate commits.
|