hanoman 0.1.18 → 0.1.19
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/dist/build-info.json +3 -3
- package/dist/cli.js +58 -8
- package/dist/server.js +310 -60
- package/docs/agent-integration.md +5 -2
- package/package.json +1 -1
- package/prisma/schema.prisma +1 -1
- package/web/assets/{index-BrlNu5Qe.js → index-BJTj--gG.js} +1546 -1546
- package/web/index.html +1 -1
|
@@ -171,9 +171,10 @@ dan tak memakai agent token.
|
|
|
171
171
|
| `GET /api/projects/:id/changelog` | `docs:read` | changelog yang sudah dibangkitkan (paginated). |
|
|
172
172
|
| `POST /api/projects/:id/changelog` | `docs:write` | bangkitkan changelog baru — bentuknya di **§6a**. |
|
|
173
173
|
| `GET /api/terminal/sessions` | `sessions:read` | sesi yang sedang hidup. |
|
|
174
|
-
| `GET /api/notifications` | `notifications:read` | notifikasi. |
|
|
174
|
+
| `GET /api/notifications` | `notifications:read` | notifikasi. **Tanpa `limit` → 50 teratas**, bukan seluruhnya (lihat jebakan di §10). |
|
|
175
175
|
| `GET /api/tickets` | `support:read` | tiket Help Center. |
|
|
176
|
-
| `GET /api/lead/decisions` | `lead:read` | jejak keputusan hanoman-lead. |
|
|
176
|
+
| `GET /api/lead/decisions` | `lead:read` | jejak keputusan hanoman-lead. Menerima `page`/`limit`; `take`/`skip` lama tetap jalan. |
|
|
177
|
+
| `GET /api/scheduler/queue` | `settings:read` | antrean scheduler (`?status=queued\|launched\|done\|failed`). `GET /api/scheduler/state` **tak lagi** memuat `queue` — ia memuat `queueCounts`. |
|
|
177
178
|
| `POST /api/lead/decisions` | `lead:write` | minta putusan — baca **§8** dan **§11** dulu. |
|
|
178
179
|
|
|
179
180
|
## 6a. Changelog per project
|
|
@@ -283,6 +284,8 @@ memanggilnya; jangan lakukan tanpa manusia.
|
|
|
283
284
|
| **`GET /api/specs/:id` tidak ada** | `GET /api/specs?q=SPEC-489` lalu cocokkan `id` **persis** — `q` itu substring, jadi ia bisa mengembalikan lebih dari satu |
|
|
284
285
|
| daftar mengembalikan amplop `{ items, total, page, pageSize }` | jangan perlakukan responsnya sebagai array |
|
|
285
286
|
| tanpa `limit`, daftar mengembalikan **seluruh** item dalam satu halaman | kirim `limit` untuk backlog besar |
|
|
287
|
+
| **`GET /api/notifications` adalah pengecualiannya**: tanpa `limit` ia mengembalikan **50 teratas**, bukan seluruhnya — angka penuhnya ada di `total` | kirim `page`/`limit` bila kamu butuh riwayat lama; jangan simpulkan `items.length` = seluruh notifikasi |
|
|
288
|
+
| `GET /api/scheduler/state` **tidak lagi** memuat `queue` (SPEC-523/ADR-0107) | baca `queueCounts` untuk hitungan, `GET /api/scheduler/queue?status=…&page&limit` untuk barisnya |
|
|
286
289
|
| `PATCH /api/specs/:id` menolak edit konten begitu item pernah dimulai | ubah `title`/`payload` hanya selagi item belum punya sesi |
|
|
287
290
|
| `branchFrom` yang tak ada di repo project → **400**, bukan diterima lalu gagal di tengah sesi | ambil kandidatnya dari `GET /api/projects/:id/branches` |
|
|
288
291
|
| **401 telanjang** tak memisahkan "host salah" dari "token salah" dari "master switch mati" | probe `GET /api/health` sekali: 200 = host benar → masalahnya token atau master switch |
|
package/package.json
CHANGED
package/prisma/schema.prisma
CHANGED
|
@@ -399,7 +399,7 @@ model SchedulerQueueItem {
|
|
|
399
399
|
projectId String
|
|
400
400
|
source String // backlog | triase (asal checker) — SPEC-384 · `errors` dicabut (ADR-0092)
|
|
401
401
|
priority String // tinggi | sedang | rendah (urutan drain)
|
|
402
|
-
status String @default("queued") // queued | launched | done | failed
|
|
402
|
+
status String @default("queued") // queued | launched | done | failed | canceled (SPEC-522 · tombstone operator)
|
|
403
403
|
sessionId String?
|
|
404
404
|
note String? // alasan gagal (diisi daun #5)
|
|
405
405
|
enqueuedAt DateTime @default(now())
|