@nemoobc/opencode-termux 1.19.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/LICENSE +21 -0
- package/README.md +275 -39
- 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 +185 -0
- 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 +121 -74
- package/lib/alpine.mjs +30 -0
- package/lib/alpine.ts +39 -0
- package/lib/integrity.mjs +24 -0
- package/lib/integrity.ts +28 -0
- package/lib/net.mjs +30 -0
- package/lib/net.ts +51 -0
- package/package.json +17 -4
- package/prebuilt/README.md +77 -0
- package/bin/opencode.js +0 -48
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 nemoobc
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -4,86 +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)
|
|
7
8
|
[](#)
|
|
8
9
|
[](#)
|
|
9
10
|
[](.github/workflows/sync-upstream.yml)
|
|
11
|
+
[](#)
|
|
10
12
|
|
|
11
13
|
---
|
|
12
14
|
|
|
13
|
-
##
|
|
15
|
+
## ๐ **Attribution & Terima Kasih**
|
|
14
16
|
|
|
15
|
-
|
|
17
|
+
### **Source Asli: opencode-ai (anomalyco)**
|
|
18
|
+
**opencode-termux HANYA membungkus & menyesuaikan binary resmi opencode-ai** agar jalan native di Termux/Android.
|
|
16
19
|
|
|
17
|
-
|
|
|
18
|
-
|
|
19
|
-
| **
|
|
20
|
-
| **
|
|
21
|
-
| **
|
|
22
|
-
| **
|
|
23
|
-
| **
|
|
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 |
|
|
24
31
|
|
|
25
|
-
|
|
26
|
-
|---|---|
|
|
27
|
-
| `/build-apk` | Build APK lengkap lewat agent apk-builder |
|
|
28
|
-
| `/test` | Seluruh test suite + laporan |
|
|
29
|
-
| `/fix` | Loop otomatis perbaiki semua tes gagal sampai hijau |
|
|
30
|
-
| `/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.
|
|
31
33
|
|
|
32
|
-
|
|
34
|
+
๐ **Upstream:** https://github.com/anomalyco/opencode
|
|
35
|
+
๐ฆ **npm:** https://www.npmjs.com/package/opencode-ai
|
|
36
|
+
๐ **Docs:** https://opencode.ai
|
|
33
37
|
|
|
34
|
-
|
|
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) |
|
|
35
49
|
|
|
36
|
-
|
|
37
|
-
|
|
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**.
|
|
38
65
|
|
|
39
66
|
---
|
|
40
67
|
|
|
41
|
-
##
|
|
68
|
+
## ๐ **Sync Upstream Otomatis**
|
|
69
|
+
|
|
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.
|
|
86
|
+
|
|
87
|
+
---
|
|
42
88
|
|
|
43
|
-
|
|
44
|
-
`process.platform === "android"` dan tidak menyediakan build untuk Bionic libc.
|
|
89
|
+
## ๐๏ธ **Arsitektur: Kenapa Paket Ini Ada?**
|
|
45
90
|
|
|
46
|
-
|
|
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)
|
|
94
|
+
|
|
95
|
+
**Solusi opencode-termux โ tanpa trik aneh:**
|
|
47
96
|
|
|
48
97
|
```
|
|
49
|
-
opencode-termux (shim
|
|
50
|
-
โโ vendor/ld-musl.so โ musl libc
|
|
98
|
+
opencode-termux (Node shim)
|
|
99
|
+
โโ vendor/ld-musl.so โ musl libc custom build untuk Termux*
|
|
51
100
|
โโ vendor/opencode โ binary resmi opencode-linux-arm64-musl
|
|
52
101
|
โคณ LD_LIBRARY_PATH โ libstdc++ / libgcc_s (dari Alpine)
|
|
53
102
|
```
|
|
54
103
|
|
|
55
|
-
\*
|
|
56
|
-
|
|
104
|
+
\* Path `/etc/resolv.conf` & `/etc/hosts` dipatch saat kompilasi menuju `$PREFIX/etc/` sehingga **DNS jalan tanpa root**.
|
|
105
|
+
|
|
106
|
+
**Auto-heal:** Kalau `postinstall` terlewat (mis. `--ignore-scripts`), binary dipasang otomatis saat pertama kali jalan.
|
|
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
|
+
---
|
|
57
128
|
|
|
58
|
-
## ๐
|
|
129
|
+
## ๐ **Instalasi Cepat**
|
|
59
130
|
|
|
131
|
+
### **Online (npm โ Recommended)**
|
|
60
132
|
```bash
|
|
61
|
-
pkg update && pkg install nodejs-lts
|
|
62
|
-
npm
|
|
133
|
+
pkg update && pkg install nodejs-lts tar
|
|
134
|
+
npm install -g @nemoobc/opencode-termux
|
|
135
|
+
opencode-termux --version
|
|
63
136
|
```
|
|
64
137
|
|
|
65
|
-
>
|
|
138
|
+
> โ ๏ธ Warning `install-scripts`? Izinkan sekali:
|
|
66
139
|
> ```bash
|
|
67
140
|
> npm config set allow-scripts=@nemoobc/opencode-termux --location=user
|
|
68
141
|
> npm rebuild -g @nemoobc/opencode-termux
|
|
69
142
|
> ```
|
|
70
143
|
|
|
71
|
-
|
|
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**
|
|
72
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) |
|
|
170
|
+
|
|
171
|
+
> **Selalu verifikasi dulu:** `sha256sum -c SHA256SUMS.txt` sebelum mengekstrak/menjalankan artefak apa pun yang diunduh.
|
|
172
|
+
|
|
173
|
+
### **Via .deb (Termux apt)**
|
|
73
174
|
```bash
|
|
74
|
-
opencode-
|
|
175
|
+
pkg install ./opencode-termux_{v}_aarch64.deb
|
|
75
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.
|
|
76
178
|
|
|
77
|
-
|
|
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**
|
|
78
201
|
|
|
79
202
|
```bash
|
|
80
|
-
|
|
203
|
+
mkdir -p ~/project-coba && cd ~/project-coba
|
|
204
|
+
opencode-termux
|
|
81
205
|
```
|
|
82
206
|
|
|
83
|
-
|
|
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
|
+
---
|
|
84
211
|
|
|
85
|
-
|
|
212
|
+
## ๐งช **Testing**
|
|
86
213
|
|
|
87
|
-
|
|
214
|
+
```bash
|
|
215
|
+
npm test # Struktur + unit (cepat, tanpa unduhan besar)
|
|
216
|
+
npm run test:e2e # E2E penuh: install bundle + smoke test + subcommand
|
|
217
|
+
```
|
|
218
|
+
|
|
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**
|
|
246
|
+
|
|
247
|
+
```bash
|
|
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/
|
|
258
|
+
```
|
|
259
|
+
|
|
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)
|
|
283
|
+
|
|
284
|
+
---
|
|
285
|
+
|
|
286
|
+
## ๐ค **Kontribusi**
|
|
287
|
+
|
|
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
|
|
293
|
+
|
|
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
|
|
300
|
+
|
|
301
|
+
---
|
|
302
|
+
|
|
303
|
+
## ๐ **Lisensi**
|
|
304
|
+
|
|
305
|
+
**MIT License** โ bebas pakai, modifikasi, distribusi.
|
|
306
|
+
|
|
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
|
+
---
|
|
88
323
|
|
|
89
|
-
|
|
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:
|