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 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`.
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env node
2
+ // SPEC-398 · shim tipis: seluruh logika ada di dist/cli.js (bundle esbuild).
3
+ import "../dist/cli.js";
@@ -0,0 +1,5 @@
1
+ {
2
+ "version": "0.1.0",
3
+ "sha": "6d1867f",
4
+ "builtAt": "2026-07-30T06:11:24.389Z"
5
+ }