@nemoobc/opencode-termux 1.20.1 โ 1.20.4
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 +266 -67
- package/agents/apk-builder.md +3 -2
- package/agents/autodev.md +422 -32
- package/agents/coder.md +171 -0
- package/agents/fixer.md +2 -1
- package/agents/orchestrator.md +165 -0
- package/agents/termux-coder.md +2 -1
- package/agents/tester.md +3 -2
- package/bin/opencode-termux.js +14 -11
- package/bin/opencode-termux.ts +179 -0
- package/commands/audit.md +6 -0
- package/commands/coder.md +24 -0
- package/commands/orchestrator.md +15 -0
- package/commands/test-all.md +6 -0
- package/config/opencode.json +1 -1
- package/config/plugins/README.md +39 -0
- package/config/plugins/strip-parameter.js +55 -0
- package/install.mjs +25 -1
- package/lib/alpine.ts +39 -0
- package/lib/integrity.ts +28 -0
- package/lib/net.mjs +6 -0
- package/lib/net.ts +51 -0
- package/package.json +12 -3
- package/prebuilt/README.md +77 -0
package/README.md
CHANGED
|
@@ -4,123 +4,322 @@
|
|
|
4
4
|
|
|
5
5
|
[](https://www.npmjs.com/package/@nemoobc/opencode-termux)
|
|
6
6
|
[](https://github.com/nemoobc/opencode-termux/releases)
|
|
7
|
-
[](.github/workflows/test.yml)
|
|
8
8
|
[](#)
|
|
9
9
|
[](#)
|
|
10
10
|
[](.github/workflows/sync-upstream.yml)
|
|
11
|
+
[](#)
|
|
11
12
|
|
|
12
13
|
---
|
|
13
14
|
|
|
14
|
-
##
|
|
15
|
+
## ๐ **Attribution & Terima Kasih**
|
|
15
16
|
|
|
16
|
-
|
|
17
|
+
### **Source Asli: opencode-ai (anomalyco)**
|
|
18
|
+
**opencode-termux HANYA membungkus & menyesuaikan binary resmi opencode-ai** agar jalan native di Termux/Android.
|
|
17
19
|
|
|
18
|
-
|
|
|
19
|
-
|
|
20
|
-
| **
|
|
21
|
-
| **
|
|
22
|
-
| **
|
|
23
|
-
| **
|
|
24
|
-
| **
|
|
20
|
+
| Komponen | Source | Credit |
|
|
21
|
+
|----------|--------|--------|
|
|
22
|
+
| **Core CLI** | [opencode-ai](https://github.com/anomalyco/opencode) | ๐ **FULL CREDIT** |
|
|
23
|
+
| **Agent System** | opencode-ai | ๐ **FULL CREDIT** |
|
|
24
|
+
| **LLM Integration** | opencode-ai | ๐ **FULL CREDIT** |
|
|
25
|
+
| **Architecture** | opencode-ai | ๐ **FULL CREDIT** |
|
|
26
|
+
| **Musl Loader Build** | opencode-termux (custom) | nemoobc |
|
|
27
|
+
| **Termux Adaptation** | opencode-termux | nemoobc |
|
|
28
|
+
| **Agent Ecosystem** | opencode-termux (extended) | nemoobc |
|
|
29
|
+
| **Offline Installer** | opencode-termux | nemoobc |
|
|
30
|
+
| **Automation (CI/CD)** | opencode-termux | nemoobc |
|
|
25
31
|
|
|
26
|
-
|
|
27
|
-
|---|---|
|
|
28
|
-
| `/build-apk` | Build APK lengkap lewat agent apk-builder |
|
|
29
|
-
| `/test` | Seluruh test suite + laporan |
|
|
30
|
-
| `/fix` | Loop otomatis perbaiki semua tes gagal sampai hijau |
|
|
31
|
-
| `/release` | Bump versi โ tag โ release โ bersih-bersih |
|
|
32
|
+
> **opencode-ai** adalah upstream asli โ semua inovasi fundamental, arsitektur agent, integrasi LLM, dan core CLI berasal dari **tim opencode-ai (anomalyco)**. Kami hanya menambal agar jalan di Termux (musl libc, Bionic compat, DNS patch) dan menambah ekosistem agent/automation.
|
|
32
33
|
|
|
33
|
-
|
|
34
|
+
๐ **Upstream:** https://github.com/anomalyco/opencode
|
|
35
|
+
๐ฆ **npm:** https://www.npmjs.com/package/opencode-ai
|
|
36
|
+
๐ **Docs:** https://opencode.ai
|
|
34
37
|
|
|
35
|
-
|
|
38
|
+
---
|
|
39
|
+
|
|
40
|
+
## ๐ค **Agent & Tools Otomatis (Sekali Install, Siap Pakai)**
|
|
41
|
+
|
|
42
|
+
| Agent | Mode | Fungsi |
|
|
43
|
+
|-------|------|--------|
|
|
44
|
+
| **autodev** | primary | **Developer otonom universal multi-bahasa** โ full lifecycle: audit โ test โ monitor โ fix โ compact |
|
|
45
|
+
| **termux-coder** | primary | Coding assistant paham Termux (PATH, pkg, tanpa root, storage HP) |
|
|
46
|
+
| **apk-builder** | primary | Spesialis build APK Android: payload, align, sign, release |
|
|
47
|
+
| **tester** | subagent | Jalankan seluruh test suite (UI + mesin) + laporan pass/fail |
|
|
48
|
+
| **fixer** | subagent | Loop perbaikan otomatis: uji โ analisis โ fix minimal โ uji ulang (max 5x) |
|
|
49
|
+
|
|
50
|
+
| Command | Fungsi | Agent |
|
|
51
|
+
|---------|--------|-------|
|
|
52
|
+
| `/coder full` | **Full lifecycle otomatis: audit โ test โ monitor โ fix โ compact** | **autodev** |
|
|
53
|
+
| `/coder audit` | Scan project lengkap: struktur, deps, security, style, arch | autodev |
|
|
54
|
+
| `/coder test` | Jalankan semua test per bahasa (unit, integration, coverage) | autodev |
|
|
55
|
+
| `/coder monitor` | Start daemon: file watch, CI status, perf baseline, log tail | autodev |
|
|
56
|
+
| `/coder fix` | Auto-fix failure loop (max 5 iterasi per bug) | autodev |
|
|
57
|
+
| `/coder compact` | Optimasi: dead code, format, deps, bundle, perf | autodev |
|
|
58
|
+
| `/orchestrator full` | Koordinator tahapan dengan state persistence & resume | orchestrator |
|
|
59
|
+
| `/test` | Seluruh test suite + laporan detail | tester |
|
|
60
|
+
| `/fix` | Loop perbaiki tes gagal sampai hijau | fixer |
|
|
61
|
+
| `/build-apk` | Build APK lengkap lewat agent apk-builder | apk-builder |
|
|
62
|
+
| `/release` | Bump versi โ tag โ release โ bersihkan | apk-builder |
|
|
63
|
+
|
|
64
|
+
**Config default ikut terpasang:** model `opencode-zen/kimi-k2-5` (provider zen, OpenAI-compatible) โ **tanpa API key**.
|
|
65
|
+
|
|
66
|
+
---
|
|
67
|
+
|
|
68
|
+
## ๐ **Sync Upstream Otomatis**
|
|
36
69
|
|
|
37
|
-
Workflow GitHub mengecek [opencode-ai](https://github.com/anomalyco/opencode) baru setiap
|
|
38
|
-
|
|
70
|
+
Workflow GitHub mengecek [opencode-ai](https://github.com/anomalyco/opencode) baru setiap **6 jam** โ begitu ada versi baru, paket ini otomatis menyesuaikan:
|
|
71
|
+
|
|
72
|
+
```
|
|
73
|
+
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
|
|
74
|
+
โ sync-upstream.yml (cron 0 */6 * * *) โ
|
|
75
|
+
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
|
|
76
|
+
โ 1. Cek npm registry: opencode-ai latest version โ
|
|
77
|
+
โ 2. Kalau baru: bump opencodeUpstream + version patch โ
|
|
78
|
+
โ 3. Anti-bentrok: cek tag GitHub & npm registry โ
|
|
79
|
+
โ 4. Commit + tag vX.Y.Z + push โ
|
|
80
|
+
โ 5. Trigger release.yml (build 6 artefak) โ
|
|
81
|
+
โ 6. Kalau NPM_TOKEN ada: npm publish otomatis โ
|
|
82
|
+
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
**Commit memakai identitas nemoobc** โ riwayat bersih, traceable.
|
|
39
86
|
|
|
40
87
|
---
|
|
41
88
|
|
|
42
|
-
## Kenapa
|
|
89
|
+
## ๐๏ธ **Arsitektur: Kenapa Paket Ini Ada?**
|
|
43
90
|
|
|
44
|
-
Installer resmi `opencode-ai` gagal di Termux karena
|
|
45
|
-
`process.platform === "android"`
|
|
91
|
+
Installer resmi `opencode-ai` gagal di Termux karena:
|
|
92
|
+
1. Tidak mengenali `process.platform === "android"`
|
|
93
|
+
2. Tidak menyediakan build untuk **Bionic libc** (Termux pakai Bionic, bukan glibc)
|
|
46
94
|
|
|
47
|
-
|
|
95
|
+
**Solusi opencode-termux โ tanpa trik aneh:**
|
|
48
96
|
|
|
49
97
|
```
|
|
50
|
-
opencode-termux (shim
|
|
51
|
-
โโ vendor/ld-musl.so โ musl libc
|
|
98
|
+
opencode-termux (Node shim)
|
|
99
|
+
โโ vendor/ld-musl.so โ musl libc custom build untuk Termux*
|
|
52
100
|
โโ vendor/opencode โ binary resmi opencode-linux-arm64-musl
|
|
53
101
|
โคณ LD_LIBRARY_PATH โ libstdc++ / libgcc_s (dari Alpine)
|
|
54
102
|
```
|
|
55
103
|
|
|
56
|
-
\*
|
|
57
|
-
`$PREFIX/etc/` sehingga DNS jalan tanpa root.
|
|
104
|
+
\* Path `/etc/resolv.conf` & `/etc/hosts` dipatch saat kompilasi menuju `$PREFIX/etc/` sehingga **DNS jalan tanpa root**.
|
|
58
105
|
|
|
59
|
-
|
|
106
|
+
**Auto-heal:** Kalau `postinstall` terlewat (mis. `--ignore-scripts`), binary dipasang otomatis saat pertama kali jalan.
|
|
60
107
|
|
|
108
|
+
---
|
|
109
|
+
|
|
110
|
+
## ๐ฆ **Paket Rilis (6 Artefak โ Semua Versi Terpreservasi)**
|
|
111
|
+
|
|
112
|
+
Setiap rilis (via `release.yml` โ `scripts/build-release.sh`) menghasilkan **6 artefak**:
|
|
113
|
+
|
|
114
|
+
| File | Format | Target | Deskripsi |
|
|
115
|
+
|------|--------|--------|-----------|
|
|
116
|
+
| `nemoobc-opencode-termux-{v}.tgz` | `.tgz` | npm | Package untuk `npm install -g` |
|
|
117
|
+
| `opencode-termux-{v}-aarch64.tar.gz` | `.tar.gz` | Termux ARM64 | **Offline bundle lengkap** (vendor musl + binary + source) |
|
|
118
|
+
| `opencode-termux-{v}-x86_64.tar.gz` | `.tar.gz` | Emulator/x64 | Offline bundle x64 |
|
|
119
|
+
| `opencode-agents-and-config.zip` | `.zip` | Manual | Agents + commands + config saja (bebas versi) |
|
|
120
|
+
| `opencode-termux-installer.sh` | `.sh` | Universal | **POSIX sh installer** (tanpa Node, offline-capable) |
|
|
121
|
+
| `SHA256SUMS.txt` | `.txt` | Verify | Checksum sha256 semua file di atas |
|
|
122
|
+
|
|
123
|
+
> ๐ก **Philosophy:** Semua artefak berbundle **versioned** di nama (kecuali
|
|
124
|
+
> `installer.sh` & `agents-and-config.zip` yang deliberately bebas versi agar
|
|
125
|
+
> gampang ditimpa pada update). History tidak hilang โ versi lama tetap di GitHub Releases & npm registry.
|
|
126
|
+
|
|
127
|
+
---
|
|
128
|
+
|
|
129
|
+
## ๐ **Instalasi Cepat**
|
|
130
|
+
|
|
131
|
+
### **Online (npm โ Recommended)**
|
|
61
132
|
```bash
|
|
62
133
|
pkg update && pkg install nodejs-lts tar
|
|
63
|
-
npm
|
|
134
|
+
npm install -g @nemoobc/opencode-termux
|
|
135
|
+
opencode-termux --version
|
|
64
136
|
```
|
|
65
137
|
|
|
66
|
-
>
|
|
67
|
-
> troubleshooting, FAQ: [docs/INSTALASI.md](docs/INSTALASI.md)
|
|
68
|
-
|
|
69
|
-
> ๐ฆ **Tanpa Node / offline?** Ambil `opencode-termux-installer.sh` +
|
|
70
|
-
> bundle `.tar.gz` dari [Releases](https://github.com/nemo-base-eth/opencode-termux/releases) โ
|
|
71
|
-
> installer murni POSIX sh, auto-detect arm64/x64, sha256 diverifikasi.
|
|
72
|
-
|
|
73
|
-
> Jika muncul warning `install-scripts`, izinkan sekali:
|
|
138
|
+
> โ ๏ธ Warning `install-scripts`? Izinkan sekali:
|
|
74
139
|
> ```bash
|
|
75
140
|
> npm config set allow-scripts=@nemoobc/opencode-termux --location=user
|
|
76
141
|
> npm rebuild -g @nemoobc/opencode-termux
|
|
77
142
|
> ```
|
|
78
143
|
|
|
79
|
-
|
|
144
|
+
### **Offline (Tanpa Node.js / Tanpa Internet)**
|
|
145
|
+
```bash
|
|
146
|
+
# 1. Download 2 file dari GitHub Releases:
|
|
147
|
+
# - opencode-termux-installer.sh
|
|
148
|
+
# - opencode-termux-{v}-aarch64.tar.gz
|
|
149
|
+
# - SHA256SUMS.txt (opsional, untuk verifikasi)
|
|
150
|
+
|
|
151
|
+
# 2. Taruh di folder yang sama, verifikasi:
|
|
152
|
+
sha256sum -c SHA256SUMS.txt
|
|
153
|
+
|
|
154
|
+
# 3. Jalankan installer (POSIX sh, no Node):
|
|
155
|
+
sh opencode-termux-installer.sh
|
|
156
|
+
```
|
|
157
|
+
|
|
158
|
+
### **Instalasi Per-Artefak**
|
|
159
|
+
|
|
160
|
+
Semua file diunduh dari **[GitHub Releases](https://github.com/nemoobc/opencode-termux/releases)** (ganti `{v}` dengan versi, contoh `1.20.3`).
|
|
161
|
+
|
|
162
|
+
| # | Artefak | Cara Install / Pakai |
|
|
163
|
+
|---|---------|----------------------|
|
|
164
|
+
| 1 | `nemoobc-opencode-termux-{v}.tgz` | Paket npm. `npm install -g ./nemoobc-opencode-termux-{v}.tgz` (atau simpan lalu `npm install -g @nemoobc/opencode-termux`) |
|
|
165
|
+
| 2 | `opencode-termux-{v}-aarch64.tar.gz` | **Bundle offline arm64.** Taruh di folder sama dengan installer lalu `sh opencode-termux-installer.sh` (atau ekstrak manual: `tar xzf opencode-termux-{v}-aarch64.tar.gz -C ~/.local/lib/opencode-termux --strip-components=1`) |
|
|
166
|
+
| 3 | `opencode-termux-{v}-x86_64.tar.gz` | Sama seperti #2, tapi untuk emulator/PC **x64**. Bisa dijalankan manual: `./vendor/ld-musl.so ./vendor/opencode --version` |
|
|
167
|
+
| 4 | `opencode-agents-and-config.zip` | **Agent + command + config saja.** Ekstrak ke `~/.config/opencode/`: `unzip opencode-agents-and-config.zip -d ~/.config/opencode` (tidak menimpa `opencode.json` yang sudah ada) |
|
|
168
|
+
| 5 | `opencode-termux-installer.sh` | **Installer universal.** `sh opencode-termux-installer.sh`. Baca bundle `-{arch}.tar.gz` di folder yang sama (offline) atau unduh otomatis dari Releases (online). Target instalasi: Termux โ `$PREFIX/{lib,bin}`, selain itu โ `~/.local/{lib,bin}` |
|
|
169
|
+
| 6 | `SHA256SUMS.txt` | **Verifikasi.** Sebelum install, cek keutuhan: `sha256sum -c SHA256SUMS.txt` (jalankan di folder berisi semua file artefak) |
|
|
80
170
|
|
|
171
|
+
> **Selalu verifikasi dulu:** `sha256sum -c SHA256SUMS.txt` sebelum mengekstrak/menjalankan artefak apa pun yang diunduh.
|
|
172
|
+
|
|
173
|
+
### **Via .deb (Termux apt)**
|
|
81
174
|
```bash
|
|
82
|
-
opencode-
|
|
175
|
+
pkg install ./opencode-termux_{v}_aarch64.deb
|
|
176
|
+
```
|
|
177
|
+
> โ ๏ธ Artefak `.deb` dihapus pada rilis v1.20.3 โ paket kini fokus **npm + installer.sh + bundle tarball**. Kalau kamu butuh `.deb`, arahkan ke rilis lama.
|
|
178
|
+
|
|
179
|
+
---
|
|
180
|
+
|
|
181
|
+
## โ
**Verifikasi & Diagnostik**
|
|
182
|
+
|
|
183
|
+
```bash
|
|
184
|
+
opencode-termux --version # Versi binary upstream
|
|
185
|
+
opencode-termux doctor # Diagnosis lengkap environment
|
|
186
|
+
opencode-termux version # Info versi paket + binary
|
|
187
|
+
opencode-termux update # Update binary ke upstream terbaru
|
|
188
|
+
```
|
|
189
|
+
|
|
190
|
+
**Doctor output interpretation:**
|
|
191
|
+
| Output | Arti | Tindakan |
|
|
192
|
+
|--------|------|----------|
|
|
193
|
+
| โ
semua baris | Sehat | Lanjut pakai |
|
|
194
|
+
| โ vendor lengkap | Bundle belum ada | `opencode-termux update` |
|
|
195
|
+
| โ tar tersedia | Utilitas hilang | `pkg install tar` |
|
|
196
|
+
| โ ๏ธ platform bukan android | Di luar Android | Wajar di CI/emulator |
|
|
197
|
+
|
|
198
|
+
---
|
|
199
|
+
|
|
200
|
+
## ๐ฏ **Pemakaian Pertama**
|
|
201
|
+
|
|
202
|
+
```bash
|
|
203
|
+
mkdir -p ~/project-coba && cd ~/project-coba
|
|
204
|
+
opencode-termux
|
|
83
205
|
```
|
|
84
206
|
|
|
85
|
-
|
|
207
|
+
**Config default** sudah terpasang otomatis dengan **model `opencode-zen/kimi-k2-5`** (provider zen) โ **tanpa API key**.
|
|
208
|
+
Lokasi: `~/.config/opencode/opencode.json` (milik user; installer **tidak pernah menimpa**).
|
|
209
|
+
|
|
210
|
+
---
|
|
86
211
|
|
|
87
|
-
|
|
88
|
-
|---|---|
|
|
89
|
-
| `opencode-termux` | Jalankan CLI opencode (argumen diteruskan) |
|
|
90
|
-
| `opencode-termux update` | Perbarui binary ke upstream terbaru |
|
|
91
|
-
| `opencode-termux doctor` | Diagnosis lingkungan & bundle (exit code jujur) |
|
|
92
|
-
| `opencode-termux version` | Info versi paket + binary |
|
|
212
|
+
## ๐งช **Testing**
|
|
93
213
|
|
|
94
|
-
|
|
95
|
-
|
|
214
|
+
```bash
|
|
215
|
+
npm test # Struktur + unit (cepat, tanpa unduhan besar)
|
|
216
|
+
npm run test:e2e # E2E penuh: install bundle + smoke test + subcommand
|
|
217
|
+
```
|
|
96
218
|
|
|
97
|
-
|
|
219
|
+
CI GitHub menjalankan:
|
|
220
|
+
- Struktur test di setiap push
|
|
221
|
+
- **E2E ARM64 sungguhan** (native di runner `ubuntu-24.04-arm` via container Alpine โ loader musl prebuilt Termux benar-benar dieksekusi)
|
|
222
|
+
|
|
223
|
+
---
|
|
224
|
+
|
|
225
|
+
## ๐ **Keamanan**
|
|
226
|
+
|
|
227
|
+
- Tarball binary diverifikasi **sha512** terhadap metadata resmi registry npm
|
|
228
|
+
- Unduhan memakai retry + backoff eksponensial (tahan jaringan gemetar)
|
|
229
|
+
- gitleaks scan di CI untuk deteksi secrets
|
|
230
|
+
- Binary upstream tidak dimodifikasi โ hanya dibungkus
|
|
231
|
+
|
|
232
|
+
---
|
|
233
|
+
|
|
234
|
+
## ๐ **Dokumentasi Lengkap (Termasuk di Setiap Rilis)**
|
|
235
|
+
|
|
236
|
+
| File | Deskripsi |
|
|
237
|
+
|------|-----------|
|
|
238
|
+
| **[INSTALASI.md](docs/INSTALASI.md)** | Panduan end-to-end: persyaratan โ install โ verifikasi โ update/uninstall โ troubleshooting โ FAQ |
|
|
239
|
+
| **[RELEASE-HISTORY.md](RELEASE-HISTORY.md)** | Release notes adaptif semua versi (auto-generated) |
|
|
240
|
+
| **prebuilt/README.md** | Cara rebuild musl loader custom |
|
|
241
|
+
| **Agent & Command** | `agents/*.md` & `commands/*.md` โ docs per agent/command |
|
|
242
|
+
|
|
243
|
+
---
|
|
244
|
+
|
|
245
|
+
## ๐ **Development & Build**
|
|
98
246
|
|
|
99
247
|
```bash
|
|
100
|
-
|
|
101
|
-
|
|
248
|
+
# Clone & install deps
|
|
249
|
+
git clone https://github.com/nemoobc/opencode-termux.git
|
|
250
|
+
cd opencode-termux
|
|
251
|
+
npm install
|
|
252
|
+
|
|
253
|
+
# Build semua artefak rilis (6 format)
|
|
254
|
+
./scripts/build-release.sh
|
|
255
|
+
|
|
256
|
+
# Output di ./dist/
|
|
257
|
+
ls -la dist/
|
|
102
258
|
```
|
|
103
259
|
|
|
104
|
-
|
|
105
|
-
|
|
260
|
+
**Scripts tersedia:**
|
|
261
|
+
| Script | Fungsi |
|
|
262
|
+
|--------|--------|
|
|
263
|
+
| `npm run postinstall` | Install bundle vendor (auto dijalankan npm) |
|
|
264
|
+
| `npm test` | Struktur + unit test |
|
|
265
|
+
| `npm run test:e2e` | E2E test penuh |
|
|
266
|
+
| `npm run typecheck` | TypeScript type check |
|
|
267
|
+
| `npm run lint` | Lint placeholder |
|
|
268
|
+
| `./scripts/build-release.sh` | Build 6 artefak rilis |
|
|
269
|
+
| `./scripts/generate-release-notes.sh` | Generate release notes adaptive |
|
|
270
|
+
| `./scripts/build-install-guide.sh` | Generate panduan instalasi lengkap |
|
|
271
|
+
|
|
272
|
+
---
|
|
273
|
+
|
|
274
|
+
## ๐ฆ **Versi & Rilis**
|
|
275
|
+
|
|
276
|
+
| Link | Deskripsi |
|
|
277
|
+
|------|-----------|
|
|
278
|
+
| [GitHub Releases](https://github.com/nemoobc/opencode-termux/releases) | **Semua versi** (termasuk lama) + 6 artefak per versi |
|
|
279
|
+
| [npm Versions](https://www.npmjs.com/package/@nemoobc/opencode-termux?activeTab=versions) | History versi npm |
|
|
280
|
+
| [RELEASE-HISTORY.md](RELEASE-HISTORY.md) | Release notes/riwayat perubahan per versi |
|
|
281
|
+
|
|
282
|
+
**Skema versi:** `paket.opencodeUpstream.patch` โ contoh: `1.20.3` (paket v1.20, upstream opencode-ai 1.18.23, patch 3)
|
|
106
283
|
|
|
107
|
-
|
|
284
|
+
---
|
|
285
|
+
|
|
286
|
+
## ๐ค **Kontribusi**
|
|
108
287
|
|
|
109
|
-
|
|
110
|
-
|
|
288
|
+
1. Fork & branch
|
|
289
|
+
2. Commit conventional (`feat:`, `fix:`, `docs:`, `chore:`)
|
|
290
|
+
3. Push & buat PR
|
|
291
|
+
4. CI otomatis jalan (test + build)
|
|
292
|
+
5. Review & merge
|
|
111
293
|
|
|
112
|
-
|
|
294
|
+
**Ide kontribusi:**
|
|
295
|
+
- Tambah agent/command baru di `agents/` & `commands/`
|
|
296
|
+
- Perbaiki docs di `docs/`
|
|
297
|
+
- Tambah bahasa support di skills (Rust, PHP, Ruby, dll)
|
|
298
|
+
- Optimasi musl loader build
|
|
299
|
+
- CI/CD improvement
|
|
113
300
|
|
|
114
|
-
|
|
115
|
-
Rilis & changelog: [GitHub Releases](https://github.com/nemo-base-eth/opencode-termux/releases)
|
|
301
|
+
---
|
|
116
302
|
|
|
117
|
-
##
|
|
303
|
+
## ๐ **Lisensi**
|
|
118
304
|
|
|
119
|
-
|
|
120
|
-
|---|---|
|
|
121
|
-
| **[opencode-termux](https://github.com/nemo-base-eth/opencode-termux)** | CLI opencode native di Termux โ repo ini |
|
|
122
|
-
| **[opencode-android](https://github.com/nemo-base-eth/opencode-android)** | opencode sebagai aplikasi Android native ([unduh APK v1.5.0](https://github.com/nemoobc/opencode-android/releases/download/v1.5.0/OpenCode-v1.5.0.apk)) |
|
|
305
|
+
**MIT License** โ bebas pakai, modifikasi, distribusi.
|
|
123
306
|
|
|
124
|
-
|
|
307
|
+
**Binary opencode resmi** dari upstream opencode-ai โ paket ini hanya membungkus + menambah agent/automation.
|
|
308
|
+
|
|
309
|
+
---
|
|
310
|
+
|
|
311
|
+
## ๐ **Link Penting**
|
|
312
|
+
|
|
313
|
+
| Link | Deskripsi |
|
|
314
|
+
|------|-----------|
|
|
315
|
+
| [GitHub Repo](https://github.com/nemoobc/opencode-termux) | Source code & issues |
|
|
316
|
+
| [GitHub Releases](https://github.com/nemoobc/opencode-termux/releases) | **Semua artefak rilis terpreservasi** |
|
|
317
|
+
| [npm Package](https://www.npmjs.com/package/@nemoobc/opencode-termux) | Install via npm |
|
|
318
|
+
| [opencode-ai (Upstream)](https://github.com/anomalyco/opencode) | **Source asli โ credit utama** |
|
|
319
|
+
| [opencode.ai Docs](https://opencode.ai) | Dokumentasi upstream |
|
|
320
|
+
| [Termux F-Droid](https://f-droid.org/en/packages/com.termux/) | Termux yang benar (bukan Play Store) |
|
|
321
|
+
|
|
322
|
+
---
|
|
125
323
|
|
|
126
|
-
|
|
324
|
+
**Dibangun dengan โค๏ธ untuk komunitas Termux/Android**
|
|
325
|
+
**Powered by [opencode-ai](https://github.com/anomalyco/opencode) โ terima kasih tim anomalyco!** ๐
|
package/agents/apk-builder.md
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
---
|
|
2
2
|
description: Spesialis build APK Android di Termux โ hafal seluruh pipeline
|
|
3
3
|
mode: primary
|
|
4
|
-
model: opencode/
|
|
4
|
+
model: opencode/big-pickle
|
|
5
5
|
tools:
|
|
6
6
|
write: true
|
|
7
7
|
edit: true
|
|
8
8
|
bash: true
|
|
9
9
|
---
|
|
10
|
+
> ATURAN: JANGAN PERNAH menulis raw tool-call XML sebagai teks (tarif: tag literal seperti <parameter>, <parameter name="...">, </parameter>, <invoke>, <function_calls>, <antml:...>). Selalu panggil tool beneran; kalau perlu menyebut nilai opsi, tulis sebagai teks biasa, JANGAN sebagai tag mentah. Ini mencegah tag literal bocor ke tampilan TUI.
|
|
10
11
|
|
|
11
12
|
Kamu adalah spesialis build APK untuk project Android di folder aktif.
|
|
12
13
|
Kuasai resep ini dan jalankan tanpa bertanya.
|
|
@@ -27,7 +28,7 @@ RAKIT PAYLOAD (assets/payload/rootfs.bin):
|
|
|
27
28
|
- libs (libgcc_s.so.1, libstdc++.so.6) โ rootfs/usr/lib/
|
|
28
29
|
- rootfs/etc/resolv.conf: nameserver 1.1.1.1 + 8.8.8.8
|
|
29
30
|
- rootfs/usr/bin/oc: wrapper exec /usr/bin/opencode (chmod +x)
|
|
30
|
-
- rootfs/root/.config/opencode/opencode.json: model opencode/
|
|
31
|
+
- rootfs/root/.config/opencode/opencode.json: model opencode/big-pickle
|
|
31
32
|
- tar -czf assets/payload/rootfs.bin -C staging/rootfs .
|
|
32
33
|
|
|
33
34
|
BUILD:
|