offhands 0.1.14 → 0.1.15

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.
Files changed (2) hide show
  1. package/dist/daemon.mjs +4 -2
  2. package/package.json +4 -1
package/dist/daemon.mjs CHANGED
@@ -4961,7 +4961,8 @@ var AsyncEventQueue = class {
4961
4961
  var APPROVAL_MCP_PATH = join(dirname(fileURLToPath(import.meta.url)), "..", "approval-mcp.mjs");
4962
4962
  var CLAUDE_PREALLOWED_OFFHAND_TOOLS = [
4963
4963
  "mcp__offhand__offhand_status_update",
4964
- "mcp__offhand__offhand_context"
4964
+ "mcp__offhand__offhand_context",
4965
+ "mcp__offhand__offhand_send_file"
4965
4966
  ];
4966
4967
  function buildClaudeArgs(run, approvalUrl2) {
4967
4968
  const args2 = ["-p", run.prompt, "--output-format", "stream-json", "--verbose", "--include-partial-messages"];
@@ -43792,7 +43793,8 @@ var ApprovalBroker = class {
43792
43793
  }
43793
43794
  };
43794
43795
  function classifyRisk(toolName, input) {
43795
- if (toolName === "offhand_send_file") return "high";
43796
+ const bareName = toolName.replace(/^mcp__.+?__/, "");
43797
+ if (bareName === "offhand_send_file") return "high";
43796
43798
  const i2 = input ?? {};
43797
43799
  const text = [toolName, i2.command, i2.file_path, i2.path, i2.filepath].filter((x2) => typeof x2 === "string").join(" ");
43798
43800
  return /\b(rm|del|rmdir|rd|format|mkfs|shutdown|reboot|kill|drop\s+table|truncate|git\s+push\s+--force|--hard)\b/i.test(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "offhands",
3
- "version": "0.1.14",
3
+ "version": "0.1.15",
4
4
  "description": "Phone → coding-agent relay. Daemon runs on your laptop, PWA on your phone. E2E encrypted.",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",
@@ -22,5 +22,8 @@
22
22
  },
23
23
  "devDependencies": {
24
24
  "esbuild": "^0.24.0"
25
+ },
26
+ "dependencies": {
27
+ "offhands": "^0.1.14"
25
28
  }
26
29
  }