@leejungkiin/awkit 1.7.0 → 1.7.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/bin/awk.js +1 -1
- package/package.json +1 -1
- package/scripts/automation-gate.js +5 -5
- package/skills/verification-gate/SKILL.md +4 -2
- package/templates/project-identity/android.json +2 -2
- package/templates/project-identity/backend-nestjs.json +2 -2
- package/templates/project-identity/expo.json +2 -2
- package/templates/project-identity/ios.json +2 -2
- package/templates/project-identity/web-nextjs.json +2 -2
package/bin/awk.js
CHANGED
|
@@ -368,7 +368,7 @@ function copyDirRecursive(src, dest, options = {}) {
|
|
|
368
368
|
const entries = fs.readdirSync(src, { withFileTypes: true });
|
|
369
369
|
|
|
370
370
|
for (const entry of entries) {
|
|
371
|
-
if (entry.name === '.DS_Store') continue;
|
|
371
|
+
if (entry.name === '.DS_Store' || entry.name === '.git') continue;
|
|
372
372
|
|
|
373
373
|
const srcPath = path.join(src, entry.name);
|
|
374
374
|
|
package/package.json
CHANGED
|
@@ -102,13 +102,13 @@ function checkGate(domain, action) {
|
|
|
102
102
|
case 'git': {
|
|
103
103
|
const gitConfig = automation.git;
|
|
104
104
|
if (!gitConfig) {
|
|
105
|
-
return { allowed:
|
|
105
|
+
return { allowed: false, config: null, reason: 'No automation.git config — default block' };
|
|
106
106
|
}
|
|
107
|
-
if (action === 'commit' && gitConfig.autoCommit
|
|
108
|
-
return { allowed: false, config: gitConfig, reason: 'automation.git.autoCommit is
|
|
107
|
+
if (action === 'commit' && gitConfig.autoCommit !== true) {
|
|
108
|
+
return { allowed: false, config: gitConfig, reason: 'automation.git.autoCommit is not true (default off)' };
|
|
109
109
|
}
|
|
110
|
-
if (action === 'push' && gitConfig.autoPush
|
|
111
|
-
return { allowed: false, config: gitConfig, reason: 'automation.git.autoPush is
|
|
110
|
+
if (action === 'push' && gitConfig.autoPush !== true) {
|
|
111
|
+
return { allowed: false, config: gitConfig, reason: 'automation.git.autoPush is not true (default off)' };
|
|
112
112
|
}
|
|
113
113
|
return { allowed: true, config: gitConfig, reason: 'automation.git allows this action' };
|
|
114
114
|
}
|
|
@@ -33,7 +33,9 @@ BEFORE claiming any status or expressing satisfaction:
|
|
|
33
33
|
- If NO: State actual status with evidence
|
|
34
34
|
- If YES: State claim WITH evidence
|
|
35
35
|
5. ONLY THEN: Make the claim
|
|
36
|
-
6. AUTO-COMMIT
|
|
36
|
+
6. AUTO-COMMIT (TÙY CHỌN — Mặc định TẮT):
|
|
37
|
+
- Chỉ tự động commit nếu `automation.git.autoCommit: true` được bật trong `.project-identity`.
|
|
38
|
+
- Nếu được bật: Build 0 errors → git add → git commit → git push (non-force)
|
|
37
39
|
- Do NOT ask user permission for regular commits
|
|
38
40
|
- Use conventional commit message (fix:/feat:/refactor:)
|
|
39
41
|
- If push fails → git pull --rebase && git push (retry once)
|
|
@@ -99,7 +101,7 @@ If you catch yourself thinking any of these, STOP and run verification:
|
|
|
99
101
|
|
|
100
102
|
**Build:**
|
|
101
103
|
```
|
|
102
|
-
✅ [Run build] → [See: BUILD SUCCEEDED] → auto git add+commit+push → "Build passes, committed & pushed"
|
|
104
|
+
✅ [Run build] → [See: BUILD SUCCEEDED] → (nếu bật auto git) auto git add+commit+push → "Build passes, committed & pushed"
|
|
103
105
|
❌ "Linter passed so build is fine"
|
|
104
106
|
❌ Build succeeded but forgot to commit
|
|
105
107
|
```
|