@aiforall/kiro-reg 1.0.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 ADDED
@@ -0,0 +1,144 @@
1
+ # kiro-reg
2
+
3
+ > Automated AWS Builder ID (Kiro) registration tool with anti-fingerprinting.
4
+
5
+ ⚠️ **macOS Apple Silicon (M1/M2/M3/M4) only.** Intel Mac and Windows are not supported in this release.
6
+
7
+ ## Requirements
8
+
9
+ - macOS Apple Silicon (arm64)
10
+ - Node.js >= 16
11
+ - A local HTTP proxy running (e.g. Clash, Surge) — required for network access
12
+
13
+ ## Installation
14
+
15
+ ```bash
16
+ npm install -g @aiforall/kiro-reg
17
+ ```
18
+
19
+ ## Setup
20
+
21
+ ### 1. Initialize config
22
+
23
+ Run this in the folder where you want to store your config files:
24
+
25
+ ```bash
26
+ mkdir ~/kiro-workspace && cd ~/kiro-workspace
27
+ kiro-reg init
28
+ ```
29
+
30
+ This creates two files:
31
+
32
+ - `config.toml` — proxy host/port and registration password
33
+ - `emails.txt` — list of emails to register
34
+
35
+ ### 2. Edit `config.toml`
36
+
37
+ ```toml
38
+ proxy_host = "127.0.0.1"
39
+ proxy_port = "2080"
40
+ password = "YourPassword123!"
41
+ ```
42
+
43
+ ### 3. Edit `emails.txt`
44
+
45
+ ```
46
+ user1@example.com
47
+ user2@example.com
48
+ ```
49
+
50
+ One email per line. Lines starting with `#` are ignored.
51
+
52
+ ### 4. Run
53
+
54
+ ```bash
55
+ kiro-reg
56
+ ```
57
+
58
+ ## How it works
59
+
60
+ 1. Opens a WKWebView window pre-filled with the first email from `emails.txt`
61
+ 2. Auto-fills name and email on the AWS registration page
62
+ 3. Pauses at the CAPTCHA — complete it manually
63
+ 4. Auto-fills the password fields — click **Continue** manually to finish
64
+
65
+ Each run registers one account. Edit `emails.txt` and re-run for the next one.
66
+
67
+ ## Notes
68
+
69
+ - Always run `kiro-reg` from the directory containing `config.toml` and `emails.txt`
70
+ - Browser data (cookies/cache/localStorage) is cleared on every run for a fresh state
71
+
72
+
73
+ ---
74
+
75
+ # kiro-reg (Bahasa Melayu)
76
+
77
+ > Alat pendaftaran AWS Builder ID (Kiro) automatik dengan perlindungan anti-pengesanan.
78
+
79
+ ⚠️ **Hanya untuk macOS Apple Silicon (M1/M2/M3/M4).** Mac Intel dan Windows tidak disokong dalam keluaran ini.
80
+
81
+ ## Keperluan
82
+
83
+ - macOS Apple Silicon (arm64)
84
+ - Node.js >= 16
85
+ - Proksi HTTP tempatan yang berjalan (cth. Clash, Surge) — diperlukan untuk akses rangkaian
86
+
87
+ ## Pemasangan
88
+
89
+ ```bash
90
+ npm install -g @aiforall/kiro-reg
91
+ ```
92
+
93
+ ## Persediaan
94
+
95
+ ### 1. Mulakan konfigurasi
96
+
97
+ Jalankan ini dalam folder tempat anda ingin menyimpan fail konfigurasi:
98
+
99
+ ```bash
100
+ mkdir ~/kiro-workspace && cd ~/kiro-workspace
101
+ kiro-reg init
102
+ ```
103
+
104
+ Ini akan mencipta dua fail:
105
+
106
+ - `config.toml` — tetapan proksi dan kata laluan pendaftaran
107
+ - `emails.txt` — senarai e-mel untuk didaftarkan
108
+
109
+ ### 2. Edit `config.toml`
110
+
111
+ ```toml
112
+ proxy_host = "127.0.0.1"
113
+ proxy_port = "2080"
114
+ password = "KataLaluan123!"
115
+ ```
116
+
117
+ ### 3. Edit `emails.txt`
118
+
119
+ ```
120
+ pengguna1@contoh.com
121
+ pengguna2@contoh.com
122
+ ```
123
+
124
+ Satu e-mel setiap baris. Baris yang bermula dengan `#` diabaikan.
125
+
126
+ ### 4. Jalankan
127
+
128
+ ```bash
129
+ kiro-reg
130
+ ```
131
+
132
+ ## Cara ia berfungsi
133
+
134
+ 1. Membuka tetingkap WKWebView dengan e-mel pertama dari `emails.txt` telah diisi
135
+ 2. Mengisi nama dan e-mel secara automatik di halaman pendaftaran AWS
136
+ 3. Berhenti di langkah CAPTCHA — selesaikan secara manual
137
+ 4. Mengisi medan kata laluan secara automatik — klik **Teruskan** secara manual untuk selesai
138
+
139
+ Setiap kali dijalankan mendaftarkan satu akaun. Edit `emails.txt` dan jalankan semula untuk akaun seterusnya.
140
+
141
+ ## Nota
142
+
143
+ - Sentiasa jalankan `kiro-reg` dari direktori yang mengandungi `config.toml` dan `emails.txt`
144
+ - Data pelayar (kuki/cache/localStorage) dibersihkan pada setiap kali dijalankan untuk keadaan baharu
Binary file
@@ -0,0 +1,21 @@
1
+ #!/usr/bin/env node
2
+
3
+ const { execFileSync } = require('child_process');
4
+ const path = require('path');
5
+ const fs = require('fs');
6
+
7
+ const bin = path.join(__dirname, 'kiro-reg-bin');
8
+
9
+ if (!fs.existsSync(bin)) {
10
+ console.error('[kiro-reg] Binary not found. Please reinstall: npm install -g @aiforall/kiro-reg');
11
+ process.exit(1);
12
+ }
13
+
14
+ // ensure executable
15
+ try { fs.chmodSync(bin, 0o755); } catch (e) {}
16
+
17
+ try {
18
+ execFileSync(bin, process.argv.slice(2), { stdio: 'inherit', cwd: process.cwd() });
19
+ } catch (e) {
20
+ process.exit(e.status || 1);
21
+ }
package/package.json ADDED
@@ -0,0 +1,16 @@
1
+ {
2
+ "name": "@aiforall/kiro-reg",
3
+ "version": "1.0.1",
4
+ "description": "Automated AWS Builder ID (Kiro) registration tool - macOS Apple Silicon (arm64) only",
5
+ "bin": {
6
+ "kiro-reg": "./bin/kiro-reg.js"
7
+ },
8
+ "keywords": ["kiro", "aws", "builder-id", "registration", "automation", "cli", "macos"],
9
+ "author": "hideme38",
10
+ "license": "MIT",
11
+ "engines": {
12
+ "node": ">=16"
13
+ },
14
+ "os": ["darwin"],
15
+ "cpu": ["arm64"]
16
+ }