clawborrator-cli 0.0.25 → 0.0.26

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.
@@ -6963,7 +6963,9 @@ var sessionAttach = new Command("attach").description("open a TUI on a session \
6963
6963
  sessionId = picked.id;
6964
6964
  } catch (e) {
6965
6965
  if (e instanceof AmbiguousError) {
6966
- console.error(`error: '${ref}' is ambiguous \u2014 multiple online sessions match. Re-run with a UUID or qualified form (e.g. @owner/slug). Candidates:`);
6966
+ const usedQualified = ref.includes("/");
6967
+ const advice = usedQualified ? `'${ref}' is ambiguous even within owner \u2014 multiple sessions share the same routing name. Re-run with a session UUID:` : `'${ref}' is ambiguous \u2014 re-run with the qualified @owner/slug form, or with a UUID if even that collides:`;
6968
+ console.error(`error: ${advice}`);
6967
6969
  for (const c of e.candidates) {
6968
6970
  console.error(` ${c.id} @${c.startedByLogin}/${(c.routingName ?? "").replace(/^@/, "")} ${c.cwd ?? ""}`);
6969
6971
  }
@@ -7119,9 +7121,11 @@ var sessionAttach = new Command("attach").description("open a TUI on a session \
7119
7121
  }
7120
7122
  const liveMatches = candidates.filter((c) => c.connected);
7121
7123
  if (liveMatches.length > 1) {
7122
- console.error(`${RED}error: '${targetRef}' is ambiguous \u2014 multiple online matches. Use the qualified form:${RESET2}`);
7124
+ const usedQualified = targetRef.includes("/");
7125
+ const advice = usedQualified ? `'${targetRef}' is ambiguous even within owner \u2014 re-issue using a session UUID:` : `'${targetRef}' is ambiguous \u2014 use the qualified form @owner/slug, or a UUID if the qualified form still collides:`;
7126
+ console.error(`${RED}error: ${advice}${RESET2}`);
7123
7127
  for (const c of liveMatches) {
7124
- console.error(` ${DIM2}${c.id.slice(0, 8)}\u2026${RESET2} @${c.startedByLogin}/${(c.routingName ?? "").replace(/^@/, "")} ${DIM2}${c.cwd ?? ""}${RESET2}`);
7128
+ console.error(` ${c.id} @${c.startedByLogin}/${(c.routingName ?? "").replace(/^@/, "")} ${DIM2}${c.cwd ?? ""}${RESET2}`);
7125
7129
  }
7126
7130
  return;
7127
7131
  }
@@ -7357,9 +7361,10 @@ async function resolveSessionId(idOrName) {
7357
7361
  return picked.id;
7358
7362
  } catch (e) {
7359
7363
  if (e instanceof AmbiguousError) {
7364
+ const usedQualified = idOrName.includes("/");
7365
+ const advice = usedQualified ? `'${idOrName}' is ambiguous even within owner \u2014 multiple sessions share the same routing name (different cwds with matching basenames). Re-run with a UUID:` : `'${idOrName}' is ambiguous \u2014 re-run with the qualified @owner/slug form, or with a UUID if even that collides:`;
7360
7366
  const err = new Error(
7361
- `ambiguous reference '${idOrName}' \u2014 multiple online sessions match. Re-run with a UUID or qualified form. Candidates:
7362
- ` + e.candidates.map((c) => ` ${c.id} @${c.startedByLogin}/${(c.routingName ?? "").replace(/^@/, "")} ${c.cwd ?? ""}`).join("\n")
7367
+ advice + "\n" + e.candidates.map((c) => ` ${c.id} @${c.startedByLogin}/${(c.routingName ?? "").replace(/^@/, "")} ${c.cwd ?? ""}`).join("\n")
7363
7368
  );
7364
7369
  err.code = "CLW_AMBIGUOUS";
7365
7370
  throw err;
@@ -7784,7 +7789,7 @@ var webhookCmd = new Command("webhook").description("manage webhook subscription
7784
7789
 
7785
7790
  // src/index.ts
7786
7791
  var program2 = new Command();
7787
- program2.name("claw").description("clawborrator CLI \u2014 control your Claude Code sessions from the terminal").version("0.0.25");
7792
+ program2.name("claw").description("clawborrator CLI \u2014 control your Claude Code sessions from the terminal").version("0.0.26");
7788
7793
  program2.addCommand(loginCmd);
7789
7794
  program2.addCommand(logoutCmd);
7790
7795
  program2.addCommand(whoamiCmd);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clawborrator-cli",
3
- "version": "0.0.25",
3
+ "version": "0.0.26",
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",