@pushary/agent-hooks 1.9.165 → 1.9.167

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 (143) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/data/openclaw-plugin/README.md +4 -4
  3. package/data/openclaw-plugin/dist/openclaw-write-guard.js +3 -1
  4. package/data/openclaw-plugin/dist/protected-writes.js +39 -14
  5. package/data/openclaw-plugin/package.json +1 -1
  6. package/dist/{api-D4SZ2E5J.js → api-7DCJGW6H.js} +11 -11
  7. package/dist/bin/pushary-audit.js +3 -3
  8. package/dist/bin/pushary-bell-hook.js +28 -28
  9. package/dist/bin/pushary-bell.js +11 -11
  10. package/dist/bin/pushary-calls.js +15 -15
  11. package/dist/bin/pushary-claude.js +27 -27
  12. package/dist/bin/pushary-clean.js +38 -38
  13. package/dist/bin/pushary-codex-bridge.js +23 -23
  14. package/dist/bin/pushary-codex-hook.js +36 -36
  15. package/dist/bin/pushary-codex-session.js +8 -8
  16. package/dist/bin/pushary-codex.js +16 -16
  17. package/dist/bin/pushary-connect.js +34 -34
  18. package/dist/bin/pushary-cowork.js +5 -5
  19. package/dist/bin/pushary-daemon.js +45 -45
  20. package/dist/bin/pushary-disconnect.js +29 -29
  21. package/dist/bin/pushary-display-hook.js +10 -4
  22. package/dist/bin/pushary-doctor.js +46 -46
  23. package/dist/bin/pushary-elicitation-hook.js +28 -28
  24. package/dist/bin/pushary-gemini-bridge.js +17 -17
  25. package/dist/bin/pushary-gemini-hook.js +32 -32
  26. package/dist/bin/pushary-hook.js +36 -36
  27. package/dist/bin/pushary-login.js +22 -22
  28. package/dist/bin/pushary-logout.js +29 -29
  29. package/dist/bin/pushary-mcp.js +12 -12
  30. package/dist/bin/pushary-mode.js +16 -16
  31. package/dist/bin/pushary-notification-hook.js +27 -27
  32. package/dist/bin/pushary-opencode-hook.js +33 -33
  33. package/dist/bin/pushary-permission-denied-hook.js +36 -36
  34. package/dist/bin/pushary-permission-hook.js +36 -36
  35. package/dist/bin/pushary-post-hook.js +28 -28
  36. package/dist/bin/pushary-prompt-hook.js +27 -27
  37. package/dist/bin/pushary-session-end-hook.js +27 -27
  38. package/dist/bin/pushary-session-start-hook.js +38 -38
  39. package/dist/bin/pushary-setup.js +54 -54
  40. package/dist/bin/pushary-stats.js +5 -5
  41. package/dist/bin/pushary-status.js +35 -35
  42. package/dist/bin/pushary-stop-hook.js +27 -27
  43. package/dist/bin/pushary-stopfailure-hook.js +27 -27
  44. package/dist/bin/pushary-suggestions.js +16 -16
  45. package/dist/bin/pushary-transcript-register.js +17 -17
  46. package/dist/bin/pushary-transcripts.js +25 -25
  47. package/dist/bin/pushary-upgrade.js +43 -43
  48. package/dist/bin/pushary-wait.js +16 -16
  49. package/dist/bin/pushary.js +7 -7
  50. package/dist/{chunk-ZB5O3LKY.js → chunk-2MJDREYL.js} +1 -1
  51. package/dist/{chunk-WTUQEQ54.js → chunk-3AICHW2O.js} +6 -6
  52. package/dist/{chunk-X7IIWYAG.js → chunk-3AK7A275.js} +1 -1
  53. package/dist/{chunk-6QLOTNO2.js → chunk-3FQGK5XX.js} +2 -2
  54. package/dist/{chunk-QV5HMBT4.js → chunk-4AYUAZEK.js} +12 -12
  55. package/dist/{chunk-2KZZZ4JK.js → chunk-4Q2BXJKI.js} +3 -3
  56. package/dist/{chunk-GNCFKXQS.js → chunk-4QFWQ337.js} +2 -2
  57. package/dist/{chunk-7TQXWAOZ.js → chunk-57JWFFEI.js} +1 -1
  58. package/dist/{chunk-BOJWXETW.js → chunk-5FYS2WJI.js} +1 -1
  59. package/dist/{chunk-XRAUQWLP.js → chunk-5H7HNGXQ.js} +6 -6
  60. package/dist/{chunk-DFGHHYS5.js → chunk-5HYHDR2D.js} +4 -4
  61. package/dist/{chunk-NUHIGW7H.js → chunk-5WH6NFNY.js} +1 -1
  62. package/dist/{chunk-L4HJSUP7.js → chunk-63TOLXOC.js} +1 -1
  63. package/dist/{chunk-R23ZNBJU.js → chunk-65A5VPDE.js} +6 -6
  64. package/dist/{chunk-SIZBYHXW.js → chunk-6FTP2IGU.js} +4 -4
  65. package/dist/{chunk-MTB52RSH.js → chunk-7FBLMKLW.js} +2 -2
  66. package/dist/{chunk-LFS3PX7S.js → chunk-7JPXLFTJ.js} +4 -4
  67. package/dist/{chunk-7X7ZTLIN.js → chunk-7RTMQPNV.js} +11 -11
  68. package/dist/{chunk-TBDSTEO3.js → chunk-A23GU72F.js} +3 -3
  69. package/dist/{chunk-YLR6QHCH.js → chunk-AB265IBW.js} +6 -6
  70. package/dist/{chunk-A4IK6JTC.js → chunk-AG2WP3R5.js} +4 -4
  71. package/dist/{chunk-2J3IIFS3.js → chunk-B6MT6HZQ.js} +2 -2
  72. package/dist/{chunk-JAE5ULC6.js → chunk-BILK2RDJ.js} +5 -5
  73. package/dist/{chunk-YENSTBQI.js → chunk-C2AXJZNA.js} +1 -1
  74. package/dist/{chunk-7HXO72HS.js → chunk-CGNNCVSC.js} +1 -1
  75. package/dist/{chunk-635I27L4.js → chunk-DHMTIS7B.js} +3 -3
  76. package/dist/{chunk-X6YYQZW7.js → chunk-DRZLGR3F.js} +8 -4
  77. package/dist/{chunk-7WHUMPWM.js → chunk-EEIYR2PU.js} +1 -1
  78. package/dist/{chunk-U6NNLBWJ.js → chunk-EQUF4YXM.js} +5 -5
  79. package/dist/{chunk-7YUKURRZ.js → chunk-FXKXPDQH.js} +1 -1
  80. package/dist/{chunk-7JO3NNIQ.js → chunk-FZLALNEW.js} +2 -2
  81. package/dist/{chunk-7PMCRTPW.js → chunk-G5NBQSB5.js} +3 -3
  82. package/dist/{chunk-3I5IFXHF.js → chunk-G5TR3F6L.js} +1 -1
  83. package/dist/{chunk-X4YQCI5T.js → chunk-GJRRTSKA.js} +1 -1
  84. package/dist/{chunk-3CLLJJJ2.js → chunk-GLPVQBG6.js} +5 -5
  85. package/dist/{chunk-YQ67XWMM.js → chunk-GRBUY5ZC.js} +4 -4
  86. package/dist/{chunk-LDEZYH7Y.js → chunk-GWVT4TQN.js} +10 -10
  87. package/dist/{chunk-ITGM5QW4.js → chunk-GYQER2XO.js} +6 -6
  88. package/dist/{chunk-NCZ7MLNW.js → chunk-H44MW5CL.js} +9 -9
  89. package/dist/{chunk-WIVLMIJ6.js → chunk-HP74S2AZ.js} +4 -4
  90. package/dist/{chunk-ILBNQX44.js → chunk-HR67NNCI.js} +5 -5
  91. package/dist/{chunk-OPN6FWMG.js → chunk-J2SH6BMP.js} +1 -1
  92. package/dist/{chunk-BFMILGSX.js → chunk-JD4PIFZA.js} +3 -3
  93. package/dist/{chunk-L2NGVERQ.js → chunk-JIJVIP6B.js} +1 -1
  94. package/dist/{chunk-NEGPZ3DO.js → chunk-L35WZXWE.js} +2 -2
  95. package/dist/{chunk-NXTAXFQS.js → chunk-L7B5RMS3.js} +8 -8
  96. package/dist/{chunk-NN2RZ2UB.js → chunk-N7IF5QJ5.js} +3 -3
  97. package/dist/{chunk-ZPFENH7C.js → chunk-NA2P74E6.js} +4 -4
  98. package/dist/{chunk-EANTIGY7.js → chunk-NJTMQOLV.js} +1 -1
  99. package/dist/{chunk-JLGZGITL.js → chunk-O7QQO22I.js} +2 -2
  100. package/dist/{chunk-C2PGBMTH.js → chunk-OHB4XCZT.js} +1 -1
  101. package/dist/{chunk-I4BIOADS.js → chunk-OTEHOBCC.js} +4 -4
  102. package/dist/{chunk-IEENAYGT.js → chunk-P4KKTV6I.js} +1 -1
  103. package/dist/{chunk-RZRBXDGN.js → chunk-PI3L74XD.js} +6 -6
  104. package/dist/{chunk-JARCCL3M.js → chunk-PNZ5DTOG.js} +2 -2
  105. package/dist/{chunk-6OBGKICP.js → chunk-PZH43ICC.js} +3 -3
  106. package/dist/{chunk-VDNKX5OF.js → chunk-Q7S6ITE4.js} +5 -5
  107. package/dist/{chunk-UM4RAZPH.js → chunk-QS5A5WBR.js} +1 -1
  108. package/dist/{chunk-IGBKHRCZ.js → chunk-SCJZGEYG.js} +1 -1
  109. package/dist/{chunk-3GWMSKFY.js → chunk-SFMMWJLD.js} +23 -20
  110. package/dist/{chunk-ILGAR7DW.js → chunk-SG45DOSW.js} +2 -2
  111. package/dist/{chunk-67CGCPI4.js → chunk-SMT3YD6D.js} +2 -2
  112. package/dist/{chunk-2FLJZICI.js → chunk-SSPDI2AU.js} +2 -2
  113. package/dist/{chunk-D3KD7K3N.js → chunk-SZYXBY2H.js} +4 -4
  114. package/dist/{chunk-MYN6FNBS.js → chunk-T4LDWOIG.js} +3 -3
  115. package/dist/{chunk-LJSRMA5C.js → chunk-U2LU6NXY.js} +5 -5
  116. package/dist/{chunk-RN4Z5BQJ.js → chunk-U5SZI6GP.js} +3 -3
  117. package/dist/{chunk-ZEPOIQ4H.js → chunk-U6XGBWHB.js} +18 -4
  118. package/dist/{chunk-Y3QV3VYX.js → chunk-UCQJA73V.js} +1 -1
  119. package/dist/{chunk-YORHQJ5M.js → chunk-VFFJSYJQ.js} +4 -4
  120. package/dist/{chunk-TVXGBUOL.js → chunk-XANRM6TE.js} +1 -1
  121. package/dist/{chunk-MN2FFBYE.js → chunk-XG7VMTTL.js} +2 -2
  122. package/dist/{chunk-6ZGXNEBA.js → chunk-XJ23WHWH.js} +5 -5
  123. package/dist/{chunk-NYCN3CCK.js → chunk-XSHGKPWN.js} +1 -1
  124. package/dist/{chunk-OJRX6UVD.js → chunk-Y6QXHWZZ.js} +7 -7
  125. package/dist/{chunk-L54D5IIR.js → chunk-YMO2IWHO.js} +5 -5
  126. package/dist/{chunk-ANMVHKNK.js → chunk-YTWNOHNK.js} +3 -3
  127. package/dist/{chunk-5I34FSSW.js → chunk-Z4RNXOJM.js} +6 -6
  128. package/dist/{chunk-KYBVLSMT.js → chunk-ZOEMN4PT.js} +3 -3
  129. package/dist/{chunk-I2FH4E6H.js → chunk-ZUDFZNBQ.js} +2 -2
  130. package/dist/{codex-app-cards-switch-BOIE5IZL.js → codex-app-cards-switch-MO6URXIW.js} +11 -11
  131. package/dist/{codex-card-routing-B2ZI4WRI.js → codex-card-routing-7C4NT6VL.js} +2 -2
  132. package/dist/{codex-desktop-launch-LBL2LPS7.js → codex-desktop-launch-B57GFBK6.js} +1 -1
  133. package/dist/{codex-session-launch-7WVCWASC.js → codex-session-launch-GOUPFBK5.js} +20 -20
  134. package/dist/{config-S53I5YNR.js → config-KCJBXXFC.js} +3 -3
  135. package/dist/{global-upgrade-ND726NHJ.js → global-upgrade-CX5FWDDN.js} +9 -9
  136. package/dist/{identity-3G66JTAR.js → identity-JMYE6VRO.js} +4 -4
  137. package/dist/{live-capabilities-76C2DKTY.js → live-capabilities-YZFB7SNI.js} +4 -4
  138. package/dist/{paths-O3CZR2BV.js → paths-26C7U354.js} +3 -3
  139. package/dist/{reapply-TEATBGFG.js → reapply-7QZ5CZEH.js} +31 -31
  140. package/dist/src/index.js +35 -35
  141. package/dist/{upgrade-lock-PDCUHFRW.js → upgrade-lock-24S6DVKT.js} +4 -4
  142. package/dist/{usage-DFCL7TQU.js → usage-23YN2SGZ.js} +3 -3
  143. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.9.167
4
+
5
+ - Grok Build: its read-only tools no longer reach your phone. `grep`, `list_dir`, `glob`, `read_file`, `todo_write` and `search_tool` are now treated like Claude Code's reads: Pushary never asks about them, and a rule that denies one still blocks it without asking. Before, a rule that asked about every call sent each of them to your phone and held the call until you answered or the rule's timeout ran out. Shell commands, edits and MCP tools are asked as before.
6
+ - Grok Build: `read_file` works again. Pushary looked for the file in the wrong field of Grok's call, so it refused every Grok file read as a call it could not read. It now reads the file from `target_file` and the folder of a `list_dir` from `target_directory`, so a rule such as `Read(**/.env)` or `LS(/private/**)` blocks exactly what it names. A read whose file still cannot be read is refused, as before.
7
+ - Grok Build: write a rule for one of these tools with Claude Code's name for it: `Read`, `Grep`, `Glob`, `LS`, `TodoWrite` or `ToolSearch`. A rule saved under Grok's own name, such as `grep`, no longer matches.
8
+ - Grok Build's plan updates show in the session feed as "updated the plan" when Grok sends only the tasks that changed.
9
+
10
+ ## 1.9.166
11
+
12
+ - This CLI carries the OpenClaw plugin 0.1.6, which closes three gaps in its write guard. All three are in 0.1.5 and 0.1.4 too.
13
+ - The write guard lands a relative path in the workspace as OpenClaw names it, as well as where its symbolic links lead. With `~/.openclaw/workspace` a link to a project folder, a `write` to `../openclaw.json` overwrote OpenClaw's config, and before it ran without asking.
14
+ - A `write`, `edit` or `apply_patch` of a file with more than one name, a hard link, asks, because a write changes the file under every name: a hard link in the workspace to `~/.openclaw/openclaw.json` or to a workspace hook changed that file, and before it ran without asking. Deleting a hard link, or moving one, asks as well, though OpenClaw only removes that one name. A hard-linked file elsewhere asks too, such as one pnpm or bun links into `node_modules` on Linux; on macOS they clone files instead.
15
+ - A `sessions_spawn` with a relative `cwd` is checked from the gateway's working folder, where OpenClaw resolves it, as well as from the workspace, and `~` is read with OpenClaw's home, which `OPENCLAW_HOME` can move, as well as the OS home. Before, `cwd: "sub"` was checked from the workspace and ran without asking, though OpenClaw starts that session in the gateway's working folder, which for the macOS service is `~/.openclaw` unless its working folder is set.
16
+
3
17
  ## 1.9.165
4
18
 
5
19
  - This CLI carries the OpenClaw plugin 0.1.5, which closes `.env` leaks found in reviews of 0.1.4. The plugin now reads an `apply_patch` with OpenClaw's own grammar, so it accepts exactly the patches OpenClaw accepts and splits them into the same files. A header is trimmed, and counts only where the parser expects one: at the start of the patch, after a `*** Delete File:` line, after the `+` lines of an added file, and at a `***` line that starts a line inside an update. An indented header inside a `.env` update is therefore a line of that file. 0.1.4 started a new section there and sent the `.env` lines after it. The approval now names exactly the files OpenClaw writes, including one whose indented header follows a deletion or an added file, and withholds the lines of every `.env` hunk and of any hunk with a header-shaped line that names a `.env` file. A patch that moves a file into or out of a `.env` file withholds every hunk, because lines added to a file in one hunk travel with the move in the next. A patch that mentions `.env` and that OpenClaw would not parse is withheld whole, and names only the headers that start a line. A file name that matches a secret pattern, such as 40 or more letters, digits and slashes in a row, is still redacted like any other text.
@@ -56,8 +56,8 @@ Running `pushary setup` later installs the CLI's own copy over a ClawHub or npm
56
56
  - Every `terminal` action except `read` and `list`. `terminal input` types into a shared operator terminal.
57
57
  - Every `nodes` action except the reads: `status`, `describe`, `pending`, `notify`, `camera_list`, `notifications_list` and the `device_*` reads. `nodes run` runs a command on a paired machine, `approve` pairs a new one, and the camera, screen and location actions take data from it.
58
58
  - Every `sessions_spawn` with `runtime: "acp"`. An ACP session runs Codex, Claude Code or another harness, whose own tool calls never reach this plugin, so starting one asks.
59
- - A `sessions_spawn` with a `cwd` outside the agent's workspace or in its `hooks` or `.openclaw` folder, or with a `projectId`, `projectGitUrl` or `worktree`. The question names the folder.
60
- - Every `write`, `edit` or `apply_patch` into OpenClaw's own files: anything inside an OpenClaw state directory, `~/.config/openclaw` (where Linux keeps `gateway.env`), `~/.pushary`, the `.env` in the gateway's working folder, the config file set by `OPENCLAW_CONFIG_PATH`, and the launchd and systemd files OpenClaw installs for its gateway. The one exception is the agent's own workspace when it lives inside the state directory, which is OpenClaw's default (`~/.openclaw/workspace`). The workspace `hooks` and `.openclaw` folders always ask, wherever the workspace is, because OpenClaw loads code from them: hooks from `hooks`, and plugins from `.openclaw/extensions`, which it finds before the installed ones. The plugin resolves `~`, `@` references, relative paths against the agent's workspace, and symlinks before it decides. A path it cannot resolve asks, including one through a symbolic link whose target does not exist yet, and so does any path that is not plain: one with surrounding whitespace, a URL scheme such as `file://`, a `:` other than in a drive prefix, any of `% ? # < > | * "` or an ASCII control character, because OpenClaw resolves those differently in its default, workspace-only and sandbox setups. On macOS and Windows, a path asks when it, or a folder the plugin compares it with, has a character Node cannot compare the way macOS does, such as one newer than Node's Unicode tables. In a sandbox it does not map an absolute path inside the container, such as `/workspace/hooks/x.js`, to the host folder OpenClaw writes, so such a write does not ask. Writes anywhere else run without asking.
59
+ - A `sessions_spawn` with a `cwd` outside the agent's workspace or in its `hooks` or `.openclaw` folder, or with a `projectId`, `projectGitUrl` or `worktree`. The question names the folder. OpenClaw resolves a relative `cwd` from the gateway's working folder and expands `~` with `OPENCLAW_HOME` when it is set, so the plugin checks those readings as well as the workspace one.
60
+ - Every `write`, `edit` or `apply_patch` into OpenClaw's own files: anything inside an OpenClaw state directory, `~/.config/openclaw` (where Linux keeps `gateway.env`), `~/.pushary`, the `.env` in the gateway's working folder, the config file set by `OPENCLAW_CONFIG_PATH`, and the launchd and systemd files OpenClaw installs for its gateway. The one exception is the agent's own workspace when it lives inside the state directory, which is OpenClaw's default (`~/.openclaw/workspace`). The workspace `hooks` and `.openclaw` folders always ask, wherever the workspace is, because OpenClaw loads code from them: hooks from `hooks`, and plugins from `.openclaw/extensions`, which it finds before the installed ones. The plugin resolves `~`, `@` references and symlinks before it decides, and lands a relative path in the agent's workspace both as OpenClaw names it and where its links lead. A path it cannot resolve asks, including one through a symbolic link whose target does not exist yet. A file with more than one name, a hard link, asks too, because a write changes it under every name; deleting or moving one asks as well. So does any path that is not plain: one with surrounding whitespace, a URL scheme such as `file://`, a `:` other than in a drive prefix, any of `% ? # < > | * "` or an ASCII control character, because OpenClaw resolves those differently in its default, workspace-only and sandbox setups. On macOS and Windows, a path asks when it, or a folder the plugin compares it with, has a character Node cannot compare the way macOS does, such as one newer than Node's Unicode tables. In a sandbox it does not map an absolute path inside the container, such as `/workspace/hooks/x.js`, to the host folder OpenClaw writes, so such a write does not ask. Writes anywhere else run without asking.
61
61
 
62
62
  To gate more tools, list their OpenClaw tool ids. The list adds to the defaults above; it never replaces them:
63
63
 
@@ -104,7 +104,7 @@ Before anything is sent, the plugin removes what it can recognise as a secret:
104
104
 
105
105
  - Key and token formats it knows: Pushary keys, `sk-` keys (OpenAI, Anthropic), Stripe, GitHub, GitLab, Slack, Google, AWS access key ids, npm, xAI and JWTs, plus private key blocks and long base64-like strings of 40 or more characters.
106
106
  - Passwords in URLs, `Bearer` and `Authorization` values, and the value of anything named like a password, token, secret, API key, access key, client secret or private key. In JSON this holds at any depth, whatever the value.
107
- - For a complete write to a `.env` file (`.env`, `.env.*` or a name ending in `.env`, such as `gateway.env`), Pushary receives the variable names when every line is a comment, blank, or a plain assignment: an uppercase `NAME`, and a value that is unquoted, or quoted on one line with no backslash or inner quote. A file with any other line, such as a value spread over several lines, sends neither names nor values. For an edit or patch, Pushary receives the paths and omits the dotenv change contents because a fragment can start inside a value. A patch that moves a file into or out of a `.env` file omits the contents of every file in it. A path that is not plain, with surrounding whitespace, a URL scheme, a `:` anywhere but in a drive prefix such as `C:\` at the start, or any of `% ? # < > | * "` or an ASCII control character, is treated as a `.env` file, because OpenClaw can resolve it to one. The plugin decides from the path as written and does not follow symbolic or hard links, so a write through a link to a `.env` file is sent as a write to the link. A file change the plugin cannot read is withheld too: a `write` or `edit` whose `path` is a `.env` file, and, when any parameter name or value mentions `.env`, a `write` or `edit` without a `path` or an `apply_patch` whose patch it cannot read. Pushary then receives the path, the names in patch headers that start a line, or `[dotenv file name not sent]`, plus where the call comes from, as listed above, and no other parameter.
107
+ - For a complete write to a `.env` file (`.env`, `.env.*` or a name ending in `.env`, such as `gateway.env`), Pushary receives the variable names when every line is a comment, blank, or a plain assignment: an uppercase `NAME`, and a value that is unquoted, or quoted on one line with no backslash or inner quote. A file with any other line, such as a value spread over several lines, sends neither names nor values. For an edit or patch, Pushary receives the paths and omits the dotenv change contents because a fragment can start inside a value. A patch that moves a file into or out of a `.env` file omits the contents of every file in it. A path that is not plain, with surrounding whitespace, a URL scheme, a `:` anywhere but in a drive prefix such as `C:\` at the start, or any of `% ? # < > | * "` or an ASCII control character, is treated as a `.env` file, because OpenClaw can resolve it to one. This check decides from the path as written and does not follow symbolic or hard links, so a write through a link to a `.env` file is sent as a write to the link. A file change the plugin cannot read is withheld too: a `write` or `edit` whose `path` is a `.env` file, and, when any parameter name or value mentions `.env`, a `write` or `edit` without a `path` or an `apply_patch` whose patch it cannot read. Pushary then receives the path, the names in patch headers that start a line, or `[dotenv file name not sent]`, plus where the call comes from, as listed above, and no other parameter.
108
108
 
109
109
  Redaction works from these patterns. A secret in a command that matches none of them, such as a password with spaces passed to a flag of its own, is sent as written. The plugin leaves the rest of a command as it is so you can see what will run.
110
110
 
@@ -138,7 +138,7 @@ Clean uninstalls the plugin and puts back the `plugins.entries.pushary` settings
138
138
  - A command that runs a script file shows the command, not what the script contains. A call longer than 4,000 characters is blocked, so an agent may split it this way: read the script before you approve it.
139
139
  - This is an approval layer, not a sandbox. Pair it with OpenClaw's own sandboxing and `tools.fs.workspaceOnly`.
140
140
  - The plugin talks only to `https://pushary.com` and `https://www.pushary.com`, the hosts the CLI uses. Any other `PUSHARY_BASE_URL` blocks every gated call, so a changed setting cannot point it at a server that always says yes.
141
- - The plugin is not told which folder a tool runs in. It resolves a relative path against the agent's workspace, any folder inside it, and the gateway's working folder, and a spawned session in any other folder asks first. A run started some other way in a folder inside OpenClaw's state is not covered.
141
+ - The plugin is not told which folder a tool runs in. It resolves a relative path against the agent's workspace, as OpenClaw names it and where its links lead, any folder inside it, and the gateway's working folder, and a spawned session in any other folder asks first. A run started some other way in a folder inside OpenClaw's state is not covered.
142
142
  - Config `$include` files outside the state directory, including roots named by `OPENCLAW_INCLUDE_ROOTS`, are not protected.
143
143
  - Windows has not been tested.
144
144
  - Pushary's tool rules from the dashboard are not evaluated on the machine. Every gated call asks.
@@ -2,7 +2,7 @@ import { homedir } from 'node:os';
2
2
  import { basename, dirname, join } from 'node:path';
3
3
  import { fileURLToPath } from 'node:url';
4
4
  import { openClawEnvironmentOf, openClawPathsFrom, ownedPluginFolderIn } from './openclaw-paths.js';
5
- import { nodeMayBeSymbolicLink, nodeRealpath, spawnsOutsideTheWorkspace, writesIntoOpenClaw } from './protected-writes.js';
5
+ import { nodeHasOtherNames, nodeMayBeSymbolicLink, nodeRealpath, spawnsOutsideTheWorkspace, writesIntoOpenClaw } from './protected-writes.js';
6
6
  import { DEFAULT_OPENCLAW_AGENT_ID } from './settings.js';
7
7
  const CASE_INSENSITIVE_PLATFORMS = new Set(['darwin', 'win32']);
8
8
  const EXTENSIONS_DIRECTORY_NAME = 'extensions';
@@ -84,8 +84,10 @@ export const openClawWriteGuardFor = (api) => {
84
84
  const locations = openClawStateLocationsFor(api, process.env, osHome, fileURLToPath(import.meta.url), process.cwd());
85
85
  const system = {
86
86
  osHome,
87
+ openClawHome: openClawPathsFrom(openClawEnvironmentOf(process.env), osHome).home,
87
88
  realpath: nodeRealpath,
88
89
  mayBeSymbolicLink: nodeMayBeSymbolicLink,
90
+ hasOtherNames: nodeHasOtherNames,
89
91
  caseInsensitive: CASE_INSENSITIVE_PLATFORMS.has(process.platform),
90
92
  workspaceFor: workspaceFrom(api),
91
93
  otherWorkingDirectories: [process.cwd()],
@@ -70,13 +70,15 @@ const comparablePathsFor = (locations, system, agentId) => {
70
70
  const stateDirectories = spellingsOfAll(locations.stateDirectories, system);
71
71
  const workspace = system.workspaceFor(agentId);
72
72
  const workspaceCanonical = workspace === null ? null : canonicalPathOf(workspace, system);
73
+ const comparableWorkspace = workspaceCanonical === null ? null : comparable(workspaceCanonical, system);
73
74
  return {
74
75
  locationsFoldAsTheDiskDoes: !system.caseInsensitive || locationSpellingsOf(locations, system, workspace).every(foldsAsTheDiskDoes),
75
76
  stateDirectories,
76
77
  configFiles: spellingsOfAll(locations.configFiles, system),
77
78
  protectedTrees: spellingsOfAll(locations.protectedTrees, system),
78
79
  serviceFiles: locations.serviceFiles.flatMap(location => spellingsOfLocation(location.directory, system).map(directory => ({ directory, namePrefix: comparable(location.namePrefix, system) }))),
79
- workspace: workspaceCanonical === null ? null : comparable(workspaceCanonical, system),
80
+ workspace: comparableWorkspace,
81
+ workspaceSpellings: workspace === null || comparableWorkspace === null ? [] : [...new Set([comparableWorkspace, resolve(workspace)])],
80
82
  workspaceFoldersOpenClawLoads: WORKSPACE_FOLDERS_OPENCLAW_LOADS.map(folder => comparable(folder, system)),
81
83
  riskyRelativeStarts: new Set([
82
84
  ...locations.stateDirectories.map(state => comparable(basename(state), system)),
@@ -114,7 +116,7 @@ const isProtectedLocation = (path, paths) => {
114
116
  const foldCanBeTrustedFor = (path, paths, system) => !system.caseInsensitive || (paths.locationsFoldAsTheDiskDoes && foldsAsTheDiskDoes(path));
115
117
  const verdictForAbsolute = (path, paths, system) => {
116
118
  const canonical = canonicalPathOf(path, system);
117
- if (canonical === null || !foldCanBeTrustedFor(canonical, paths, system))
119
+ if (canonical === null || system.hasOtherNames(canonical) || !foldCanBeTrustedFor(canonical, paths, system))
118
120
  return 'uncertain';
119
121
  return isProtectedLocation(comparable(canonical, system), paths) ? 'protected' : 'clear';
120
122
  };
@@ -157,11 +159,11 @@ const ancestorsUpTo = (directory, levels) => {
157
159
  ancestors.push(dirname(ancestors[ancestors.length - 1] ?? directory));
158
160
  return ancestors;
159
161
  };
160
- const landingPlacesOf = (relativePath, workspace, others) => {
162
+ const landingPlacesOf = (relativePath, workspaces, others) => {
161
163
  const climbs = leadingClimbsOf(relativePath);
162
164
  const rest = normalize(relativePath).split(/[\\/]/).slice(climbs).join(sep);
163
- const fromInsideTheWorkspace = ancestorsUpTo(workspace, climbs).map(base => join(base, rest));
164
- return [...fromInsideTheWorkspace, resolve(workspace, relativePath), ...others.map(directory => resolve(directory, relativePath))];
165
+ const fromInsideTheWorkspace = workspaces.flatMap(workspace => ancestorsUpTo(workspace, climbs).map(base => join(base, rest)));
166
+ return [...fromInsideTheWorkspace, ...[...workspaces, ...others].map(directory => resolve(directory, relativePath))];
165
167
  };
166
168
  const verdictForPath = (path, paths, system) => {
167
169
  if (isAbsolute(path))
@@ -170,7 +172,7 @@ const verdictForPath = (path, paths, system) => {
170
172
  return 'protected';
171
173
  if (paths.workspace === null)
172
174
  return 'uncertain';
173
- return worstOf(landingPlacesOf(path, paths.workspace, system.otherWorkingDirectories).map(place => verdictForAbsolute(place, paths, system)));
175
+ return worstOf(landingPlacesOf(path, paths.workspaceSpellings, system.otherWorkingDirectories).map(place => verdictForAbsolute(place, paths, system)));
174
176
  };
175
177
  export const withoutHostArgumentTails = (path) => path.replace(HOST_PATH_ARGUMENT_TAILS, '').trim();
176
178
  export const isPlainPath = (path) => {
@@ -227,20 +229,34 @@ export const startsAnAcpSession = (params) => {
227
229
  return typeof runtime === 'string' && runtime.trim().toLowerCase() === ACP_RUNTIME;
228
230
  };
229
231
  const namesAFolderItCannotSee = (params) => SPAWN_SOURCES_IT_CANNOT_SEE.some(name => params[name] !== undefined && params[name] !== false);
230
- const spawnFolderVerdict = (raw, paths, system) => {
231
- if (typeof raw !== 'string' || raw.trim().length === 0 || paths.workspace === null)
232
- return 'uncertain';
233
- const expanded = absoluteOrRelative(raw.trim(), system.osHome);
234
- if (expanded === null)
235
- return 'uncertain';
236
- const canonical = canonicalPathOf(resolve(paths.workspace, expanded), system);
232
+ const spawnFolderReadingsOf = (raw, system) => {
233
+ const readings = [];
234
+ for (const home of [system.osHome, system.openClawHome]) {
235
+ const decoded = absoluteOrRelative(raw, home);
236
+ if (decoded === null)
237
+ return null;
238
+ readings.push(decoded, expandedHome(raw, home));
239
+ }
240
+ return [...new Set(readings)];
241
+ };
242
+ const spawnFolderPlacesOf = (readings, paths, system) => readings.flatMap(reading => [...paths.workspaceSpellings, ...system.otherWorkingDirectories].map(directory => resolve(directory, reading)));
243
+ const spawnPlaceVerdict = (place, paths, system) => {
244
+ const canonical = canonicalPathOf(place, system);
237
245
  if (canonical === null || !foldCanBeTrustedFor(canonical, paths, system))
238
246
  return 'uncertain';
239
247
  const folder = comparable(canonical, system);
240
- if (!isSameOrInside(folder, paths.workspace))
248
+ if (paths.workspace === null || !isSameOrInside(folder, paths.workspace))
241
249
  return 'protected';
242
250
  return isInAWorkspaceFolderOpenClawLoads(folder, paths) ? 'protected' : 'clear';
243
251
  };
252
+ const spawnFolderVerdict = (raw, paths, system) => {
253
+ if (typeof raw !== 'string' || raw.trim().length === 0 || paths.workspace === null)
254
+ return 'uncertain';
255
+ const readings = spawnFolderReadingsOf(raw.trim(), system);
256
+ if (readings === null)
257
+ return 'uncertain';
258
+ return worstOf(spawnFolderPlacesOf(readings, paths, system).map(place => spawnPlaceVerdict(place, paths, system)));
259
+ };
244
260
  export const spawnsOutsideTheWorkspace = (locations, system, call) => {
245
261
  if (call.toolId !== SESSIONS_SPAWN_TOOL)
246
262
  return false;
@@ -260,3 +276,12 @@ export const nodeMayBeSymbolicLink = (path) => {
260
276
  return true;
261
277
  }
262
278
  };
279
+ export const nodeHasOtherNames = (path) => {
280
+ try {
281
+ const entry = lstatSync(path, { throwIfNoEntry: false });
282
+ return entry !== undefined && !entry.isDirectory() && entry.nlink > 1;
283
+ }
284
+ catch {
285
+ return true;
286
+ }
287
+ };
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushary/openclaw",
3
- "version": "0.1.5",
3
+ "version": "0.1.6",
4
4
  "description": "Phone approvals for OpenClaw. Pushary asks you before your AI agent runs a gated tool call, and blocks the call unless you approve it.",
5
5
  "author": "Pushary <business@pushary.com>",
6
6
  "homepage": "https://pushary.com/human-in-the-loop-openclaw",
@@ -21,25 +21,25 @@ import {
21
21
  waitRetryPauseMs,
22
22
  waitsForThePhone,
23
23
  withdrawQuestion
24
- } from "./chunk-RZRBXDGN.js";
24
+ } from "./chunk-PI3L74XD.js";
25
25
  import "./chunk-POFBE6ZY.js";
26
- import "./chunk-ILBNQX44.js";
27
- import "./chunk-YENSTBQI.js";
28
- import "./chunk-635I27L4.js";
29
- import "./chunk-NN2RZ2UB.js";
30
- import "./chunk-IGBKHRCZ.js";
31
- import "./chunk-MN2FFBYE.js";
32
- import "./chunk-ZPFENH7C.js";
33
- import "./chunk-Y3QV3VYX.js";
26
+ import "./chunk-HR67NNCI.js";
27
+ import "./chunk-C2AXJZNA.js";
28
+ import "./chunk-DHMTIS7B.js";
29
+ import "./chunk-N7IF5QJ5.js";
30
+ import "./chunk-SCJZGEYG.js";
31
+ import "./chunk-XG7VMTTL.js";
32
+ import "./chunk-NA2P74E6.js";
33
+ import "./chunk-UCQJA73V.js";
34
34
  import "./chunk-YU2EUD7O.js";
35
35
  import "./chunk-TODDEIYG.js";
36
36
  import "./chunk-BG4HHB7E.js";
37
- import "./chunk-BOJWXETW.js";
37
+ import "./chunk-5FYS2WJI.js";
38
38
  import "./chunk-UQTQ6HPO.js";
39
39
  import {
40
40
  DECISION_STOP_REASON,
41
41
  UNVERIFIABLE_APPROVAL_REASON
42
- } from "./chunk-ZEPOIQ4H.js";
42
+ } from "./chunk-U6XGBWHB.js";
43
43
  import "./chunk-MLKGABMK.js";
44
44
  export {
45
45
  ABANDONED_WAIT,
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  exitOnHelpFlag
4
- } from "../chunk-X7IIWYAG.js";
4
+ } from "../chunk-3AK7A275.js";
5
5
  import {
6
6
  readJsonSafe,
7
7
  writeJsonAtomic
@@ -9,7 +9,7 @@ import {
9
9
  import {
10
10
  EXIT
11
11
  } from "../chunk-BG4HHB7E.js";
12
- import "../chunk-BOJWXETW.js";
12
+ import "../chunk-5FYS2WJI.js";
13
13
  import "../chunk-UQTQ6HPO.js";
14
14
  import {
15
15
  AUDIT_CHAIN_FINDING_SEVERITY,
@@ -22,7 +22,7 @@ import {
22
22
  parseAuditChainExport,
23
23
  parseAuditKnownHead,
24
24
  verifyAuditChainSite
25
- } from "../chunk-ZEPOIQ4H.js";
25
+ } from "../chunk-U6XGBWHB.js";
26
26
  import "../chunk-MLKGABMK.js";
27
27
 
28
28
  // src/audit-verify.ts
@@ -1,45 +1,45 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  handleBell
4
- } from "../chunk-EANTIGY7.js";
4
+ } from "../chunk-NJTMQOLV.js";
5
5
  import {
6
6
  readHookInput
7
- } from "../chunk-3CLLJJJ2.js";
8
- import "../chunk-YQ67XWMM.js";
9
- import "../chunk-LDEZYH7Y.js";
7
+ } from "../chunk-GLPVQBG6.js";
8
+ import "../chunk-GRBUY5ZC.js";
9
+ import "../chunk-GWVT4TQN.js";
10
10
  import "../chunk-WHB622LP.js";
11
- import "../chunk-XRAUQWLP.js";
12
- import "../chunk-YLR6QHCH.js";
13
- import "../chunk-D3KD7K3N.js";
14
- import "../chunk-QV5HMBT4.js";
15
- import "../chunk-X6YYQZW7.js";
16
- import "../chunk-NUHIGW7H.js";
17
- import "../chunk-7WHUMPWM.js";
11
+ import "../chunk-5H7HNGXQ.js";
12
+ import "../chunk-AB265IBW.js";
13
+ import "../chunk-SZYXBY2H.js";
14
+ import "../chunk-4AYUAZEK.js";
15
+ import "../chunk-DRZLGR3F.js";
16
+ import "../chunk-5WH6NFNY.js";
17
+ import "../chunk-EEIYR2PU.js";
18
18
  import "../chunk-YPY4YCIZ.js";
19
- import "../chunk-2KZZZ4JK.js";
19
+ import "../chunk-4Q2BXJKI.js";
20
20
  import "../chunk-352FIVVH.js";
21
- import "../chunk-NYCN3CCK.js";
21
+ import "../chunk-XSHGKPWN.js";
22
22
  import "../chunk-Y6ILCLKE.js";
23
- import "../chunk-C2PGBMTH.js";
24
- import "../chunk-RZRBXDGN.js";
25
- import "../chunk-UM4RAZPH.js";
23
+ import "../chunk-OHB4XCZT.js";
24
+ import "../chunk-PI3L74XD.js";
25
+ import "../chunk-QS5A5WBR.js";
26
26
  import "../chunk-POFBE6ZY.js";
27
- import "../chunk-ILBNQX44.js";
28
- import "../chunk-YENSTBQI.js";
29
- import "../chunk-635I27L4.js";
30
- import "../chunk-NN2RZ2UB.js";
31
- import "../chunk-IGBKHRCZ.js";
32
- import "../chunk-KYBVLSMT.js";
33
- import "../chunk-MTB52RSH.js";
34
- import "../chunk-MN2FFBYE.js";
35
- import "../chunk-ZPFENH7C.js";
36
- import "../chunk-Y3QV3VYX.js";
27
+ import "../chunk-HR67NNCI.js";
28
+ import "../chunk-C2AXJZNA.js";
29
+ import "../chunk-DHMTIS7B.js";
30
+ import "../chunk-N7IF5QJ5.js";
31
+ import "../chunk-SCJZGEYG.js";
32
+ import "../chunk-ZOEMN4PT.js";
33
+ import "../chunk-7FBLMKLW.js";
34
+ import "../chunk-XG7VMTTL.js";
35
+ import "../chunk-NA2P74E6.js";
36
+ import "../chunk-UCQJA73V.js";
37
37
  import "../chunk-YU2EUD7O.js";
38
38
  import "../chunk-TODDEIYG.js";
39
39
  import "../chunk-BG4HHB7E.js";
40
- import "../chunk-BOJWXETW.js";
40
+ import "../chunk-5FYS2WJI.js";
41
41
  import "../chunk-UQTQ6HPO.js";
42
- import "../chunk-ZEPOIQ4H.js";
42
+ import "../chunk-U6XGBWHB.js";
43
43
  import "../chunk-MLKGABMK.js";
44
44
 
45
45
  // bin/pushary-bell-hook.ts
@@ -5,28 +5,28 @@ import {
5
5
  liveAgentCount,
6
6
  ring,
7
7
  upgradeThreshold
8
- } from "../chunk-EANTIGY7.js";
8
+ } from "../chunk-NJTMQOLV.js";
9
9
  import {
10
10
  createIo
11
- } from "../chunk-7HXO72HS.js";
11
+ } from "../chunk-CGNNCVSC.js";
12
12
  import {
13
13
  exitOnHelpFlag
14
- } from "../chunk-X7IIWYAG.js";
14
+ } from "../chunk-3AK7A275.js";
15
15
  import {
16
16
  addBellHooks,
17
17
  bellInstalled,
18
18
  removeBellHooks
19
- } from "../chunk-7WHUMPWM.js";
19
+ } from "../chunk-EEIYR2PU.js";
20
20
  import {
21
21
  parseFlags
22
22
  } from "../chunk-YPY4YCIZ.js";
23
- import "../chunk-KYBVLSMT.js";
24
- import "../chunk-MTB52RSH.js";
23
+ import "../chunk-ZOEMN4PT.js";
24
+ import "../chunk-7FBLMKLW.js";
25
25
  import {
26
26
  claudeSettings
27
- } from "../chunk-MN2FFBYE.js";
28
- import "../chunk-ZPFENH7C.js";
29
- import "../chunk-Y3QV3VYX.js";
27
+ } from "../chunk-XG7VMTTL.js";
28
+ import "../chunk-NA2P74E6.js";
29
+ import "../chunk-UCQJA73V.js";
30
30
  import "../chunk-YU2EUD7O.js";
31
31
  import {
32
32
  readJsonSafe,
@@ -35,11 +35,11 @@ import {
35
35
  import {
36
36
  EXIT
37
37
  } from "../chunk-BG4HHB7E.js";
38
- import "../chunk-BOJWXETW.js";
38
+ import "../chunk-5FYS2WJI.js";
39
39
  import "../chunk-UQTQ6HPO.js";
40
40
  import {
41
41
  isRecord
42
- } from "../chunk-ZEPOIQ4H.js";
42
+ } from "../chunk-U6XGBWHB.js";
43
43
  import "../chunk-MLKGABMK.js";
44
44
 
45
45
  // bin/pushary-bell.ts
@@ -1,31 +1,31 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  exitOnFailedResponse
4
- } from "../chunk-OJRX6UVD.js";
5
- import "../chunk-7JO3NNIQ.js";
6
- import "../chunk-2J3IIFS3.js";
4
+ } from "../chunk-Y6QXHWZZ.js";
5
+ import "../chunk-FZLALNEW.js";
6
+ import "../chunk-B6MT6HZQ.js";
7
7
  import {
8
8
  createIo
9
- } from "../chunk-7HXO72HS.js";
9
+ } from "../chunk-CGNNCVSC.js";
10
10
  import {
11
11
  exitOnHelpFlag
12
- } from "../chunk-X7IIWYAG.js";
12
+ } from "../chunk-3AK7A275.js";
13
13
  import {
14
14
  parseFlags
15
15
  } from "../chunk-YPY4YCIZ.js";
16
- import "../chunk-635I27L4.js";
16
+ import "../chunk-DHMTIS7B.js";
17
17
  import {
18
18
  pusharyFetch
19
- } from "../chunk-NN2RZ2UB.js";
20
- import "../chunk-IGBKHRCZ.js";
21
- import "../chunk-KYBVLSMT.js";
22
- import "../chunk-MTB52RSH.js";
23
- import "../chunk-MN2FFBYE.js";
24
- import "../chunk-ZPFENH7C.js";
19
+ } from "../chunk-N7IF5QJ5.js";
20
+ import "../chunk-SCJZGEYG.js";
21
+ import "../chunk-ZOEMN4PT.js";
22
+ import "../chunk-7FBLMKLW.js";
23
+ import "../chunk-XG7VMTTL.js";
24
+ import "../chunk-NA2P74E6.js";
25
25
  import {
26
26
  getApiKey,
27
27
  getBaseUrl
28
- } from "../chunk-Y3QV3VYX.js";
28
+ } from "../chunk-UCQJA73V.js";
29
29
  import {
30
30
  UsageError,
31
31
  exitCodeFor
@@ -36,14 +36,14 @@ import {
36
36
  } from "../chunk-BG4HHB7E.js";
37
37
  import {
38
38
  isInvocationOf
39
- } from "../chunk-BOJWXETW.js";
39
+ } from "../chunk-5FYS2WJI.js";
40
40
  import "../chunk-UQTQ6HPO.js";
41
41
  import {
42
42
  PHONE_CALL_SETUP_PATH,
43
43
  PHONE_CALL_SETUP_TEST_CALL_PARAM,
44
44
  parsePhoneCallSetupReply,
45
45
  parseTestCallReply
46
- } from "../chunk-ZEPOIQ4H.js";
46
+ } from "../chunk-U6XGBWHB.js";
47
47
  import "../chunk-MLKGABMK.js";
48
48
 
49
49
  // bin/pushary-calls.ts
@@ -6,30 +6,30 @@ import {
6
6
  import {
7
7
  CommandReceipts,
8
8
  controllerCommandSchema
9
- } from "../chunk-7TQXWAOZ.js";
9
+ } from "../chunk-57JWFFEI.js";
10
10
  import {
11
11
  SESSION_IDLE_TIMEOUT_MS,
12
12
  describeIdleWindow,
13
13
  startProcessOwnership,
14
14
  withSpawnProcessOwnership
15
- } from "../chunk-6QLOTNO2.js";
15
+ } from "../chunk-3FQGK5XX.js";
16
16
  import "../chunk-CYTPQDQY.js";
17
17
  import {
18
18
  announceSubscriptionRequired,
19
19
  isDeferAnswer
20
- } from "../chunk-IEENAYGT.js";
20
+ } from "../chunk-P4KKTV6I.js";
21
21
  import {
22
22
  claudeTranscriptPath,
23
23
  redactDraft,
24
24
  registerTranscript,
25
25
  registeredTranscriptEnabled,
26
26
  startDraftPublisher
27
- } from "../chunk-LDEZYH7Y.js";
27
+ } from "../chunk-GWVT4TQN.js";
28
28
  import "../chunk-WHB622LP.js";
29
29
  import {
30
30
  ensureDaemonRunning
31
- } from "../chunk-YLR6QHCH.js";
32
- import "../chunk-D3KD7K3N.js";
31
+ } from "../chunk-AB265IBW.js";
32
+ import "../chunk-SZYXBY2H.js";
33
33
  import {
34
34
  DEFAULT_SESSION,
35
35
  PHONE_DRIVER,
@@ -44,24 +44,24 @@ import {
44
44
  removePendingCommand,
45
45
  reportEvent,
46
46
  savePendingCommand
47
- } from "../chunk-QV5HMBT4.js";
47
+ } from "../chunk-4AYUAZEK.js";
48
48
  import {
49
49
  UNNAMED_ACTION,
50
50
  deriveToolTarget,
51
51
  describeStopFailure,
52
52
  describeToolCall,
53
53
  scopePathFor
54
- } from "../chunk-X6YYQZW7.js";
55
- import "../chunk-NUHIGW7H.js";
56
- import "../chunk-7WHUMPWM.js";
54
+ } from "../chunk-DRZLGR3F.js";
55
+ import "../chunk-5WH6NFNY.js";
56
+ import "../chunk-EEIYR2PU.js";
57
57
  import "../chunk-YPY4YCIZ.js";
58
- import "../chunk-2KZZZ4JK.js";
58
+ import "../chunk-4Q2BXJKI.js";
59
59
  import {
60
60
  external_exports
61
61
  } from "../chunk-352FIVVH.js";
62
62
  import {
63
63
  transcriptsEnabled
64
- } from "../chunk-NYCN3CCK.js";
64
+ } from "../chunk-XSHGKPWN.js";
65
65
  import {
66
66
  needsShell,
67
67
  spawnClaude
@@ -69,7 +69,7 @@ import {
69
69
  import {
70
70
  repoKeyFor,
71
71
  repositoryScopeFor
72
- } from "../chunk-C2PGBMTH.js";
72
+ } from "../chunk-OHB4XCZT.js";
73
73
  import {
74
74
  askUser,
75
75
  cancelQuestion,
@@ -83,39 +83,39 @@ import {
83
83
  waitRetryPauseMs,
84
84
  waitsForThePhone,
85
85
  withdrawQuestion
86
- } from "../chunk-RZRBXDGN.js";
86
+ } from "../chunk-PI3L74XD.js";
87
87
  import {
88
88
  RETRY_ACK,
89
89
  commandAckIsFinal,
90
90
  readCommandAck,
91
91
  refusedReceiptMessage
92
- } from "../chunk-UM4RAZPH.js";
92
+ } from "../chunk-QS5A5WBR.js";
93
93
  import "../chunk-POFBE6ZY.js";
94
94
  import {
95
95
  SubscriptionRequiredError
96
- } from "../chunk-ILBNQX44.js";
97
- import "../chunk-YENSTBQI.js";
98
- import "../chunk-635I27L4.js";
99
- import "../chunk-NN2RZ2UB.js";
96
+ } from "../chunk-HR67NNCI.js";
97
+ import "../chunk-C2AXJZNA.js";
98
+ import "../chunk-DHMTIS7B.js";
99
+ import "../chunk-N7IF5QJ5.js";
100
100
  import {
101
101
  getMachineId
102
- } from "../chunk-IGBKHRCZ.js";
103
- import "../chunk-KYBVLSMT.js";
104
- import "../chunk-MTB52RSH.js";
102
+ } from "../chunk-SCJZGEYG.js";
103
+ import "../chunk-ZOEMN4PT.js";
104
+ import "../chunk-7FBLMKLW.js";
105
105
  import {
106
106
  claudeConfigDir
107
- } from "../chunk-MN2FFBYE.js";
108
- import "../chunk-ZPFENH7C.js";
107
+ } from "../chunk-XG7VMTTL.js";
108
+ import "../chunk-NA2P74E6.js";
109
109
  import {
110
110
  getApiKey,
111
111
  getBaseUrl
112
- } from "../chunk-Y3QV3VYX.js";
112
+ } from "../chunk-UCQJA73V.js";
113
113
  import "../chunk-YU2EUD7O.js";
114
114
  import "../chunk-TODDEIYG.js";
115
115
  import "../chunk-BG4HHB7E.js";
116
116
  import {
117
117
  NPX_LATEST_COMMAND
118
- } from "../chunk-BOJWXETW.js";
118
+ } from "../chunk-5FYS2WJI.js";
119
119
  import "../chunk-UQTQ6HPO.js";
120
120
  import {
121
121
  DECISION_STOP_REASON,
@@ -129,7 +129,7 @@ import {
129
129
  refusesWhenUnanswered,
130
130
  resolveGate,
131
131
  timeoutActionWithoutLocalPrompt
132
- } from "../chunk-ZEPOIQ4H.js";
132
+ } from "../chunk-U6XGBWHB.js";
133
133
  import "../chunk-MLKGABMK.js";
134
134
 
135
135
  // src/wrapper/localPassthrough.ts