clawborrator-cli 0.0.32 → 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.
@@ -67867,7 +67867,8 @@ var sessionAttach = new Command("attach").description("open a TUI on a session \
67867
67867
  say(`${DIM2}unknown slash-command: ${text} (try /m /y /n /debug /q)${RESET2}`);
67868
67868
  return;
67869
67869
  }
67870
- 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);
67871
67872
  if (xMatch) {
67872
67873
  const targetRef = xMatch[1];
67873
67874
  const promptText = xMatch[2].trim();
@@ -67875,6 +67876,19 @@ var sessionAttach = new Command("attach").description("open a TUI on a session \
67875
67876
  say(`${DIM2}usage: ${targetRef} <prompt>${RESET2}`);
67876
67877
  return;
67877
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
+ }
67878
67892
  (async () => {
67879
67893
  const needle = targetRef.startsWith("@") ? targetRef : "@" + targetRef;
67880
67894
  const slash = needle.indexOf("/");
@@ -68595,7 +68609,7 @@ var webhookCmd = new Command("webhook").description("manage webhook subscription
68595
68609
 
68596
68610
  // src/index.ts
68597
68611
  var program2 = new Command();
68598
- program2.name("claw").description("clawborrator CLI \u2014 control your Claude Code sessions from the terminal").version("0.0.32");
68612
+ program2.name("claw").description("clawborrator CLI \u2014 control your Claude Code sessions from the terminal").version("0.0.33");
68599
68613
  program2.addCommand(loginCmd);
68600
68614
  program2.addCommand(logoutCmd);
68601
68615
  program2.addCommand(whoamiCmd);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clawborrator-cli",
3
- "version": "0.0.32",
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",