clawborrator-cli 0.2.6 → 0.2.7
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 +10 -7
- package/package.json +1 -1
package/dist-bundled/claw.cjs
CHANGED
|
@@ -68865,22 +68865,25 @@ var tokenMint = new Command("mint").description("create a new channel token").re
|
|
|
68865
68865
|
prose(" claude --dangerously-load-development-channels server:clawborrator");
|
|
68866
68866
|
}
|
|
68867
68867
|
});
|
|
68868
|
-
var tokenList = new Command("list").alias("ls").description("list
|
|
68869
|
-
const
|
|
68868
|
+
var tokenList = new Command("list").alias("ls").description("list this user's active tokens \u2014 both channel (ck_live_\u2026) and app (cw_app_\u2026). Pass --all to include revoked rows.").option("--all", "include revoked tokens").action(async (opts) => {
|
|
68869
|
+
const qs = opts.all ? "?includeRevoked=true" : "";
|
|
68870
|
+
const data = await api.get("/api/v1/tokens" + qs);
|
|
68870
68871
|
if (data.items.length === 0) {
|
|
68871
|
-
console.log("no active
|
|
68872
|
+
console.log("no active tokens");
|
|
68872
68873
|
return;
|
|
68873
68874
|
}
|
|
68874
68875
|
for (const t of data.items) {
|
|
68875
68876
|
const used = t.lastUsedAt ? `last used ${fmtAgo2(t.lastUsedAt)}` : "never used";
|
|
68876
|
-
|
|
68877
|
+
const status = t.revokedAt ? " REVOKED" : "";
|
|
68878
|
+
const mach = t.machineId ? ` mach=${t.machineId.slice(0, 12)}\u2026` : "";
|
|
68879
|
+
console.log(`${t.id.toString().padStart(3)} ${t.kind.padEnd(7)} ${t.prefix}\u2026 ${t.name.padEnd(28)} ${used}${mach}${status}`);
|
|
68877
68880
|
}
|
|
68878
68881
|
});
|
|
68879
|
-
var tokenRevoke = new Command("revoke").description("revoke a
|
|
68882
|
+
var tokenRevoke = new Command("revoke").description("revoke a token by id (channel or app)").argument("<id>", "token id (from `claw token list`)").action(async (id) => {
|
|
68880
68883
|
await api.delete(`/api/v1/tokens/${encodeURIComponent(id)}`);
|
|
68881
68884
|
console.log(`\u2713 token ${id} revoked`);
|
|
68882
68885
|
});
|
|
68883
|
-
var tokenCmd = new Command("token").description("mint
|
|
68886
|
+
var tokenCmd = new Command("token").description("mint channel tokens; list/revoke channel + app tokens").addCommand(tokenMint).addCommand(tokenList).addCommand(tokenRevoke);
|
|
68884
68887
|
function fmtAgo2(iso) {
|
|
68885
68888
|
const ms = Date.now() - new Date(iso).getTime();
|
|
68886
68889
|
if (ms < 6e4) return Math.max(1, Math.floor(ms / 1e3)) + "s ago";
|
|
@@ -69386,7 +69389,7 @@ function fmtAgo4(iso) {
|
|
|
69386
69389
|
|
|
69387
69390
|
// src/index.ts
|
|
69388
69391
|
var program2 = new Command();
|
|
69389
|
-
program2.name("claw").description("clawborrator CLI \u2014 control your Claude Code sessions from the terminal").version("0.2.
|
|
69392
|
+
program2.name("claw").description("clawborrator CLI \u2014 control your Claude Code sessions from the terminal").version("0.2.7");
|
|
69390
69393
|
program2.addCommand(loginCmd);
|
|
69391
69394
|
program2.addCommand(logoutCmd);
|
|
69392
69395
|
program2.addCommand(whoamiCmd);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "clawborrator-cli",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.7",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "claw — command-line client for clawborrator. Attach to remote Claude Code sessions, send prompts, resolve permission gates, route across sessions, manage public agents and webhooks. Auth via GitHub OAuth + PKCE.",
|
|
6
6
|
"license": "MIT",
|