@retasc/cli 1.7.0 → 1.7.1

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.
@@ -40,6 +40,15 @@ export function applyObservation(leases, o) {
40
40
  const id = typeof o.args?.identifier === "string" ? o.args.identifier : undefined;
41
41
  if (id && o.toolName === "release_issue")
42
42
  leases.delete(id);
43
+ // RTSC-321: moving to `review` (RTSC-257) hands the lease back server-side (the
44
+ // author's work is done, pending a reviewer), so stop heartbeating it — like a
45
+ // release, NOT a terminal close. It must NOT reap: `terminalCloseId` stays
46
+ // done|canceled only, so the branch/worktree survives for the review + PR. (The
47
+ // reviewer's send-back review→todo also releases server-side but is undetectable
48
+ // from args alone — doing→todo does NOT release — so that case self-heals via the
49
+ // failed-heartbeat path instead.)
50
+ if (id && o.toolName === "save_issue" && o.args?.status === "review")
51
+ leases.delete(id);
43
52
  const closeId = terminalCloseId(o);
44
53
  if (closeId)
45
54
  leases.delete(closeId);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@retasc/cli",
3
- "version": "1.7.0",
3
+ "version": "1.7.1",
4
4
  "description": "Retasc CLI — sign in with GitHub, create projects, mint agent API keys, and wire your agent to the Retasc MCP server in one command.",
5
5
  "type": "module",
6
6
  "bin": {