clawborrator-cli 0.0.3 → 0.0.4
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.
- package/dist-bundled/claw.cjs +8 -9
- package/package.json +1 -1
package/dist-bundled/claw.cjs
CHANGED
|
@@ -7391,18 +7391,17 @@ var CLI_DEFAULT_SCOPES = [
|
|
|
7391
7391
|
];
|
|
7392
7392
|
|
|
7393
7393
|
// 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,
|
|
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, print ONLY the .mcp.json block to stdout (prose to stderr) so you can pipe it: `... --mcp-snippet > .mcp.json`").action(async (opts) => {
|
|
7395
7395
|
if (opts.kind === "channel") {
|
|
7396
7396
|
const out = await api.post("/api/v1/tokens/channel", { name: opts.name });
|
|
7397
|
-
|
|
7398
|
-
|
|
7399
|
-
|
|
7397
|
+
const prose = opts.mcpSnippet ? console.error : console.log;
|
|
7398
|
+
prose(`\u2713 channel token minted: ${out.name}`);
|
|
7399
|
+
prose(` ${out.token}`);
|
|
7400
|
+
prose(" (shown ONCE \u2014 store it now)");
|
|
7400
7401
|
if (opts.mcpSnippet) {
|
|
7401
7402
|
const cfg = loadConfig();
|
|
7402
7403
|
const wsUrl = cfg.hubUrl.replace(/^http(s?):\/\//, "ws$1://");
|
|
7403
|
-
|
|
7404
|
-
console.log(" paste into <project>/.mcp.json:");
|
|
7405
|
-
console.log(JSON.stringify({
|
|
7404
|
+
process.stdout.write(JSON.stringify({
|
|
7406
7405
|
mcpServers: {
|
|
7407
7406
|
clawborrator: {
|
|
7408
7407
|
command: "npx",
|
|
@@ -7413,7 +7412,7 @@ var tokenMint = new Command("mint").description("create a new token").requiredOp
|
|
|
7413
7412
|
}
|
|
7414
7413
|
}
|
|
7415
7414
|
}
|
|
7416
|
-
}, null, 2));
|
|
7415
|
+
}, null, 2) + "\n");
|
|
7417
7416
|
}
|
|
7418
7417
|
return;
|
|
7419
7418
|
}
|
|
@@ -7551,7 +7550,7 @@ var webhookCmd = new Command("webhook").description("manage webhook subscription
|
|
|
7551
7550
|
|
|
7552
7551
|
// src/index.ts
|
|
7553
7552
|
var program2 = new Command();
|
|
7554
|
-
program2.name("claw").description("clawborrator CLI \u2014 control your Claude Code sessions from the terminal").version("0.0.
|
|
7553
|
+
program2.name("claw").description("clawborrator CLI \u2014 control your Claude Code sessions from the terminal").version("0.0.4");
|
|
7555
7554
|
program2.addCommand(loginCmd);
|
|
7556
7555
|
program2.addCommand(logoutCmd);
|
|
7557
7556
|
program2.addCommand(whoamiCmd);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "clawborrator-cli",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.4",
|
|
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",
|