clawborrator-cli 0.0.3 → 0.0.5

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.
@@ -7207,7 +7207,9 @@ var sessionInit = new Command("init").description("install clawborrator hooks in
7207
7207
  if (refreshed > 0) console.log(`\u2713 refreshed ${refreshed} command line${refreshed === 1 ? "" : "s"} (e.g. updated to call the local file)`);
7208
7208
  if (alreadyPresent > 0) console.log(` (${alreadyPresent} already up-to-date, untouched)`);
7209
7209
  console.log("");
7210
- console.log("next: drop a .mcp.json with your channel token, then run `claude` in this dir.");
7210
+ console.log("next: drop a .mcp.json with your channel token (`claw token mint --kind=channel");
7211
+ console.log(" --name=<label> --mcp-snippet > .mcp.json`), then start CC with:");
7212
+ console.log(" claude --dangerously-load-development-channels server:clawborrator");
7211
7213
  console.log(" events will flow as you prompt; watch via `claw session attach <id>`.");
7212
7214
  });
7213
7215
  function removeHooks(settingsPath, hookFile) {
@@ -7391,18 +7393,17 @@ var CLI_DEFAULT_SCOPES = [
7391
7393
  ];
7392
7394
 
7393
7395
  // src/commands/token.ts
7394
- var tokenMint = new Command("mint").description("create a new token").requiredOption("--kind <kind>", "channel | pat").requiredOption("--name <name>", 'human-readable label (e.g. "alice-laptop")').option("--scopes <csv>", "comma-separated scopes (PAT only); default = sensible CLI set").option("--app <name>", "pin the PAT to a specific app (display only)").option("--mcp-snippet", "after minting a channel token, also print a ready-to-paste .mcp.json block").action(async (opts) => {
7396
+ var tokenMint = new Command("mint").description("create a new token").requiredOption("--kind <kind>", "channel | pat").requiredOption("--name <name>", 'human-readable label (e.g. "alice-laptop")').option("--scopes <csv>", "comma-separated scopes (PAT only); default = sensible CLI set").option("--app <name>", "pin the PAT to a specific app (display only)").option("--mcp-snippet", "after minting a channel token, print ONLY the .mcp.json block to stdout (prose to stderr) so you can pipe it: `... --mcp-snippet > .mcp.json`").action(async (opts) => {
7395
7397
  if (opts.kind === "channel") {
7396
7398
  const out = await api.post("/api/v1/tokens/channel", { name: opts.name });
7397
- console.log(`\u2713 channel token minted: ${out.name}`);
7398
- console.log(` ${out.token}`);
7399
- console.log(" (shown ONCE \u2014 store it now)");
7399
+ const prose = opts.mcpSnippet ? console.error : console.log;
7400
+ prose(`\u2713 channel token minted: ${out.name}`);
7401
+ prose(` ${out.token}`);
7402
+ prose(" (shown ONCE \u2014 store it now)");
7400
7403
  if (opts.mcpSnippet) {
7401
7404
  const cfg = loadConfig();
7402
7405
  const wsUrl = cfg.hubUrl.replace(/^http(s?):\/\//, "ws$1://");
7403
- console.log("");
7404
- console.log(" paste into <project>/.mcp.json:");
7405
- console.log(JSON.stringify({
7406
+ process.stdout.write(JSON.stringify({
7406
7407
  mcpServers: {
7407
7408
  clawborrator: {
7408
7409
  command: "npx",
@@ -7413,7 +7414,10 @@ var tokenMint = new Command("mint").description("create a new token").requiredOp
7413
7414
  }
7414
7415
  }
7415
7416
  }
7416
- }, null, 2));
7417
+ }, null, 2) + "\n");
7418
+ prose("");
7419
+ prose(" next: launch CC with the clawborrator channel enabled \u2014");
7420
+ prose(" claude --dangerously-load-development-channels server:clawborrator");
7417
7421
  }
7418
7422
  return;
7419
7423
  }
@@ -7551,7 +7555,7 @@ var webhookCmd = new Command("webhook").description("manage webhook subscription
7551
7555
 
7552
7556
  // src/index.ts
7553
7557
  var program2 = new Command();
7554
- program2.name("claw").description("clawborrator CLI \u2014 control your Claude Code sessions from the terminal").version("0.0.3");
7558
+ program2.name("claw").description("clawborrator CLI \u2014 control your Claude Code sessions from the terminal").version("0.0.5");
7555
7559
  program2.addCommand(loginCmd);
7556
7560
  program2.addCommand(logoutCmd);
7557
7561
  program2.addCommand(whoamiCmd);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clawborrator-cli",
3
- "version": "0.0.3",
3
+ "version": "0.0.5",
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",