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 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 Default).
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 inti:
239
- - **UI & CSS:** `transition: all` (R-09), tombol kapsul 9999px (R-12), outer neon glow (R-11), penghapusan focus outline tanpa pengganti (R-06).
240
- - **Teks & Copywriting:** Kata klise promosi AI (*"unlock the power"*, *"seamless synergy"*, *"game-changing"*, dll.) (R-02), angka/metrik kepuasan fiktif tanpa kutipan (R-08), dan em-dash jamak tanpa tujuan.
241
- - **Kebersihan Kode:** Komentar klise yang mengulang sintaks dan DocBlock boilerplate pada native typing (R-31), placeholder TODO malas/halusinasi (R-32).
242
- - **Backend & Keamanan:** Clean RESTful URLs, parameter binding anti-SQL Injection, dan sanitasi query (B-09 s/d B-15).
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 wajib laporan Delivery Gate (Aturan, Smoke Test, Kontras, dan PASS/FAIL).
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 Anda memuat warna heksadesimal mentah (`R-02`), teks placeholder/lorem ipsum mentah (`R-06` & `R-12`), blok try-catch kosong (`R-08`), debugging `console.log` liar (`R-09`), import font yang tidak sesuai aturan (`R-11`), atau pelanggaran lainnya.
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: 20
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.2.1** adalah rilis saat ini. Riwayat setiap rilis dan rencana fitur selanjutnya tercantum lengkap di [ROADMAP.md](ROADMAP.md).
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
@@ -15,7 +15,7 @@ export function banner() {
15
15
  ...LOGO,
16
16
  '',
17
17
  ' ' + pc.dim('Slop AI Indo: Aturan untuk AI Coding Agent'),
18
- ' ' + pc.dim('Pemasang Resmi (installer v1.3.0)'),
18
+ ' ' + pc.dim('Pemasang Resmi (installer v1.3.1)'),
19
19
  '',
20
20
  ].join('\n')
21
21
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "slop-ai-indo",
3
- "version": "1.3.0",
3
+ "version": "1.3.1",
4
4
  "description": "Interactive installer for slop-ai-indo skills and design standards (Bahasa Indonesia).",
5
5
  "type": "module",
6
6
  "bin": {
@@ -1 +1 @@
1
- 1.3.0
1
+ 1.3.1
@@ -8,7 +8,7 @@ import sys
8
8
 
9
9
  PROTOCOL_VERSION = "2024-11-05"
10
10
  SERVER_NAME = "slop-ai-indo-contrast"
11
- SERVER_VERSION = "1.3.0"
11
+ SERVER_VERSION = "1.3.1"
12
12
 
13
13
  TOOLS = [
14
14
  {