hanoman 0.3.2 → 0.3.3

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.
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.3.2",
3
- "sha": "a288ce96",
4
- "builtAt": "2026-09-05T14:53:59.477Z"
2
+ "version": "0.3.3",
3
+ "sha": "05978c6d",
4
+ "builtAt": "2026-09-10T15:23:15.388Z"
5
5
  }
package/dist/server.js CHANGED
@@ -36879,12 +36879,14 @@ async function listWorktrees(repoDir, inputs) {
36879
36879
  const previous = history.get(path);
36880
36880
  if (!previous || h.startedAt > previous.startedAt) history.set(path, h);
36881
36881
  }
36882
+ const raw = parseWorktreePorcelain(text ?? "");
36883
+ const mainPath = raw[0] ? resolve15(raw[0].path) : null;
36882
36884
  const rows = [];
36883
- for (const w of parseWorktreePorcelain(text ?? "")) {
36885
+ for (const w of raw) {
36884
36886
  const path = resolve15(w.path);
36885
36887
  if (path === trash || path.startsWith(trash + sep4)) continue;
36886
36888
  const name2 = basename4(path);
36887
- const deletable = ownsWorktree(baseReal, path);
36889
+ const deletable = path !== baseReal && path !== mainPath;
36888
36890
  const spec = inputs.specs.get(name2);
36889
36891
  const latest = history.get(path);
36890
36892
  const orphan = latest && (!latest.endedAt || latest.endedReason === "reconciled") && !hasWorktreeSession(path, latest.sessionId, inputs.sessions) ? { historyId: latest.id, sessionId: latest.sessionId } : void 0;
@@ -36896,7 +36898,7 @@ async function listWorktrees(repoDir, inputs) {
36896
36898
  prunable: w.prunable,
36897
36899
  locked: w.locked,
36898
36900
  deletable,
36899
- blocked: deletable ? null : path === baseReal ? "checkout project" : "di luar .worktrees project ini",
36901
+ blocked: deletable ? null : "checkout project",
36900
36902
  spec: spec ? { id: spec.id, stage: spec.stage } : null,
36901
36903
  session: sessions.get(path) ?? null,
36902
36904
  createdAt: await bornAt(path),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hanoman",
3
- "version": "0.3.2",
3
+ "version": "0.3.3",
4
4
  "description": "Orchestrator + dashboard workflow docs-driven untuk sesi Claude Code / Codex",
5
5
  "type": "module",
6
6
  "repository": {