pushary 1.9.200 → 1.9.205

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 (144) hide show
  1. package/CHANGELOG.md +28 -0
  2. package/dist/{api-OUFAFWVY.js → api-PO372R5F.js} +13 -11
  3. package/dist/bin/pushary-audit.js +3 -3
  4. package/dist/bin/pushary-bell-hook.js +28 -28
  5. package/dist/bin/pushary-bell.js +12 -12
  6. package/dist/bin/pushary-calls.js +15 -15
  7. package/dist/bin/pushary-claude.js +27 -27
  8. package/dist/bin/pushary-clean.js +39 -39
  9. package/dist/bin/pushary-codex-bridge.js +23 -23
  10. package/dist/bin/pushary-codex-hook.js +51 -52
  11. package/dist/bin/pushary-codex-session.js +8 -8
  12. package/dist/bin/pushary-codex.js +16 -16
  13. package/dist/bin/pushary-connect.js +35 -35
  14. package/dist/bin/pushary-cowork.js +5 -5
  15. package/dist/bin/pushary-daemon.js +47 -47
  16. package/dist/bin/pushary-disconnect.js +30 -30
  17. package/dist/bin/pushary-doctor.js +47 -47
  18. package/dist/bin/pushary-elicitation-hook.js +29 -29
  19. package/dist/bin/pushary-gemini-bridge.js +18 -18
  20. package/dist/bin/pushary-gemini-hook.js +32 -32
  21. package/dist/bin/pushary-hook.js +36 -36
  22. package/dist/bin/pushary-login.js +22 -22
  23. package/dist/bin/pushary-logout.js +30 -30
  24. package/dist/bin/pushary-mcp.js +12 -12
  25. package/dist/bin/pushary-mode.js +16 -16
  26. package/dist/bin/pushary-notification-hook.js +27 -27
  27. package/dist/bin/pushary-opencode-bridge.js +22 -22
  28. package/dist/bin/pushary-opencode-hook.js +34 -34
  29. package/dist/bin/pushary-permission-denied-hook.js +36 -36
  30. package/dist/bin/pushary-permission-hook.js +36 -36
  31. package/dist/bin/pushary-post-hook.js +28 -28
  32. package/dist/bin/pushary-prompt-hook.js +27 -27
  33. package/dist/bin/pushary-session-end-hook.js +27 -27
  34. package/dist/bin/pushary-session-start-hook.js +40 -40
  35. package/dist/bin/pushary-sessions.js +14 -14
  36. package/dist/bin/pushary-setup.js +59 -59
  37. package/dist/bin/pushary-stats.js +5 -5
  38. package/dist/bin/pushary-status.js +36 -36
  39. package/dist/bin/pushary-stop-hook.js +27 -27
  40. package/dist/bin/pushary-stopfailure-hook.js +27 -27
  41. package/dist/bin/pushary-suggestions.js +16 -16
  42. package/dist/bin/pushary-transcript-register.js +17 -17
  43. package/dist/bin/pushary-transcripts.js +25 -25
  44. package/dist/bin/pushary-upgrade.js +47 -47
  45. package/dist/bin/pushary-wait.js +16 -16
  46. package/dist/bin/pushary.js +7 -7
  47. package/dist/{chunk-LECDW27E.js → chunk-2KNKPMWO.js} +1 -1
  48. package/dist/{chunk-TZD42VJP.js → chunk-2RJQKHS2.js} +5 -5
  49. package/dist/{chunk-HN6ABA2B.js → chunk-2WHNR3ER.js} +6 -4
  50. package/dist/{chunk-LEUQ37WR.js → chunk-2Y7MJQCN.js} +2 -2
  51. package/dist/{chunk-LGV3U2KK.js → chunk-322DR4ZT.js} +1 -1
  52. package/dist/{chunk-WRZFEG6A.js → chunk-34YI42UX.js} +3 -3
  53. package/dist/{chunk-UQOEZQ6G.js → chunk-3DGWT6EY.js} +2 -2
  54. package/dist/{chunk-3XSDSKAX.js → chunk-3NGBANTY.js} +1 -1
  55. package/dist/{chunk-HQUYQOWZ.js → chunk-3W5OVQ66.js} +2 -2
  56. package/dist/{chunk-7SCBP4U7.js → chunk-3WPXWHEM.js} +9 -9
  57. package/dist/{chunk-RXNQ3GJM.js → chunk-52OHO3HH.js} +1 -1
  58. package/dist/{chunk-MRG7AEJA.js → chunk-5JRBOJYW.js} +1 -1
  59. package/dist/{chunk-DGZYM676.js → chunk-6LQEDP2W.js} +1 -1
  60. package/dist/{chunk-I4EHOHYH.js → chunk-75MSER3U.js} +1 -1
  61. package/dist/{chunk-RMWPSYJG.js → chunk-7SNBOQDD.js} +2 -2
  62. package/dist/{chunk-WFE2YHWQ.js → chunk-7YB4UGGI.js} +2 -2
  63. package/dist/{chunk-HIPEE6RH.js → chunk-AISKZTFX.js} +4 -4
  64. package/dist/{chunk-FUY7TPTQ.js → chunk-AORWV5JK.js} +1 -1
  65. package/dist/{chunk-UUMBN6AU.js → chunk-B4J3OPKE.js} +2 -2
  66. package/dist/{chunk-QOV5MVKT.js → chunk-BDVSELVT.js} +4 -4
  67. package/dist/{chunk-OPBYHXZP.js → chunk-CBBRVY77.js} +1 -1
  68. package/dist/{chunk-MOCDN7B3.js → chunk-CFPJRYNK.js} +1 -1
  69. package/dist/{chunk-247LVLEC.js → chunk-CQJ7567M.js} +3 -3
  70. package/dist/{chunk-AQB2LUX5.js → chunk-CRCC65FU.js} +11 -11
  71. package/dist/{chunk-JFUTFHB6.js → chunk-D7LVY2XF.js} +6 -6
  72. package/dist/{chunk-UJERPPET.js → chunk-DGNQLVYO.js} +2 -2
  73. package/dist/{chunk-FR7XIHSN.js → chunk-DNCH65TL.js} +10 -10
  74. package/dist/{chunk-XQNSJWFD.js → chunk-E3VDRPOZ.js} +5 -5
  75. package/dist/{chunk-Q7W4TEWC.js → chunk-ETPJJ6Y6.js} +3 -3
  76. package/dist/{chunk-PWJ2YNLB.js → chunk-HNSTXU6Y.js} +1 -1
  77. package/dist/{chunk-4DTKZQKO.js → chunk-HS4RZZRG.js} +1 -1
  78. package/dist/{chunk-F75727GN.js → chunk-HTMMJASM.js} +33 -6
  79. package/dist/{chunk-A6TVXDTE.js → chunk-HXLCATVW.js} +2 -2
  80. package/dist/{chunk-LS2VJJFJ.js → chunk-IKUJZYFH.js} +19 -12
  81. package/dist/{chunk-4SHFFJTL.js → chunk-JWXEPWQ6.js} +7 -7
  82. package/dist/{chunk-JKD642VE.js → chunk-JZOXTGTD.js} +3 -3
  83. package/dist/{chunk-SYO4XLTG.js → chunk-KH3U44ZK.js} +7 -3
  84. package/dist/{chunk-SUUATETY.js → chunk-KNCMUCKG.js} +1 -1
  85. package/dist/{chunk-I3ZOD5I4.js → chunk-LWWFQHJR.js} +3 -3
  86. package/dist/{chunk-5STI67CK.js → chunk-MGAEFOGL.js} +5 -5
  87. package/dist/{chunk-B3STTU5D.js → chunk-MP3IANXU.js} +22 -6
  88. package/dist/{chunk-X3TBNXPX.js → chunk-MX6HK3UN.js} +3 -3
  89. package/dist/{chunk-XTFN2YTA.js → chunk-N4QFPPSM.js} +3 -3
  90. package/dist/{chunk-6ZYUYRR2.js → chunk-N62TAZJE.js} +3 -3
  91. package/dist/{chunk-RHQ5FDU4.js → chunk-OOE354IG.js} +29 -11
  92. package/dist/{chunk-PHFQV5MO.js → chunk-OXGT7OTC.js} +63 -24
  93. package/dist/{chunk-WHDNAGFI.js → chunk-P4RSWFWB.js} +5 -5
  94. package/dist/{chunk-JTZMPMXH.js → chunk-PGGYS32J.js} +1 -1
  95. package/dist/{chunk-YGRPTTER.js → chunk-POVKTTKE.js} +2 -2
  96. package/dist/{chunk-KCSTT6KQ.js → chunk-PTHC2H7E.js} +1 -1
  97. package/dist/{chunk-72EKTJ2U.js → chunk-PW7WIT6J.js} +5 -5
  98. package/dist/{chunk-23W7FAZL.js → chunk-QKCWDUQQ.js} +5 -5
  99. package/dist/{chunk-BYYU5QS3.js → chunk-QSVIT62Y.js} +1 -1
  100. package/dist/{chunk-TQDTYV27.js → chunk-QZZU4VHH.js} +1 -1
  101. package/dist/{chunk-M2S6BBSR.js → chunk-R6XDTP7G.js} +6 -6
  102. package/dist/{chunk-2SHEWMGU.js → chunk-R7ZVCOXR.js} +2 -2
  103. package/dist/{chunk-ZEVNSFFV.js → chunk-RBKBFQ3D.js} +4 -4
  104. package/dist/{chunk-AXJCUWLD.js → chunk-RDFQOEPF.js} +6 -6
  105. package/dist/{chunk-YB64X4IQ.js → chunk-RG3REA2Y.js} +1 -1
  106. package/dist/{chunk-WGGEF3XC.js → chunk-RGPYEMW5.js} +5 -5
  107. package/dist/{chunk-O4E4ISTO.js → chunk-RILOBL2B.js} +2 -2
  108. package/dist/{chunk-SJUE6CFP.js → chunk-RJTCIOHI.js} +6 -4
  109. package/dist/{chunk-VEOVR6Z2.js → chunk-RMNOELSS.js} +1 -1
  110. package/dist/{chunk-LXWHMYOS.js → chunk-RYT23NAI.js} +3 -3
  111. package/dist/{chunk-RDECWGBJ.js → chunk-SCZELAXA.js} +1 -1
  112. package/dist/{chunk-P4VF3DZW.js → chunk-SH2WBJ5M.js} +1 -1
  113. package/dist/{chunk-3RUQKPHU.js → chunk-SHYBUXSP.js} +7 -7
  114. package/dist/{chunk-XKFL7XBP.js → chunk-SXMJ7NAN.js} +1 -1
  115. package/dist/{chunk-CDWR23BU.js → chunk-T5RPPEUL.js} +10 -10
  116. package/dist/{chunk-VCTMCQCU.js → chunk-TTE7QIW5.js} +2 -2
  117. package/dist/{chunk-CFWOZBUQ.js → chunk-UQQE37KU.js} +6 -6
  118. package/dist/{chunk-OMJ6ISJW.js → chunk-VLSSUMFC.js} +2 -2
  119. package/dist/{chunk-6KMMY7DI.js → chunk-W6KQY5RJ.js} +5 -5
  120. package/dist/{chunk-VU7LK6KI.js → chunk-WFUWF4QY.js} +24 -19
  121. package/dist/{chunk-2BVH7JC7.js → chunk-WIN65UQX.js} +13 -13
  122. package/dist/{chunk-DQGTFUXX.js → chunk-X2ITLLIV.js} +5 -5
  123. package/dist/{chunk-DFA42X45.js → chunk-XEFPE5MQ.js} +4 -4
  124. package/dist/{chunk-QM3YURHW.js → chunk-YC3MEGKX.js} +3 -3
  125. package/dist/{chunk-ECG372D5.js → chunk-YUQAIO4Z.js} +1 -1
  126. package/dist/{chunk-57E7NOZO.js → chunk-ZERUCHT6.js} +4 -4
  127. package/dist/{chunk-FWPN4AHK.js → chunk-ZEXFK5YS.js} +4 -4
  128. package/dist/{chunk-OK3GVZNU.js → chunk-ZQ4YBCVO.js} +2 -2
  129. package/dist/{codex-app-cards-switch-WV7RKIVN.js → codex-app-cards-switch-MO5LT4NK.js} +11 -11
  130. package/dist/{codex-card-routing-HQRJF2NY.js → codex-card-routing-7NYNHVLU.js} +2 -2
  131. package/dist/{codex-desktop-launch-LDA7CWEX.js → codex-desktop-launch-JBQBWPED.js} +1 -1
  132. package/dist/{codex-session-launch-LS75CYUV.js → codex-session-launch-N7PFVCBO.js} +20 -20
  133. package/dist/{config-WFIMGEI5.js → config-NJ6EGXZF.js} +3 -3
  134. package/dist/{global-upgrade-XMQVRK7X.js → global-upgrade-XTTSGSGC.js} +9 -9
  135. package/dist/{identity-J5O4WLQQ.js → identity-6BMMEYWU.js} +4 -4
  136. package/dist/{live-capabilities-JMVAIHR3.js → live-capabilities-4TXTJ7R2.js} +4 -4
  137. package/dist/{paths-OFQDG25M.js → paths-IIV4U3NA.js} +3 -3
  138. package/dist/reapply-EPHMTGFP.js +75 -0
  139. package/dist/src/index.d.ts +4 -0
  140. package/dist/src/index.js +35 -35
  141. package/dist/{upgrade-lock-77W22ICV.js → upgrade-lock-HZ66QJKL.js} +4 -4
  142. package/dist/{usage-MQWUFNYJ.js → usage-NEZ2357Z.js} +3 -3
  143. package/package.json +1 -1
  144. package/dist/reapply-JTMPSOEG.js +0 -75
@@ -1,33 +1,33 @@
1
1
  import {
2
2
  MANAGED_CLAUDE_SETTINGS_BY_PLATFORM
3
- } from "./chunk-VCTMCQCU.js";
3
+ } from "./chunk-TTE7QIW5.js";
4
4
  import {
5
5
  declinedAgentsFile,
6
6
  readDeclinedAgents
7
- } from "./chunk-LEUQ37WR.js";
7
+ } from "./chunk-2Y7MJQCN.js";
8
8
  import {
9
9
  OPENCODE_HOOK_BINARY,
10
10
  openCodeConfigDir,
11
11
  openCodePluginFile
12
- } from "./chunk-3RUQKPHU.js";
12
+ } from "./chunk-SHYBUXSP.js";
13
13
  import {
14
14
  openCodePluginArgv
15
- } from "./chunk-XKFL7XBP.js";
15
+ } from "./chunk-SXMJ7NAN.js";
16
16
  import {
17
17
  liveCursorGateCoverage
18
- } from "./chunk-FWPN4AHK.js";
18
+ } from "./chunk-ZEXFK5YS.js";
19
19
  import {
20
20
  compatibleConfigFile,
21
21
  compatibleHookEvents,
22
22
  grokHome,
23
23
  parseConfigDocument
24
- } from "./chunk-5STI67CK.js";
24
+ } from "./chunk-MGAEFOGL.js";
25
25
  import {
26
26
  DEFAULT_HOOKS_KEY_PATH,
27
27
  GEMINI_HOOK_BINARY,
28
28
  GEMINI_HOOK_EVENTS,
29
29
  hooksAt
30
- } from "./chunk-ZEVNSFFV.js";
30
+ } from "./chunk-RBKBFQ3D.js";
31
31
  import {
32
32
  CODEX_EARLIER_APPROVAL_MATCHERS,
33
33
  CODEX_HOOK_BINARY,
@@ -55,7 +55,7 @@ import {
55
55
  parseHookArgv,
56
56
  parseHookCommand,
57
57
  supportedClaudeEvents
58
- } from "./chunk-A6TVXDTE.js";
58
+ } from "./chunk-HXLCATVW.js";
59
59
  import {
60
60
  readRegularJsonFile,
61
61
  readRegularTextFile
@@ -69,7 +69,7 @@ import {
69
69
  OPENCODE_APPROVAL_EVENT,
70
70
  isRecord,
71
71
  matcherMatchesEveryCall
72
- } from "./chunk-F75727GN.js";
72
+ } from "./chunk-HTMMJASM.js";
73
73
 
74
74
  // src/hook-wiring.ts
75
75
  import { createHash } from "crypto";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  HOOK_HOLD_BUDGET_ENV,
3
3
  hookHoldBudgetProof
4
- } from "./chunk-F75727GN.js";
4
+ } from "./chunk-HTMMJASM.js";
5
5
 
6
6
  // src/hold-budget.ts
7
7
  var takeHookHoldBudget = (args = process.argv.slice(2), env = process.env) => {
@@ -2,7 +2,7 @@ import {
2
2
  localRepoKey,
3
3
  normalizeRepoRemote,
4
4
  parseGitBranch
5
- } from "./chunk-F75727GN.js";
5
+ } from "./chunk-HTMMJASM.js";
6
6
 
7
7
  // src/repo.ts
8
8
  import { existsSync, readFileSync, statSync } from "fs";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  pusharyDir
3
- } from "./chunk-A6TVXDTE.js";
3
+ } from "./chunk-HXLCATVW.js";
4
4
  import {
5
5
  writeFileAtomic
6
6
  } from "./chunk-PM2NRK6Y.js";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  computerOsOfPlatform,
3
3
  isComputerAgent
4
- } from "./chunk-F75727GN.js";
4
+ } from "./chunk-HTMMJASM.js";
5
5
 
6
6
  // src/setup/phone-check.ts
7
7
  var planPhoneCheck = (context) => {
@@ -4,10 +4,10 @@ import {
4
4
  keyPrefix,
5
5
  readConfigFileKey,
6
6
  readMacAppKeyPrefix
7
- } from "./chunk-LXWHMYOS.js";
7
+ } from "./chunk-RYT23NAI.js";
8
8
  import {
9
9
  NPX_LATEST_COMMAND
10
- } from "./chunk-RDECWGBJ.js";
10
+ } from "./chunk-SCZELAXA.js";
11
11
 
12
12
  // src/key-signed-out.ts
13
13
  var VERDICT_BY_CHECK = {
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  absoluteUrl
3
- } from "./chunk-QM3YURHW.js";
3
+ } from "./chunk-YC3MEGKX.js";
4
4
  import {
5
5
  KEY_SCOPE
6
- } from "./chunk-F75727GN.js";
6
+ } from "./chunk-HTMMJASM.js";
7
7
 
8
8
  // src/cli/approval-settings-pages.ts
9
9
  var API_KEYS_PATH = "/dashboard/agent/settings";
@@ -1,17 +1,17 @@
1
1
  import {
2
2
  compatibleConfigFile,
3
3
  hasCompatibleHooks
4
- } from "./chunk-5STI67CK.js";
4
+ } from "./chunk-MGAEFOGL.js";
5
5
  import {
6
6
  pusharyHookExecutable
7
- } from "./chunk-ZEVNSFFV.js";
7
+ } from "./chunk-RBKBFQ3D.js";
8
8
  import {
9
9
  isProtectedByScope,
10
10
  registerHookEntry
11
- } from "./chunk-A6TVXDTE.js";
11
+ } from "./chunk-HXLCATVW.js";
12
12
  import {
13
13
  isRecord
14
- } from "./chunk-F75727GN.js";
14
+ } from "./chunk-HTMMJASM.js";
15
15
 
16
16
  // src/cursor-config.ts
17
17
  var hookCommandOf = (entry) => {
@@ -9,7 +9,7 @@ import {
9
9
  isSetupConnectMode,
10
10
  isValidApiKey,
11
11
  normalizeAgentId
12
- } from "./chunk-F75727GN.js";
12
+ } from "./chunk-HTMMJASM.js";
13
13
 
14
14
  // src/setup/options.ts
15
15
  var AGENT_CHOICES = SETUP_AGENT_CHOICES;
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  configFilePath
3
- } from "./chunk-YB64X4IQ.js";
3
+ } from "./chunk-RG3REA2Y.js";
4
4
  import {
5
5
  normalizeInstallSource
6
- } from "./chunk-F75727GN.js";
6
+ } from "./chunk-HTMMJASM.js";
7
7
 
8
8
  // src/install-source.ts
9
9
  import { readFileSync } from "fs";
@@ -4,21 +4,21 @@ import {
4
4
  claimThrottle,
5
5
  releaseThrottle,
6
6
  reportEvent
7
- } from "./chunk-PHFQV5MO.js";
7
+ } from "./chunk-OXGT7OTC.js";
8
8
  import {
9
9
  deriveToolTarget,
10
10
  permissionDeniedAction
11
- } from "./chunk-4DTKZQKO.js";
11
+ } from "./chunk-HS4RZZRG.js";
12
12
  import {
13
13
  projectNameFor
14
- } from "./chunk-MRG7AEJA.js";
14
+ } from "./chunk-5JRBOJYW.js";
15
15
  import {
16
16
  PERMISSION_ALLOWED_EVENT,
17
17
  PERMISSION_DENIED_EVENT,
18
18
  machineApprovalFor,
19
19
  machineDecisionFor,
20
20
  wireVerdictFor
21
- } from "./chunk-F75727GN.js";
21
+ } from "./chunk-HTMMJASM.js";
22
22
 
23
23
  // src/machine-decision-audit.ts
24
24
  var MACHINE_DECISION_REPORT_TIMEOUT_MS = 800;
@@ -7,7 +7,7 @@ import {
7
7
  } from "./chunk-BG4HHB7E.js";
8
8
  import {
9
9
  redactSecretsFromContent
10
- } from "./chunk-F75727GN.js";
10
+ } from "./chunk-HTMMJASM.js";
11
11
 
12
12
  // src/cli/json.ts
13
13
  var buildEnvelope = (command, version, data, errors = []) => ({
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  isSafeReadOnlyCommand
3
- } from "./chunk-F75727GN.js";
3
+ } from "./chunk-HTMMJASM.js";
4
4
 
5
5
  // src/ledger.ts
6
6
  import { appendFileSync, existsSync, mkdirSync, readFileSync, renameSync, rmSync, statSync } from "fs";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  realpath
3
- } from "./chunk-OK3GVZNU.js";
3
+ } from "./chunk-ZQ4YBCVO.js";
4
4
  import {
5
5
  findNativeClaudeInstall
6
6
  } from "./chunk-TCE3J44Z.js";
@@ -12,7 +12,7 @@ import {
12
12
  resolvePackageVersionFromBinary,
13
13
  resolvePathBinary,
14
14
  resolvePathBinaryAsync
15
- } from "./chunk-B3STTU5D.js";
15
+ } from "./chunk-MP3IANXU.js";
16
16
  import {
17
17
  AGENTS,
18
18
  CLAUDE_BRIDGE_CAPABILITY,
@@ -25,7 +25,7 @@ import {
25
25
  OPENCODE_BRIDGE_CAPABILITY,
26
26
  SPAWN_CAPABILITY,
27
27
  sessionProvidersAdvertisedBy
28
- } from "./chunk-F75727GN.js";
28
+ } from "./chunk-HTMMJASM.js";
29
29
 
30
30
  // src/live-capabilities.ts
31
31
  import { execFileSync } from "child_process";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  announceSubscriptionRequired,
3
3
  isDeferAnswer
4
- } from "./chunk-ECG372D5.js";
4
+ } from "./chunk-YUQAIO4Z.js";
5
5
  import {
6
6
  askUser,
7
7
  isDecisionStopped,
@@ -9,13 +9,13 @@ import {
9
9
  isThePersonsStop,
10
10
  waitForOpenQuestion,
11
11
  waitForQuestion
12
- } from "./chunk-LS2VJJFJ.js";
12
+ } from "./chunk-IKUJZYFH.js";
13
13
  import {
14
14
  SubscriptionRequiredError
15
- } from "./chunk-DQGTFUXX.js";
15
+ } from "./chunk-X2ITLLIV.js";
16
16
  import {
17
17
  getMachineId
18
- } from "./chunk-DGZYM676.js";
18
+ } from "./chunk-6LQEDP2W.js";
19
19
  import {
20
20
  ASK_CONTEXT_MAX,
21
21
  agentQuestionContext,
@@ -26,7 +26,7 @@ import {
26
26
  parseAgentQuestionAnswers,
27
27
  plainAskOf,
28
28
  questionsShownAsASet
29
- } from "./chunk-F75727GN.js";
29
+ } from "./chunk-HTMMJASM.js";
30
30
 
31
31
  // src/agent-question-ask.ts
32
32
  var ONLY_QUESTION = { index: 0, total: 1 };
@@ -69,8 +69,8 @@ var questionContext = (question, index, total, project) => {
69
69
  };
70
70
  var legacyAnswerMap = (question, value) => JSON.stringify({ [question.question]: question.multiSelect ? JSON.stringify([value]) : value });
71
71
  var answerInTheEarlierForm = (question, value) => isTypedAnswerQuestion(question) ? null : parseAgentQuestionAnswers([question], legacyAnswerMap(question, value));
72
- var answersOnOneCard = (question, value) => answersToQuestionsAsAsked([question], value) ?? answerInTheEarlierForm(question, value);
73
- var answersToTheCard = (question, value) => richCardOf(question) ? answersToQuestionsAsAsked([question], value) : answersOnOneCard(question, value);
72
+ var answersOnOneCard = (question, value, typedAnswer = false) => answersToQuestionsAsAsked([question], value, typedAnswer) ?? answerInTheEarlierForm(question, value);
73
+ var answersToTheCard = (question, value, typedAnswer = false) => richCardOf(question) ? answersToQuestionsAsAsked([question], value, typedAnswer) : answersOnOneCard(question, value, typedAnswer);
74
74
  var oneCardAsk = (call, only, position = ONLY_QUESTION) => ({
75
75
  question: only.question,
76
76
  ...cardOf(only),
@@ -82,8 +82,8 @@ var oneCardAsk = (call, only, position = ONLY_QUESTION) => ({
82
82
  toolUseId: positionedToolUseId(call.toolUseId, position)
83
83
  });
84
84
  var outcomeOfOneCardAnswer = (only, answer) => {
85
- const values = answer.answered && answer.value ? answersToTheCard(only, answer.value) : null;
86
- if (!values || isDeferAnswer(answer.value)) {
85
+ const values = answer.answered && answer.value ? answersToTheCard(only, answer.value, answer.typedAnswer) : null;
86
+ if (!values || !answer.typedAnswer && isDeferAnswer(answer.value)) {
87
87
  return UNANSWERED;
88
88
  }
89
89
  return answeredWith(values);
@@ -139,9 +139,9 @@ var askQuestionByQuestion = async (apiKey, call, questions) => {
139
139
  const answer = await waitForQuestion(apiKey, result, storedWaitDeadline(result, call.deadline), void 0, call.signal);
140
140
  if (isDecisionStopped(answer)) return STOPPED;
141
141
  const legacyValue = answer.answered ? answer.value?.trim() : void 0;
142
- const values = legacyValue ? answersOnOneCard(question, legacyValue) : null;
142
+ const values = legacyValue ? answersOnOneCard(question, legacyValue, answer.typedAnswer) : null;
143
143
  const value = values?.[question.question];
144
- if (!value || isDeferAnswer(answer.value)) {
144
+ if (!value || !answer.typedAnswer && isDeferAnswer(answer.value)) {
145
145
  return UNANSWERED;
146
146
  }
147
147
  answers[question.question] = value;
@@ -4,19 +4,19 @@ import {
4
4
  } from "./chunk-3PSNUHC5.js";
5
5
  import {
6
6
  getMachineId
7
- } from "./chunk-DGZYM676.js";
7
+ } from "./chunk-6LQEDP2W.js";
8
8
  import {
9
9
  readControlMode
10
- } from "./chunk-LXWHMYOS.js";
10
+ } from "./chunk-RYT23NAI.js";
11
11
  import {
12
12
  pusharyDir
13
- } from "./chunk-A6TVXDTE.js";
13
+ } from "./chunk-HXLCATVW.js";
14
14
  import {
15
15
  resolveGlobalBinary
16
- } from "./chunk-B3STTU5D.js";
16
+ } from "./chunk-MP3IANXU.js";
17
17
  import {
18
18
  getApiKey
19
- } from "./chunk-YB64X4IQ.js";
19
+ } from "./chunk-RG3REA2Y.js";
20
20
  import {
21
21
  readJsonSafe,
22
22
  writeFileAtomic,
@@ -32,7 +32,7 @@ import {
32
32
  } from "./chunk-CXQWDQCJ.js";
33
33
  import {
34
34
  isRecord
35
- } from "./chunk-F75727GN.js";
35
+ } from "./chunk-HTMMJASM.js";
36
36
 
37
37
  // src/daemon-entry-guard.ts
38
38
  import { mkdirSync, readFileSync } from "fs";
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  callDecisionStore,
3
3
  identifyingToolInput
4
- } from "./chunk-PHFQV5MO.js";
4
+ } from "./chunk-OXGT7OTC.js";
5
5
  import {
6
6
  canonicalJson
7
- } from "./chunk-A6TVXDTE.js";
7
+ } from "./chunk-HXLCATVW.js";
8
8
 
9
9
  // src/phone-approval.ts
10
10
  import { createHash } from "crypto";
@@ -3,13 +3,13 @@ import {
3
3
  } from "./chunk-WHB622LP.js";
4
4
  import {
5
5
  ensureDaemonRunning
6
- } from "./chunk-JFUTFHB6.js";
6
+ } from "./chunk-D7LVY2XF.js";
7
7
  import {
8
8
  hookOwnerOf
9
- } from "./chunk-ZEVNSFFV.js";
9
+ } from "./chunk-RBKBFQ3D.js";
10
10
  import {
11
11
  hookMeaning
12
- } from "./chunk-4DTKZQKO.js";
12
+ } from "./chunk-HS4RZZRG.js";
13
13
  import {
14
14
  buildTranscriptRecords,
15
15
  changedRecipientsMessage,
@@ -24,7 +24,7 @@ import {
24
24
  uploadTranscriptRecords,
25
25
  verifyAnchoredRecipients,
26
26
  wrapSessionKey
27
- } from "./chunk-X3TBNXPX.js";
27
+ } from "./chunk-MX6HK3UN.js";
28
28
  import {
29
29
  external_exports,
30
30
  ownedOnlyByThisUser,
@@ -33,22 +33,22 @@ import {
33
33
  import {
34
34
  transcriptEnvironmentPreference,
35
35
  transcriptsEnabled
36
- } from "./chunk-SUUATETY.js";
36
+ } from "./chunk-KNCMUCKG.js";
37
37
  import {
38
38
  fetchAsCredential
39
- } from "./chunk-LGV3U2KK.js";
39
+ } from "./chunk-322DR4ZT.js";
40
40
  import {
41
41
  readTranscriptPreference
42
- } from "./chunk-LXWHMYOS.js";
42
+ } from "./chunk-RYT23NAI.js";
43
43
  import {
44
44
  claudeConfigDir,
45
45
  codexHome,
46
46
  pusharyDir
47
- } from "./chunk-A6TVXDTE.js";
47
+ } from "./chunk-HXLCATVW.js";
48
48
  import {
49
49
  getApiKey,
50
50
  getBaseUrl
51
- } from "./chunk-YB64X4IQ.js";
51
+ } from "./chunk-RG3REA2Y.js";
52
52
  import {
53
53
  writeJsonAtomic,
54
54
  writeJsonAtomicDurable
@@ -60,7 +60,7 @@ import {
60
60
  isHookSource,
61
61
  isRecord,
62
62
  redactSecretsFromContent
63
- } from "./chunk-F75727GN.js";
63
+ } from "./chunk-HTMMJASM.js";
64
64
 
65
65
  // src/transcript-registration.ts
66
66
  import { createHash as createHash4 } from "crypto";
@@ -1,25 +1,25 @@
1
1
  import {
2
2
  openClawLauncherCandidates
3
- } from "./chunk-6ZYUYRR2.js";
3
+ } from "./chunk-N62TAZJE.js";
4
4
  import {
5
5
  openCodeConfigDirFrom
6
- } from "./chunk-3RUQKPHU.js";
6
+ } from "./chunk-SHYBUXSP.js";
7
7
  import {
8
8
  nativeClaudeInstallPath
9
9
  } from "./chunk-TCE3J44Z.js";
10
10
  import {
11
11
  grokHome
12
- } from "./chunk-5STI67CK.js";
12
+ } from "./chunk-MGAEFOGL.js";
13
13
  import {
14
14
  claudeConfigDir,
15
15
  clineDataDirectory,
16
16
  codexHomeFrom,
17
17
  openClawEnvironmentOf,
18
18
  openClawPathsFrom
19
- } from "./chunk-A6TVXDTE.js";
19
+ } from "./chunk-HXLCATVW.js";
20
20
  import {
21
21
  HOOK_COMPATIBLE_PROFILES
22
- } from "./chunk-F75727GN.js";
22
+ } from "./chunk-HTMMJASM.js";
23
23
 
24
24
  // src/vscode-config.ts
25
25
  import { homedir } from "os";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  readExistingMachineId
3
- } from "./chunk-DGZYM676.js";
3
+ } from "./chunk-6LQEDP2W.js";
4
4
  import {
5
5
  getBaseUrl
6
- } from "./chunk-YB64X4IQ.js";
6
+ } from "./chunk-RG3REA2Y.js";
7
7
  import {
8
8
  NetworkError
9
9
  } from "./chunk-CINBAX5G.js";
@@ -13,7 +13,7 @@ import {
13
13
  import {
14
14
  clientContextHeaders,
15
15
  redactSecretsFromContent
16
- } from "./chunk-F75727GN.js";
16
+ } from "./chunk-HTMMJASM.js";
17
17
 
18
18
  // src/cli/net.ts
19
19
  import { createRequire } from "module";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  shouldDeferToNativeMode
3
- } from "./chunk-F75727GN.js";
3
+ } from "./chunk-HTMMJASM.js";
4
4
 
5
5
  // src/native-defer.ts
6
6
  var nativeDeferOptions = () => {
@@ -26,7 +26,7 @@ import {
26
26
  reportableSessionId,
27
27
  toToolLookup,
28
28
  truncateLine
29
- } from "./chunk-F75727GN.js";
29
+ } from "./chunk-HTMMJASM.js";
30
30
 
31
31
  // ../hook-mapping/src/commit-receipt.ts
32
32
  var COMMIT_OUTPUT_MAX_LENGTH = 65536;
@@ -4721,7 +4721,12 @@ var CLAUDE_INBOX_SETTLEMENTS = {
4721
4721
  var WAIT_END_PATH = "/api/agent/decision/wait-ended";
4722
4722
  var WAIT_END_CLOSED = { kind: "closed" };
4723
4723
  var WAIT_END_OPEN = { kind: "open" };
4724
- var waitEndAnswered = (value, note) => note === null ? { kind: "answered", value } : { kind: "answered", value, note };
4724
+ var waitEndAnswered = (value, note, typedAnswer = false) => ({
4725
+ kind: "answered",
4726
+ value,
4727
+ ...note === null ? {} : { note },
4728
+ ...typedAnswer ? { typedAnswer: true } : {}
4729
+ });
4725
4730
 
4726
4731
  // ../contracts/src/index.ts
4727
4732
  var APPROVAL_MODES = ["push_only", "terminal_only", "push_first", "notify_only"];
@@ -4789,17 +4794,17 @@ var roundTripAsk = (agentName) => ({ question: ROUND_TRIP_QUESTION, type: "confi
4789
4794
  var AGENT_STOP_DEFAULT_SECONDS = 3600;
4790
4795
  var TIMEOUT_ACTIONS = ["approve", "deny", "escalate", "wait"];
4791
4796
  var isTimeoutAction = (value) => typeof value === "string" && TIMEOUT_ACTIONS.includes(value);
4792
- var typedTextAsAnswers = (questions, text3) => {
4797
+ var typedTextAsAnswers = (questions, text3, typedAnswer = false) => {
4793
4798
  const [only, ...others] = questions;
4794
4799
  if (!only || others.length > 0 || !isTypedAnswerQuestion(only)) return null;
4795
- if (text3.trim().length === 0 || isHandBackAnswer(text3)) return null;
4800
+ if (text3.trim().length === 0 || !typedAnswer && isHandBackAnswer(text3)) return null;
4796
4801
  return { [only.question]: text3 };
4797
4802
  };
4798
4803
  var plainAskOf = (question) => isTypedAnswerQuestion(question) ? { type: "input" } : { type: "select", options: question.options.map((option) => option.label) };
4799
4804
  var isLoneTypedAnswerQuestion = (questions) => questions.length === 1 && questions.every(isTypedAnswerQuestion);
4800
4805
  var questionsShownAsASet = (questions) => isLoneTypedAnswerQuestion(questions) ? void 0 : questions;
4801
4806
  var agentQuestionContext = (header, project) => header ? `${header}: your agent is asking in ${project}` : `Your agent is asking in ${project}`;
4802
- var answersToQuestionsAsAsked = (questions, answer) => questionsShownAsASet(questions) ? parseAgentQuestionAnswers(questions, answer) : typedTextAsAnswers(questions, answer);
4807
+ var answersToQuestionsAsAsked = (questions, answer, typedAnswer = false) => typedAnswer && questions.length === 1 && questions[0] && answer.trim() ? { [questions[0].question]: answer } : questionsShownAsASet(questions) ? parseAgentQuestionAnswers(questions, answer) : typedTextAsAnswers(questions, answer, typedAnswer);
4803
4808
  var INSTALL_SOURCES = [
4804
4809
  /** `npx pushary@latest ...`, the documented one-liner. */
4805
4810
  "npx",
@@ -4863,6 +4868,7 @@ var SUPPORT_EMAIL = "business@pushary.com";
4863
4868
  var SUPPORT_DISCORD = "https://discord.gg/9v3VvUByrr";
4864
4869
  var HOOK_VERSION_PATTERN = /^\d+\.\d+\.\d+$/;
4865
4870
  var HOOK_LOCATOR_BINARY = "pushary-bridge";
4871
+ var HOOK_CWD_MAX_LENGTH = 4096;
4866
4872
  var isTokenCount = (value) => typeof value === "number" && Number.isInteger(value) && value >= 0;
4867
4873
  var reportableSessionId = (value) => typeof value === "string" && value.length > 0 && value.length <= SESSION_ID_MAX_LENGTH ? value : null;
4868
4874
  var HOOK_BATCH_MAX_BYTES = 4 * 1024 * 1024;
@@ -9391,6 +9397,13 @@ var FILE_EDIT_TOOLS = /* @__PURE__ */ new Set([
9391
9397
  "MultiEdit",
9392
9398
  "NotebookEdit"
9393
9399
  ]);
9400
+ var TOOL_PATH_MAX_LENGTH = 4096;
9401
+ var isAskableToolPath = (path) => path.startsWith("/") && path.length <= TOOL_PATH_MAX_LENGTH;
9402
+ var askableToolPathOf = (toolName, toolInput) => {
9403
+ if (!FILE_EDIT_TOOLS.has(toolName)) return void 0;
9404
+ const path = extractPolicyArg(toolName, toolInput);
9405
+ return path !== void 0 && isAskableToolPath(path) ? path : void 0;
9406
+ };
9394
9407
  var shouldDeferToNativeMode = (permissionMode, toolName, options = {}) => {
9395
9408
  if (options.respectPermissionMode === false) return false;
9396
9409
  if (typeof permissionMode !== "string") return false;
@@ -9647,6 +9660,17 @@ var resolveGate = (rawInput) => {
9647
9660
  const verdict = underEachArrowReading(() => gateVerdictUnderOneArrowReading(rawInput)).reduce(strictestGateVerdictOf);
9648
9661
  return verdict.kind === "gate" ? { ...verdict, policy: withApprovalRouteWait(rawInput, verdict.policy) } : verdict;
9649
9662
  };
9663
+ var resolvedToolInputsOf = (input) => input.toolInputs.map((toolInput) => ({
9664
+ toolInput,
9665
+ policy: resolvePolicy(input.config, input.toolName, input.modeState.mode, toolInput, input.cwd, input.sharedRepoKey ?? input.repoKey, input.sessionId)
9666
+ }));
9667
+ var policyOfResolvedToolInput = (resolved) => resolved.policy;
9668
+ var governingToolInputOf = (input) => {
9669
+ const resolved = resolvedToolInputsOf(input);
9670
+ if (resolved.length === 0) return void 0;
9671
+ const strictest = resolved.map(policyOfResolvedToolInput).reduce(strictestPolicy);
9672
+ return resolved.find((candidate) => candidate.policy === strictest)?.toolInput;
9673
+ };
9650
9674
  var noModeOverrideIsActive = (input) => (input.modeState.mode ?? input.config.modeOverride ?? null) === null;
9651
9675
  var editAsksAtTheAgentsPrompt = (input, verdict) => verdict.kind === "gate" && !verdict.scopeReason && noModeOverrideIsActive(input) && !aChosenRuleGoverns(input) && verdict.policy.mode === "push_first" && FILE_EDIT_TOOLS.has(input.toolName);
9652
9676
  var claudePromptsBeforeAnEdit = (permissionMode) => permissionMode === "default";
@@ -9664,7 +9688,7 @@ var codexRaisesItsOwnPrompts = (permissionMode) => !isBypassPermissionMode(permi
9664
9688
  var codexHasNoPromptOfItsOwn = (scopeReason, permissionMode) => scopeReason !== void 0 || !codexRaisesItsOwnPrompts(permissionMode);
9665
9689
  var CODEX_ASK_PASSES = { kind: "pass" };
9666
9690
  var codexAskUnanswered = (ask) => ({ kind: "deny", reason: unansweredRefusalReason(ask.paused) });
9667
- var ruleApprovesAfterItsFullWindow = (ask) => ask.mode === "push_only" && ask.fullWindowServed && ask.timeoutAction === "approve";
9691
+ var ruleApprovesAfterItsFullWindow = (ask) => ask.mode === "push_only" && ask.fullWindowServed && !ask.paused && ask.timeoutAction === "approve";
9668
9692
  var codexUnansweredPreToolUse = (ask) => ruleApprovesAfterItsFullWindow(ask) ? CODEX_ASK_PASSES : codexAskUnanswered(ask);
9669
9693
  var HANDED_BACK_REASON = "Handling on your machine";
9670
9694
  var HAND_BACK_TO_THE_AGENTS_PROMPT = { kind: "agent_prompt" };
@@ -10284,7 +10308,7 @@ var elicitationContentFromAnswers = (ask, answers) => {
10284
10308
  var isHandBackAnswer = (answer) => classifyConfirmResponse(answer) === "defer";
10285
10309
 
10286
10310
  // ../contracts/src/hook-activation.ts
10287
- var hookWritePath = (toolName, input) => toolName === "Write" && typeof input.file_path === "string" && input.file_path.startsWith("/") && input.file_path.length <= 4096 ? input.file_path : void 0;
10311
+ var hookWritePath = (toolName, input) => toolName === "Write" ? askableToolPathOf(toolName, input) : void 0;
10288
10312
  var HOOK_ACTIVATION_RESULTS = ["unverified", "approved_executed", "denied_observed", "unexpected_execution", "tool_failed"];
10289
10313
  var MAX_HOOK_ACTIVATION_EVIDENCE_ROWS = 20;
10290
10314
  var isHookActivationReport = (value) => {
@@ -10520,6 +10544,7 @@ export {
10520
10544
  SUPPORT_DISCORD,
10521
10545
  HOOK_VERSION_PATTERN,
10522
10546
  HOOK_LOCATOR_BINARY,
10547
+ HOOK_CWD_MAX_LENGTH,
10523
10548
  isTokenCount,
10524
10549
  reportableSessionId,
10525
10550
  TOOL_NAME_MAX_LENGTH,
@@ -10548,6 +10573,7 @@ export {
10548
10573
  PUSHARY_CONNECTOR_TOOL_PREFIXES,
10549
10574
  isPusharyOwnTool,
10550
10575
  isPusharyConnectorTool,
10576
+ askableToolPathOf,
10551
10577
  shouldDeferToNativeMode,
10552
10578
  AGENT_QUESTION_TOOL,
10553
10579
  AGENT_QUESTION_STRATEGY,
@@ -10578,6 +10604,7 @@ export {
10578
10604
  permissionsOffLineAppliesTo,
10579
10605
  permissionsOffAskReason,
10580
10606
  resolveGate,
10607
+ governingToolInputOf,
10581
10608
  editGoesToTheAgentsPrompt,
10582
10609
  SCOPE_BATCH_REASON,
10583
10610
  UNREADABLE_CALL_REASON,
@@ -3,7 +3,7 @@ import {
3
3
  formatVersion,
4
4
  quoteIfNeeded,
5
5
  shellDoubleQuoted
6
- } from "./chunk-B3STTU5D.js";
6
+ } from "./chunk-MP3IANXU.js";
7
7
  import {
8
8
  writeFileAtomic
9
9
  } from "./chunk-PM2NRK6Y.js";
@@ -22,7 +22,7 @@ import {
22
22
  PUSHARY_HOSTS,
23
23
  PUSHARY_TOOL_PREFIX,
24
24
  withHookHoldBudget
25
- } from "./chunk-F75727GN.js";
25
+ } from "./chunk-HTMMJASM.js";
26
26
 
27
27
  // src/setup/paths.ts
28
28
  import { createHash as createHash2 } from "crypto";