clawborrator-cli 0.0.56 → 0.0.57

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.
@@ -68802,7 +68802,16 @@ var sessionScreenshot = new Command("screenshot").description("print the current
68802
68802
  console.error(`(${out.cols}\xD7${out.rows} terminal \u2014 cursor at ${out.cursor?.row ?? "?"},${out.cursor?.col ?? "?"})`);
68803
68803
  process.stdout.write(out.text.endsWith("\n") ? out.text : out.text + "\n");
68804
68804
  });
68805
- var sessionCmd = new Command("session").description("manage Claude Code sessions registered with this hub").addCommand(sessionList).addCommand(sessionInfo).addCommand(sessionAttach).addCommand(sessionEvents).addCommand(sessionMessages).addCommand(sessionArchive).addCommand(sessionPrune).addCommand(sessionPrompt).addCommand(sessionDelete).addCommand(sessionShareCmd).addCommand(sessionSharesCmd).addCommand(sessionUnshareCmd).addCommand(sessionFiles).addCommand(sessionFileRm).addCommand(sessionKill).addCommand(sessionRestart).addCommand(sessionScreenshot);
68805
+ var sessionInput = new Command("input").description("type bytes into a managed session's PTY").argument("<ref>", "session UUID, @routingName, or @owner/slug").argument("<bytes>", "raw bytes to write (UTF-8). use $'\\r' for Enter, etc.").option("--enter", 'append a CR after the bytes (handy for "type a line and submit")').action(async (ref, bytes, opts) => {
68806
+ const id = await resolveSessionId(ref);
68807
+ const payload = opts.enter ? bytes + "\r" : bytes;
68808
+ const out = await api.post(
68809
+ `/api/v1/sessions/${encodeURIComponent(id)}/input`,
68810
+ { bytes: payload }
68811
+ );
68812
+ console.error(`\u2713 wrote ${out.wrote ?? payload.length} bytes`);
68813
+ });
68814
+ var sessionCmd = new Command("session").description("manage Claude Code sessions registered with this hub").addCommand(sessionList).addCommand(sessionInfo).addCommand(sessionAttach).addCommand(sessionEvents).addCommand(sessionMessages).addCommand(sessionArchive).addCommand(sessionPrune).addCommand(sessionPrompt).addCommand(sessionDelete).addCommand(sessionShareCmd).addCommand(sessionSharesCmd).addCommand(sessionUnshareCmd).addCommand(sessionFiles).addCommand(sessionFileRm).addCommand(sessionKill).addCommand(sessionRestart).addCommand(sessionScreenshot).addCommand(sessionInput);
68806
68815
 
68807
68816
  // src/commands/token.ts
68808
68817
  var import_node_fs2 = require("node:fs");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clawborrator-cli",
3
- "version": "0.0.56",
3
+ "version": "0.0.57",
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",