hanoman 0.1.0
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 +73 -0
- package/bin/hanoman.mjs +3 -0
- package/dist/build-info.json +5 -0
- package/dist/cli.js +6332 -0
- package/dist/server.js +23609 -0
- package/package.json +38 -0
- package/prisma/migrations/20260730000000_init_sqlite/migration.sql +431 -0
- package/prisma/migrations/migration_lock.toml +2 -0
- package/prisma/schema.prisma +425 -0
- package/web/assets/index-BXg9KRmB.css +41 -0
- package/web/assets/index-a6SFYnK5.js +7542 -0
- package/web/favicon.svg +8 -0
- package/web/index.html +14 -0
- package/web/sounds/notify-alert.wav +0 -0
- package/web/sounds/notify-bell.wav +0 -0
- package/web/sounds/notify-blip.wav +0 -0
- package/web/sounds/notify-chime.wav +0 -0
- package/web/sounds/notify-coin.wav +0 -0
- package/web/sounds/notify-fanfare.wav +0 -0
- package/web/sounds/notify-long.wav +0 -0
- package/web/sounds/notify-marimba.wav +0 -0
- package/web/sounds/notify-medium.wav +0 -0
- package/web/sounds/notify-ping.wav +0 -0
- package/web/sounds/notify-pop.wav +0 -0
- package/web/sounds/notify-short.wav +0 -0
- package/web/sounds/notify-success.wav +0 -0
package/README.md
ADDED
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
# hanoman
|
|
2
|
+
|
|
3
|
+
Orchestrator + dashboard workflow docs-driven: ia menyuruh **Claude Code** atau **Codex** membangun
|
|
4
|
+
project terhadap dokumentasi sebagai kebenaran, lalu memantau semua sesi dalam satu dashboard.
|
|
5
|
+
|
|
6
|
+
## Pasang
|
|
7
|
+
|
|
8
|
+
```bash
|
|
9
|
+
npm i -g hanoman
|
|
10
|
+
hanoman doctor # periksa prasyarat
|
|
11
|
+
hanoman # jalan di http://127.0.0.1:8787
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
Buka URL-nya, buat akun pertama, selesai. Datanya di `~/.hanoman/` (SQLite — **tanpa Docker,
|
|
15
|
+
tanpa Postgres, tanpa Redis**).
|
|
16
|
+
|
|
17
|
+
## Prasyarat yang tidak dibawa npm
|
|
18
|
+
|
|
19
|
+
| Butuh | Untuk apa |
|
|
20
|
+
|---|---|
|
|
21
|
+
| `git` | tiap sesi jalan di git worktree terisolasi |
|
|
22
|
+
| `tmux` | sesi agen hidup di tmux, selamat dari restart server |
|
|
23
|
+
| `claude` **atau** `codex` | agen yang mengerjakan backlog |
|
|
24
|
+
|
|
25
|
+
`hanoman doctor` melaporkan mana yang belum ada, dan keluar dengan kode ≠ 0 bila ada yang wajib.
|
|
26
|
+
|
|
27
|
+
## Perintah
|
|
28
|
+
|
|
29
|
+
```
|
|
30
|
+
hanoman [start] jalankan (migrasi + server + dashboard)
|
|
31
|
+
--port <n> --host <h> --db <file> --no-migrate
|
|
32
|
+
hanoman doctor periksa prasyarat
|
|
33
|
+
hanoman update [--check] pasang versi terbaru dari npm
|
|
34
|
+
hanoman migrate-from-postgres --from <url> [--to <file>] [--dry-run] [--force]
|
|
35
|
+
hanoman docs scan | index | link operasi index Source of Truth
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
## Update
|
|
39
|
+
|
|
40
|
+
```bash
|
|
41
|
+
hanoman update # npm i -g hanoman@latest
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
Instance yang berjalan perlu di-restart sesudahnya (mis. `systemctl restart hanoman`). Dashboard
|
|
45
|
+
menampilkan badge saat versi baru terbit; ia **tidak** memasang apa pun sendiri — sesi agen yang
|
|
46
|
+
sedang berjalan tak boleh diputus oleh update yang tak diminta.
|
|
47
|
+
|
|
48
|
+
## Konfigurasi
|
|
49
|
+
|
|
50
|
+
| Env | Default | Untuk apa |
|
|
51
|
+
|---|---|---|
|
|
52
|
+
| `HANOMAN_HOME` | `~/.hanoman` | DB SQLite, key SSH, transkrip sesi |
|
|
53
|
+
| `DATABASE_URL` | `file:$HANOMAN_HOME/hanoman.db` | hanya URL `file:` (SQLite) |
|
|
54
|
+
| `PORT` / `HOST` | `8787` / `127.0.0.1` | alamat bind |
|
|
55
|
+
| `HANOMAN_CLAUDE_BIN` / `HANOMAN_CODEX_BIN` | `claude` / `codex` | biner agen |
|
|
56
|
+
| `HANOMAN_TMUX_SOCKET` | `hanoman` | socket tmux terpisah dari milikmu |
|
|
57
|
+
|
|
58
|
+
## Bind & TLS
|
|
59
|
+
|
|
60
|
+
Default `127.0.0.1:8787`. hanoman punya auth, tapi cookie sesinya `Secure` — set
|
|
61
|
+
`--host 0.0.0.0` **hanya** di belakang reverse proxy yang menerminasi TLS.
|
|
62
|
+
|
|
63
|
+
## Pindah dari Postgres
|
|
64
|
+
|
|
65
|
+
Instalasi hanoman lama memakai Postgres. Pindahkan sekali (backup dulu dengan `pg_dump`):
|
|
66
|
+
|
|
67
|
+
```bash
|
|
68
|
+
hanoman migrate-from-postgres --from "postgresql://user:pass@host:5432/hanoman" --dry-run
|
|
69
|
+
hanoman migrate-from-postgres --from "postgresql://user:pass@host:5432/hanoman"
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
`--dry-run` hanya menghitung baris per tabel tanpa menulis apa pun. Target yang sudah berisi data
|
|
73
|
+
ditolak kecuali `--force`.
|
package/bin/hanoman.mjs
ADDED