hanoman 0.1.16 → 0.1.18
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 +44 -0
- package/dist/server.js +413 -40
- package/docs/agent-integration.md +40 -0
- package/package.json +1 -1
- package/prisma/migrations/20260803000000_spec_done_at/migration.sql +16 -0
- package/prisma/migrations/20260803001000_changelog/migration.sql +21 -0
- package/prisma/schema.prisma +30 -0
- package/web/assets/{index-GQaOZTKC.js → index-BrlNu5Qe.js} +1536 -1536
- package/web/index.html +1 -1
package/dist/build-info.json
CHANGED
package/dist/cli.js
CHANGED
|
@@ -5559,6 +5559,10 @@ var init_api = __esm({
|
|
|
5559
5559
|
// SPEC-471 · ADR-0095 · tarik & triase issue GitHub (di belakang gate cookie, capability `support`).
|
|
5560
5560
|
// hanoman TIDAK PERNAH menulis ke GitHub — tak ada path komentar/close di sini, dan itu disengaja.
|
|
5561
5561
|
githubPull: (id) => `${API}/projects/${encodeURIComponent(id)}/github/pull`,
|
|
5562
|
+
// SPEC-516 · ADR-0105 · changelog per project
|
|
5563
|
+
changelog: (id) => `${API}/projects/${encodeURIComponent(id)}/changelog`,
|
|
5564
|
+
changelogSources: (id) => `${API}/projects/${encodeURIComponent(id)}/changelog/sources`,
|
|
5565
|
+
changelogItem: (id, cid) => `${API}/projects/${encodeURIComponent(id)}/changelog/${encodeURIComponent(cid)}`,
|
|
5562
5566
|
githubIssues: (id) => `${API}/projects/${encodeURIComponent(id)}/github/issues`,
|
|
5563
5567
|
githubIssuesAccept: `${API}/github-issues/accept`,
|
|
5564
5568
|
githubIssueAccept: (id) => `${API}/github-issues/${encodeURIComponent(id)}/accept`,
|
|
@@ -6851,6 +6855,42 @@ var init_mcp = __esm({
|
|
|
6851
6855
|
}
|
|
6852
6856
|
});
|
|
6853
6857
|
|
|
6858
|
+
// ../shared/src/changelog.ts
|
|
6859
|
+
var CHANGELOG_MODES, zChangelogMode, zDay, zChangelogRequest, zChangelogView;
|
|
6860
|
+
var init_changelog = __esm({
|
|
6861
|
+
"../shared/src/changelog.ts"() {
|
|
6862
|
+
"use strict";
|
|
6863
|
+
init_zod();
|
|
6864
|
+
CHANGELOG_MODES = ["backlog", "commit", "version"];
|
|
6865
|
+
zChangelogMode = external_exports.enum(CHANGELOG_MODES);
|
|
6866
|
+
zDay = external_exports.string().regex(/^\d{4}-\d{2}-\d{2}$/, "format tanggal harus YYYY-MM-DD");
|
|
6867
|
+
zChangelogRequest = external_exports.discriminatedUnion("mode", [
|
|
6868
|
+
external_exports.object({ mode: external_exports.literal("backlog"), from: zDay.optional(), to: zDay.optional() }),
|
|
6869
|
+
external_exports.object({ mode: external_exports.literal("commit"), fromSha: external_exports.string().trim().min(4), toSha: external_exports.string().trim().min(4) }),
|
|
6870
|
+
external_exports.object({ mode: external_exports.literal("version"), fromTag: external_exports.string().trim().min(1).optional(), toTag: external_exports.string().trim().min(1) })
|
|
6871
|
+
]).superRefine((v, ctx) => {
|
|
6872
|
+
if (v.mode === "backlog" && v.from && v.to && v.from > v.to)
|
|
6873
|
+
ctx.addIssue({
|
|
6874
|
+
code: external_exports.ZodIssueCode.custom,
|
|
6875
|
+
path: ["from"],
|
|
6876
|
+
message: "rentang tanggal terbalik \u2014 `from` harus lebih awal atau sama dengan `to`"
|
|
6877
|
+
});
|
|
6878
|
+
});
|
|
6879
|
+
zChangelogView = external_exports.object({
|
|
6880
|
+
id: external_exports.string(),
|
|
6881
|
+
projectId: external_exports.string(),
|
|
6882
|
+
mode: zChangelogMode,
|
|
6883
|
+
title: external_exports.string(),
|
|
6884
|
+
params: external_exports.unknown(),
|
|
6885
|
+
body: external_exports.string(),
|
|
6886
|
+
generator: external_exports.enum(["agent", "fallback"]),
|
|
6887
|
+
warning: external_exports.string().nullable(),
|
|
6888
|
+
itemCount: external_exports.number().int(),
|
|
6889
|
+
createdAt: external_exports.string()
|
|
6890
|
+
});
|
|
6891
|
+
}
|
|
6892
|
+
});
|
|
6893
|
+
|
|
6854
6894
|
// ../shared/src/index.ts
|
|
6855
6895
|
var init_src = __esm({
|
|
6856
6896
|
"../shared/src/index.ts"() {
|
|
@@ -6875,6 +6915,7 @@ var init_src = __esm({
|
|
|
6875
6915
|
init_webhook();
|
|
6876
6916
|
init_mcp();
|
|
6877
6917
|
init_auto_merge();
|
|
6918
|
+
init_changelog();
|
|
6878
6919
|
}
|
|
6879
6920
|
});
|
|
6880
6921
|
|
|
@@ -28429,6 +28470,9 @@ var init_migrate_pg = __esm({
|
|
|
28429
28470
|
"CustomAgent",
|
|
28430
28471
|
"Setting",
|
|
28431
28472
|
"Notification",
|
|
28473
|
+
// SPEC-516 · ADR-0105 · Changelog sesudah Project (FK projectId). Tabel ini LOCAL-only dan
|
|
28474
|
+
// lazimnya TIDAK ada di sumber Postgres lama — jalur 42P01 memperlakukannya sebagai nol baris.
|
|
28475
|
+
"Changelog",
|
|
28432
28476
|
"User",
|
|
28433
28477
|
"Session",
|
|
28434
28478
|
"DeviceToken",
|