slop-ai-indo 1.3.0 → 1.3.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/README.md +31 -10
- package/lib/banner.mjs +1 -1
- package/package.json +1 -1
- package/skills/slop-ai-indo/VERSION +1 -1
- package/skills/slop-ai-indo-human/contrast-mcp.py +1 -1
package/README.md
CHANGED
|
@@ -30,7 +30,7 @@ npx slop-ai-indo
|
|
|
30
30
|
```
|
|
31
31
|
|
|
32
32
|
Perintah ini secara otomatis memasang **1 paket lengkap**:
|
|
33
|
-
- `DESIGN.md`: Standar estetika human-crafted (bisa dipilih langsung saat instalasi: Enterprise SaaS, Dark Modern, Editorial, Utilitarian, atau
|
|
33
|
+
- `DESIGN.md`: Standar estetika human-crafted (bisa dipilih langsung saat instalasi: Enterprise SaaS, Dark Modern, Fintech & Transaksi, DevTools, Minimalist Monochrome, Editorial, Utilitarian, atau Bawaan).
|
|
34
34
|
- `AGENTS.md`: Aturan otomatis AI agent saat membuka proyek terkait.
|
|
35
35
|
- `slop-ai-indo.md`: Mesin filter inti (38 aturan wajib).
|
|
36
36
|
- `.agents/`: Folder konfigurasi lengkap dengan 11 modul skill terstandar (termasuk arsitektur backend, audit keamanan, testing, dan kebersihan kode).
|
|
@@ -231,15 +231,36 @@ npx slop-ai-indo lint
|
|
|
231
231
|
# Memeriksa folder tertentu
|
|
232
232
|
npx slop-ai-indo lint ./src
|
|
233
233
|
|
|
234
|
+
# Hanya memeriksa aturan tingkatan Hard Gate
|
|
235
|
+
npx slop-ai-indo lint . --tier=hard-gate
|
|
236
|
+
|
|
234
237
|
# Output format JSON untuk integrasi CI/CD
|
|
235
238
|
npx slop-ai-indo lint --json
|
|
239
|
+
|
|
240
|
+
# Mode senyap (hanya kode keluar dan ringkasan jika error)
|
|
241
|
+
npx slop-ai-indo lint --quiet
|
|
236
242
|
```
|
|
237
243
|
|
|
238
|
-
Linter ini memindai berkas secara statis dan memvalidasi aturan
|
|
239
|
-
- **
|
|
240
|
-
-
|
|
241
|
-
-
|
|
242
|
-
-
|
|
244
|
+
Linter ini memindai berkas secara statis dan memvalidasi aturan anti-slop lintas 3 tingkatan gerbang:
|
|
245
|
+
- **Hard Gate (Wajib Lulus Mutlak):**
|
|
246
|
+
- Frasa klise promosi AI seperti *"unlock the power"*, *"seamless synergy"*, *"game-changing"* (`R-02`).
|
|
247
|
+
- Penggunaan tanda em dash ganda berurutan tanpa tujuan editorial (`R-02`).
|
|
248
|
+
- Metrik & statistik kepuasan fiktif rekayasa AI tanpa sumber nyata (`R-08`).
|
|
249
|
+
- Transisi global `transition: all` dan transisi geometri pembuat lag (`R-09`).
|
|
250
|
+
- Pendaran neon luar berlebihan / outer neon glow (`R-11`).
|
|
251
|
+
- Tombol balon kapsul ekstrem (`rounded-full` / 9999px) di luar avatar (`R-12`).
|
|
252
|
+
- Indikator fokus keyboard hilang (`outline: none`) tanpa cincin fokus pengganti (`R-06`).
|
|
253
|
+
- Tautan navigasi mati atau anchor kosong `href="#"` (`R-24`).
|
|
254
|
+
- Placeholder malas khas AI seperti `// TODO: implement later` atau `// rest of code` (`R-32`).
|
|
255
|
+
- Penanganan error hampa / silent catch `catch (e) {}` (`B-01`).
|
|
256
|
+
- Mass assignment model database tanpa perlindungan `$guarded = []` (`B-02`).
|
|
257
|
+
- **Purpose-Gate (Wajib Alasan Fungsional Tertulis):**
|
|
258
|
+
- Gradien biru-ke-ungu generik khas template AI (`R-01`).
|
|
259
|
+
- Ikon bintang sparkle atau magic wand tanpa fungsi nyata (`R-04`).
|
|
260
|
+
- Efek kaca menumpuk berlebihan / excessive glassmorphism (`R-10`).
|
|
261
|
+
- **Quality Locks (Kerapian & Konsistensi):**
|
|
262
|
+
- Tombol CTA generik klise AI (`R-15`).
|
|
263
|
+
- Komentar kode trivial & DocBlock boilerplate yang mengulang sintaks (`R-31`).
|
|
243
264
|
|
|
244
265
|
## Server MCP Terpadu (`slop-mcp`)
|
|
245
266
|
|
|
@@ -268,7 +289,7 @@ Tambahkan entri berikut pada konfigurasi MCP IDE Anda:
|
|
|
268
289
|
1. **`check_contrast`**: Menghitung rasio kontras WCAG 2.1 antara dua warna heksadesimal dengan vonis kepatuhan AA (normal & large text).
|
|
269
290
|
2. **`lint_snippet`**: Memeriksa potongan kode aktif secara in-memory dari AI slop sebelum ditulis ke disk.
|
|
270
291
|
3. **`lint_file`**: Menjalankan analisis statis deterministik pada path berkas atau direktori proyek.
|
|
271
|
-
4. **`validate_delivery_gate`**: Memvalidasi kelengkapan 4 blok
|
|
292
|
+
4. **`validate_delivery_gate`**: Memvalidasi kelengkapan 4 blok laporan Delivery Gate (Aturan, Smoke Test, Kontras, dan status akhir).
|
|
272
293
|
5. **`get_rule`**: Mengambil referensi detail dan solusi perbaikan dari suatu aturan anti-slop berdasarkan Rule ID.
|
|
273
294
|
|
|
274
295
|
---
|
|
@@ -287,7 +308,7 @@ npx slop-ai-indo hook
|
|
|
287
308
|
|
|
288
309
|
Fitur Pre-commit Hook:
|
|
289
310
|
- **Zero-overhead & Cepat (<100ms):** Hanya memindai berkas yang sedang di-*stage* (`git diff --cached`), tanpa overhead subprocess yang lambat.
|
|
290
|
-
- **Deteksi Pelanggaran Statis:** Otomatis memblokir commit jika kode
|
|
311
|
+
- **Deteksi Pelanggaran Statis:** Otomatis memblokir commit jika kode staged memuat pelanggaran *Hard Gate* (frasa promosi klise `R-02`, metrik fiktif `R-08`, `transition: all` `R-09`, outer neon glow `R-11`, tombol kapsul `R-12`, outline none tanpa ring `R-06`, link mati `href="#"` `R-24`, placeholder malas `R-32`, silent catch `B-01`, atau `$guarded = []` `B-02`).
|
|
291
312
|
- **Bypass Darurat:** Jika dalam kondisi darurat Anda tetap harus melakukan commit, gunakan opsi bawaan git atau environment variable:
|
|
292
313
|
```bash
|
|
293
314
|
git commit -m "emergency fix" --no-verify
|
|
@@ -328,7 +349,7 @@ jobs:
|
|
|
328
349
|
- name: Set up Node.js
|
|
329
350
|
uses: actions/setup-node@v4
|
|
330
351
|
with:
|
|
331
|
-
node-version:
|
|
352
|
+
node-version: 22
|
|
332
353
|
cache: 'npm'
|
|
333
354
|
|
|
334
355
|
- name: Run Deterministic Slop Linter
|
|
@@ -339,7 +360,7 @@ Jika linter menemukan pelanggaran aturan pada kode PR, pipeline otomatis berstat
|
|
|
339
360
|
|
|
340
361
|
## Peta Jalan (Roadmap)
|
|
341
362
|
|
|
342
|
-
**v1.
|
|
363
|
+
**v1.3.1** adalah rilis saat ini. Riwayat setiap rilis dan rencana fitur selanjutnya tercantum lengkap di [ROADMAP.md](ROADMAP.md).
|
|
343
364
|
|
|
344
365
|
## FAQ (Pertanyaan yang Sering Diajukan)
|
|
345
366
|
|
package/lib/banner.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.3.
|
|
1
|
+
1.3.1
|