clawborrator-cli 0.2.1 → 0.2.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/README.md CHANGED
@@ -57,7 +57,7 @@ claw token mint --name "$(hostname)" --mcp-snippet --out .mcp.json
57
57
  # `claw session list`.
58
58
  ```
59
59
 
60
- The session token is stored at `~/.clawborrator/config.json` (mode
60
+ The session token is stored at `~/.clawborrator/cli_v1.json` (mode
61
61
  0600). To talk to a different hub, pass `--hub <url>` once on login;
62
62
  the URL persists.
63
63
 
@@ -175,7 +175,7 @@ reach other peers.
175
175
  Anyone can also call your agent over the
176
176
  [A2A protocol](https://a2a-protocol.org) at
177
177
  `/api/a2a/v1/agents/<owner>/<slug>` — see the
178
- [A2A bridge reference](https://next.clawborrator.com/demos/a2a-docs/).
178
+ [A2A bridge reference](https://next.clawborrator.com/demos/a2a/#reference).
179
179
 
180
180
  ### Webhooks
181
181
 
@@ -290,7 +290,7 @@ In-TUI commands:
290
290
 
291
291
  | Path | Contents |
292
292
  |---|---|
293
- | `~/.clawborrator/config.json` | hub URL + session token (mode 0600) |
293
+ | `~/.clawborrator/cli_v1.json` | hub URL + session token (mode 0600) |
294
294
  | `$CLAWBORRATOR_HUB` | env override for hub URL (one-shot, doesn't persist) |
295
295
 
296
296
  ---
@@ -64007,11 +64007,11 @@ var import_node_os = require("node:os");
64007
64007
  var import_node_path = require("node:path");
64008
64008
  var import_node_fs = require("node:fs");
64009
64009
  var CONFIG_DIR = (0, import_node_path.resolve)((0, import_node_os.homedir)(), ".clawborrator");
64010
- var CONFIG_PATH = (0, import_node_path.resolve)(CONFIG_DIR, "config.json");
64010
+ var CONFIG_PATH = (0, import_node_path.resolve)(CONFIG_DIR, "cli_v1.json");
64011
64011
  var DEFAULTS = {
64012
64012
  // Default to the public hub. Local-dev users override via either
64013
64013
  // CLAWBORRATOR_HUB=http://localhost:8787 or `claw login --hub <url>`,
64014
- // which persists into ~/.clawborrator/config.json.
64014
+ // which persists into ~/.clawborrator/cli_v1.json.
64015
64015
  hubUrl: process.env.CLAWBORRATOR_HUB ?? "https://next.clawborrator.com",
64016
64016
  sessionToken: null
64017
64017
  };
@@ -64213,7 +64213,7 @@ var loginCmd = new Command("login").description("authenticate against a hub_v1 i
64213
64213
  saveConfig({ hubUrl, sessionToken: session.token });
64214
64214
  console.log(`logged in as @${user.githubLogin}`);
64215
64215
  console.log(`hub: ${hubUrl}`);
64216
- console.log(`session: ${session.token.slice(0, 16)}\u2026 (stored in ~/.clawborrator/config.json)`);
64216
+ console.log(`session: ${session.token.slice(0, 16)}\u2026 (stored in ~/.clawborrator/cli_v1.json)`);
64217
64217
  console.log(`expires at: ${session.expiresAt}`);
64218
64218
  } catch (e) {
64219
64219
  if (e instanceof ApiError && e.status === 503) {
@@ -68551,6 +68551,20 @@ var sessionInfo = new Command("info").description("show metadata for a single se
68551
68551
  console.log(`started : ${s.startedAt}`);
68552
68552
  console.log(`last seen: ${s.lastSeenAt}`);
68553
68553
  console.log(`status : ${s.connected ? "connected" : "offline"}${s.archivedAt ? " \xB7 ARCHIVED" : ""}`);
68554
+ if (s.managedBy?.machineId) {
68555
+ const ver = s.managedBy.daemonVersion ? ` (daemon ${s.managedBy.daemonVersion})` : "";
68556
+ console.log(`managed : ${s.managedBy.machineId}${ver}`);
68557
+ console.log(`autoStart: ${s.autoStart ? "ON" : "OFF"}`);
68558
+ const ae = s.autoEnter === void 0 ? "?" : s.autoEnter ? "ON (auto)" : "OFF (manual)";
68559
+ console.log(`autoEnter: ${ae}`);
68560
+ const flags = s.extraFlags;
68561
+ if (flags === void 0) console.log("flags : ?");
68562
+ else if (flags.length === 0) console.log("flags : (none)");
68563
+ else console.log(`flags : ${flags.join(" ")}`);
68564
+ }
68565
+ if (s.agentHandle) {
68566
+ console.log(`agent : ${s.agentHandle}`);
68567
+ }
68554
68568
  });
68555
68569
  function buildEventsQs(opts) {
68556
68570
  const qs = new URLSearchParams({ limit: opts.limit ?? "200" });
@@ -68676,7 +68690,7 @@ var sessionDelete = new Command("delete").description("hard-delete a single sess
68676
68690
  `/api/v1/sessions/${encodeURIComponent(id)}?hard=true`
68677
68691
  );
68678
68692
  const sweep = r.blobsSwept && r.blobsSwept > 0 ? ` \xB7 swept ${r.blobsSwept} blob${r.blobsSwept === 1 ? "" : "s"} (${r.bytesFreed ?? 0} bytes freed)` : "";
68679
- console.log(`\u2717 deleted ${r.sessionId} (events / op-messages / shares / files cascaded)${sweep}`);
68693
+ console.log(`\u2717 deleted ${r.sessionId} (events / op-messages / shares / files / permission_requests / reply_chunks / any agent + agent_query_log cascaded)${sweep}`);
68680
68694
  });
68681
68695
  var sessionPrompt = new Command("prompt").description('send a one-shot prompt to a session\'s live Claude. Fire-and-forget \u2014 to find the eventual reply, run `claw session events <ref> --kind=chat --type=reply` (or `claw route <peer> "..."` for ask-mode that blocks for the answer). Use `--attach <fileId>` (repeatable) to attach files structurally \u2014 equivalent to inlining `fileId=N` tokens but cleaner; the receiving session sees the rewritten ids in its prompt text after forward-clone.').argument("<ref>", "session UUID or @routingName").argument("<text>", "prompt text \u2014 quote multi-word; may be empty if --attach is supplied").option("--attach <fileId>", "fileId to attach (repeatable). Each upload happens via POST /api/v1/sessions/<ref>/files first; this flag references an existing fileId.", (v, prev = []) => {
68682
68696
  const n = Number.parseInt(v, 10);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clawborrator-cli",
3
- "version": "0.2.1",
3
+ "version": "0.2.4",
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",