clawborrator-cli 0.0.31 → 0.0.33

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.
@@ -67816,6 +67816,14 @@ var sessionAttach = new Command("attach").description("open a TUI on a session \
67816
67816
  ws.close(1e3, "user quit");
67817
67817
  return;
67818
67818
  }
67819
+ if (text === "/debug" || text.startsWith("/debug ")) {
67820
+ const arg = text.slice("/debug".length).trim().toLowerCase();
67821
+ if (arg === "on") debugMode = true;
67822
+ else if (arg === "off") debugMode = false;
67823
+ else debugMode = !debugMode;
67824
+ say(`${DIM2}debug: ${debugMode ? `${AMBER}on${RESET2}${DIM2}` : "off"}${RESET2}`);
67825
+ return;
67826
+ }
67819
67827
  if (text === "/y" || text === "/yes" || text === "/n" || text === "/no") {
67820
67828
  const pending = pendingPerms[pendingPerms.length - 1];
67821
67829
  if (!pending) {
@@ -67856,10 +67864,11 @@ var sessionAttach = new Command("attach").description("open a TUI on a session \
67856
67864
  return;
67857
67865
  }
67858
67866
  if (text.startsWith("/")) {
67859
- say(`${DIM2}unknown slash-command: ${text} (try /m /y /n /q)${RESET2}`);
67867
+ say(`${DIM2}unknown slash-command: ${text} (try /m /y /n /debug /q)${RESET2}`);
67860
67868
  return;
67861
67869
  }
67862
- const xMatch = /^(@[A-Za-z0-9._\-/]+)\s+([\s\S]+)$/.exec(text);
67870
+ const UUID_RE_LOOSE = /^@?[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
67871
+ const xMatch = /^(@?[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}|@[A-Za-z0-9._\-/]+)\s+([\s\S]+)$/i.exec(text);
67863
67872
  if (xMatch) {
67864
67873
  const targetRef = xMatch[1];
67865
67874
  const promptText = xMatch[2].trim();
@@ -67867,6 +67876,19 @@ var sessionAttach = new Command("attach").description("open a TUI on a session \
67867
67876
  say(`${DIM2}usage: ${targetRef} <prompt>${RESET2}`);
67868
67877
  return;
67869
67878
  }
67879
+ if (UUID_RE_LOOSE.test(targetRef)) {
67880
+ const peerSessionId = targetRef.replace(/^@/, "");
67881
+ const out2 = {
67882
+ type: "prompt",
67883
+ sessionId: peerSessionId,
67884
+ text: promptText,
67885
+ sourceSessionId: sessionId
67886
+ };
67887
+ ws.send(JSON.stringify(out2));
67888
+ say(`${DIM2}[${ts()}]${RESET2} ${AMBER}\u2192 prompt \u2192 ${peerSessionId.slice(0, 8)}\u2026${RESET2} ${promptText}`);
67889
+ startWorking();
67890
+ return;
67891
+ }
67870
67892
  (async () => {
67871
67893
  const needle = targetRef.startsWith("@") ? targetRef : "@" + targetRef;
67872
67894
  const slash = needle.indexOf("/");
@@ -68587,7 +68609,7 @@ var webhookCmd = new Command("webhook").description("manage webhook subscription
68587
68609
 
68588
68610
  // src/index.ts
68589
68611
  var program2 = new Command();
68590
- program2.name("claw").description("clawborrator CLI \u2014 control your Claude Code sessions from the terminal").version("0.0.31");
68612
+ program2.name("claw").description("clawborrator CLI \u2014 control your Claude Code sessions from the terminal").version("0.0.33");
68591
68613
  program2.addCommand(loginCmd);
68592
68614
  program2.addCommand(logoutCmd);
68593
68615
  program2.addCommand(whoamiCmd);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clawborrator-cli",
3
- "version": "0.0.31",
3
+ "version": "0.0.33",
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",