clawborrator-cli 0.0.19 → 0.0.20

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.
@@ -6946,7 +6946,7 @@ var sessionAttach = new Command("attach").description("open a TUI on a session \
6946
6946
  return;
6947
6947
  }
6948
6948
  if (msg.type === "permission_request") {
6949
- pendingPerms.push({ requestId: msg.requestId, tool: msg.tool });
6949
+ pendingPerms.push({ requestId: msg.requestId, tool: msg.tool, sessionId: msg.sessionId });
6950
6950
  } else if (msg.type === "permission_resolved") {
6951
6951
  const i = pendingPerms.findIndex((p) => p.requestId === msg.requestId);
6952
6952
  if (i >= 0) pendingPerms.splice(i, 1);
@@ -6985,7 +6985,8 @@ var sessionAttach = new Command("attach").description("open a TUI on a session \
6985
6985
  const decision = text === "/y" || text === "/yes" ? "allow" : "deny";
6986
6986
  const approval = {
6987
6987
  type: "approval",
6988
- sessionId,
6988
+ sessionId: pending.sessionId,
6989
+ // owner of the permission, may not be `sessionId`
6989
6990
  requestId: pending.requestId,
6990
6991
  decision
6991
6992
  };
@@ -7708,7 +7709,7 @@ var webhookCmd = new Command("webhook").description("manage webhook subscription
7708
7709
 
7709
7710
  // src/index.ts
7710
7711
  var program2 = new Command();
7711
- program2.name("claw").description("clawborrator CLI \u2014 control your Claude Code sessions from the terminal").version("0.0.19");
7712
+ program2.name("claw").description("clawborrator CLI \u2014 control your Claude Code sessions from the terminal").version("0.0.20");
7712
7713
  program2.addCommand(loginCmd);
7713
7714
  program2.addCommand(logoutCmd);
7714
7715
  program2.addCommand(whoamiCmd);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clawborrator-cli",
3
- "version": "0.0.19",
3
+ "version": "0.0.20",
4
4
  "type": "module",
5
5
  "description": "claw — command-line client for clawborrator hub_v1. Manages PATs, channel tokens, sessions, cross-session routing, and webhooks; ships an inline TUI for live multi-operator session attach.",
6
6
  "license": "MIT",