@pushary/agent-hooks 1.9.151 → 1.9.153

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 (135) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/dist/{api-GHPLREAU.js → api-CP25UREX.js} +11 -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 +10 -10
  6. package/dist/bin/pushary-claude.js +29 -28
  7. package/dist/bin/pushary-clean.js +36 -36
  8. package/dist/bin/pushary-codex-bridge.js +23 -23
  9. package/dist/bin/pushary-codex-hook.js +39 -39
  10. package/dist/bin/pushary-codex-session.js +8 -8
  11. package/dist/bin/pushary-codex.js +16 -16
  12. package/dist/bin/pushary-connect.js +32 -32
  13. package/dist/bin/pushary-cowork.js +5 -5
  14. package/dist/bin/pushary-daemon.js +44 -44
  15. package/dist/bin/pushary-disconnect.js +28 -28
  16. package/dist/bin/pushary-display-hook.js +17 -7
  17. package/dist/bin/pushary-doctor.js +44 -44
  18. package/dist/bin/pushary-elicitation-hook.js +28 -28
  19. package/dist/bin/pushary-gemini-bridge.js +17 -17
  20. package/dist/bin/pushary-gemini-hook.js +32 -32
  21. package/dist/bin/pushary-hook.js +35 -35
  22. package/dist/bin/pushary-login.js +21 -21
  23. package/dist/bin/pushary-logout.js +27 -27
  24. package/dist/bin/pushary-mcp.js +12 -12
  25. package/dist/bin/pushary-mode.js +15 -15
  26. package/dist/bin/pushary-notification-hook.js +27 -27
  27. package/dist/bin/pushary-opencode-hook.js +31 -31
  28. package/dist/bin/pushary-permission-denied-hook.js +35 -35
  29. package/dist/bin/pushary-permission-hook.js +35 -35
  30. package/dist/bin/pushary-post-hook.js +28 -28
  31. package/dist/bin/pushary-prompt-hook.js +27 -27
  32. package/dist/bin/pushary-session-end-hook.js +27 -27
  33. package/dist/bin/pushary-session-start-hook.js +37 -37
  34. package/dist/bin/pushary-setup.js +52 -52
  35. package/dist/bin/pushary-stats.js +5 -5
  36. package/dist/bin/pushary-status.js +33 -33
  37. package/dist/bin/pushary-stop-hook.js +27 -27
  38. package/dist/bin/pushary-stopfailure-hook.js +27 -27
  39. package/dist/bin/pushary-suggestions.js +15 -15
  40. package/dist/bin/pushary-transcript-register.js +17 -17
  41. package/dist/bin/pushary-transcripts.js +25 -25
  42. package/dist/bin/pushary-upgrade.js +42 -42
  43. package/dist/bin/pushary-wait.js +15 -15
  44. package/dist/bin/pushary.js +7 -7
  45. package/dist/{chunk-P3E26UO5.js → chunk-3PAXV5AO.js} +6 -6
  46. package/dist/{chunk-5TMW2X5I.js → chunk-3UONQKDQ.js} +1 -1
  47. package/dist/{chunk-NQUE54GA.js → chunk-44BHQL5D.js} +1 -1
  48. package/dist/{chunk-KAZ37TWD.js → chunk-44OIS5QI.js} +5 -5
  49. package/dist/{chunk-YUYBMCKF.js → chunk-4DGCCNVG.js} +3 -3
  50. package/dist/{chunk-AYFOZBTD.js → chunk-5EEIROLA.js} +1 -1
  51. package/dist/{chunk-ZBZ7CRGD.js → chunk-5M2AA3G3.js} +1 -1
  52. package/dist/{chunk-PYH3KFLI.js → chunk-6BUQ6KQ3.js} +12 -12
  53. package/dist/{chunk-FHPLLUAZ.js → chunk-6FGTTNP4.js} +1 -1
  54. package/dist/{chunk-LRK2F63A.js → chunk-6FLI6ZLI.js} +8 -8
  55. package/dist/{chunk-J6LZ4G5G.js → chunk-6QFTOGXF.js} +2 -2
  56. package/dist/{chunk-ZMEI3EG4.js → chunk-6QVR763H.js} +3 -3
  57. package/dist/{chunk-NPNBR4FS.js → chunk-6RB6DG5U.js} +5 -5
  58. package/dist/{chunk-3XIHKIDX.js → chunk-6ZWHFTGD.js} +4 -4
  59. package/dist/{chunk-BRXPFM3U.js → chunk-7BXROUKN.js} +2 -2
  60. package/dist/{chunk-C2JMTH45.js → chunk-7GQMN55L.js} +2 -2
  61. package/dist/{chunk-WY4CM6TO.js → chunk-7MI43W6R.js} +3 -3
  62. package/dist/{chunk-R2VVMSGM.js → chunk-7PKA5C7Z.js} +5 -5
  63. package/dist/{chunk-ZUN37EG2.js → chunk-A5CQZKTQ.js} +6 -6
  64. package/dist/{chunk-S263JK6K.js → chunk-A5QLHC5S.js} +2 -2
  65. package/dist/{chunk-NRMMXX62.js → chunk-AGZW3MDV.js} +2 -2
  66. package/dist/{chunk-OZD5FIFS.js → chunk-AHLKBYZN.js} +3 -3
  67. package/dist/{chunk-4UDGVO6A.js → chunk-ALTCTVBD.js} +1 -1
  68. package/dist/{chunk-6RMBTFDF.js → chunk-AZ7225CM.js} +3 -3
  69. package/dist/{chunk-K3ORQ3KY.js → chunk-BEYMW4FP.js} +20 -9
  70. package/dist/{chunk-JJKPQSEE.js → chunk-D5HE7ZE7.js} +2 -2
  71. package/dist/{chunk-A3EV4C34.js → chunk-D7DN5DXL.js} +2 -2
  72. package/dist/{chunk-ZSX4XN6C.js → chunk-DHA32CH3.js} +5 -5
  73. package/dist/{chunk-DNK4E5CE.js → chunk-DXCYJHL4.js} +4 -4
  74. package/dist/{chunk-OBIUHAXG.js → chunk-E3P63UWQ.js} +2 -2
  75. package/dist/{chunk-46IYOPZH.js → chunk-EENGXQP2.js} +1 -1
  76. package/dist/{chunk-NP6QILOY.js → chunk-F2XOMBVP.js} +5 -5
  77. package/dist/{chunk-HQ3RFANL.js → chunk-FLDVCVHA.js} +2 -2
  78. package/dist/{chunk-53Y4QQNF.js → chunk-FOU4YBB6.js} +5 -5
  79. package/dist/{chunk-P3RRAH6J.js → chunk-G6QERYOX.js} +3 -3
  80. package/dist/{chunk-7FPKT5QJ.js → chunk-GJQKDHO3.js} +5 -5
  81. package/dist/{chunk-AWC7MXLX.js → chunk-HJDNDZQI.js} +6 -6
  82. package/dist/{chunk-E5YEKJOM.js → chunk-HJW4HIGB.js} +1 -1
  83. package/dist/{chunk-BANZ4GGS.js → chunk-HLMDINWY.js} +2 -2
  84. package/dist/{chunk-XU45NUAV.js → chunk-HWUMQCKI.js} +10 -10
  85. package/dist/{chunk-I3CN7BGN.js → chunk-I54ERZRS.js} +2 -2
  86. package/dist/{chunk-3TUSMGHE.js → chunk-IFYBTFGJ.js} +1 -1
  87. package/dist/{chunk-H4MHGLEB.js → chunk-JJYIPQPG.js} +3 -3
  88. package/dist/{chunk-ILEO4YWM.js → chunk-JPXW7CB3.js} +1 -1
  89. package/dist/{chunk-BAH4LZL3.js → chunk-JTB3DC7H.js} +5 -5
  90. package/dist/{chunk-XWMVKK54.js → chunk-K3RPTQGZ.js} +1 -1
  91. package/dist/{chunk-7L6IP3JA.js → chunk-K5QMB6A7.js} +2 -2
  92. package/dist/{chunk-ODYF7VZZ.js → chunk-KL7LGD57.js} +1 -1
  93. package/dist/{chunk-WQ66RQRF.js → chunk-KNXFZWYU.js} +5 -5
  94. package/dist/{chunk-RJAQ2447.js → chunk-KORCPXUS.js} +4 -4
  95. package/dist/{chunk-IPRQFNPG.js → chunk-LPAPVM5J.js} +1 -1
  96. package/dist/{chunk-HY4GEW3T.js → chunk-MXYCC6TR.js} +2 -2
  97. package/dist/{chunk-TRDJICC7.js → chunk-N7ADBRB6.js} +3 -3
  98. package/dist/{chunk-BPSQLKTG.js → chunk-NGGBXN6M.js} +6 -6
  99. package/dist/{chunk-P6GCPJDQ.js → chunk-OEQFFPBU.js} +3 -3
  100. package/dist/{chunk-YYEYPA3S.js → chunk-OHKGBJ4O.js} +4 -4
  101. package/dist/{chunk-XJLCZ24Y.js → chunk-ORELODI4.js} +1 -1
  102. package/dist/{chunk-7XFEV7ML.js → chunk-OTYRLDKJ.js} +5 -5
  103. package/dist/{chunk-ACC4YXJS.js → chunk-RZC7MMY2.js} +1 -1
  104. package/dist/{chunk-E75OHUWM.js → chunk-S4GSEFRL.js} +1 -1
  105. package/dist/{chunk-JGYQ72A7.js → chunk-SIEPFBGO.js} +4 -4
  106. package/dist/{chunk-3MXI37MS.js → chunk-TQDJSQTK.js} +4 -4
  107. package/dist/{chunk-DYUK6HYH.js → chunk-TTFJOZZN.js} +1 -1
  108. package/dist/{chunk-4ZH2PXDA.js → chunk-TVV7NN6T.js} +1 -1
  109. package/dist/{chunk-USN3OOHD.js → chunk-UOJQZ7L5.js} +16 -16
  110. package/dist/{chunk-WQVRDVMJ.js → chunk-UZVU4ZOC.js} +3 -3
  111. package/dist/{chunk-5D57GAKF.js → chunk-V7EEPW7U.js} +3 -3
  112. package/dist/{chunk-DHP6SWVH.js → chunk-VBKU5ICI.js} +3 -3
  113. package/dist/{chunk-DQKT5KK5.js → chunk-VBQU3OFQ.js} +4 -4
  114. package/dist/{chunk-I6DLNMUM.js → chunk-VND6AFTY.js} +4 -4
  115. package/dist/{chunk-7357Q746.js → chunk-VZKX3B7B.js} +1 -1
  116. package/dist/{chunk-ZLHPTXWU.js → chunk-WDO3YKVN.js} +5 -5
  117. package/dist/{chunk-AIKQFV6C.js → chunk-XMJRSL5A.js} +4 -4
  118. package/dist/{chunk-FSEOIGZX.js → chunk-XMKNE4XR.js} +11 -11
  119. package/dist/{chunk-CVQTLCVS.js → chunk-XOBZSFHN.js} +1 -1
  120. package/dist/{chunk-PS3O6LS2.js → chunk-YXR2LIDZ.js} +6 -6
  121. package/dist/{chunk-TQXKJX7X.js → chunk-ZMTMAKZI.js} +8 -8
  122. package/dist/{codex-app-cards-switch-U77ZM22P.js → codex-app-cards-switch-FPUS5HGR.js} +11 -11
  123. package/dist/{codex-card-routing-3L4XXUCK.js → codex-card-routing-KAAZTFYE.js} +2 -2
  124. package/dist/{codex-desktop-launch-KRLBST55.js → codex-desktop-launch-K22UOYK4.js} +1 -1
  125. package/dist/{codex-session-launch-6LMMSNLA.js → codex-session-launch-UALDJWDA.js} +20 -20
  126. package/dist/{config-5YEZFF26.js → config-37VCCNI3.js} +3 -3
  127. package/dist/{global-upgrade-EWBY6BD5.js → global-upgrade-P6UR6T67.js} +9 -9
  128. package/dist/{identity-D3SYIS5Z.js → identity-VKL2KE5Y.js} +4 -4
  129. package/dist/{live-capabilities-QUNHPUFR.js → live-capabilities-YKXXTWIP.js} +4 -4
  130. package/dist/{paths-VI5KNBOY.js → paths-P5H3NCEO.js} +3 -3
  131. package/dist/{reapply-AFG7K4KS.js → reapply-MLREXGHX.js} +30 -30
  132. package/dist/src/index.js +34 -34
  133. package/dist/{upgrade-lock-COPTGES4.js → upgrade-lock-HBLAJ7ID.js} +4 -4
  134. package/dist/{usage-4367CHW4.js → usage-6E3PTA6F.js} +3 -3
  135. package/package.json +1 -1
@@ -4,37 +4,37 @@ import {
4
4
  postLiveSession,
5
5
  postLiveSessionUntilAccepted,
6
6
  startLiveSessionHeartbeat
7
- } from "./chunk-ODYF7VZZ.js";
7
+ } from "./chunk-KL7LGD57.js";
8
8
  import {
9
9
  CommandReceipts,
10
10
  controllerCommandSchema
11
- } from "./chunk-4ZH2PXDA.js";
11
+ } from "./chunk-TVV7NN6T.js";
12
12
  import {
13
13
  SESSION_IDLE_TIMEOUT_MS,
14
14
  describeIdleWindow,
15
15
  idleDeadlinePassed,
16
16
  startProcessOwnership
17
- } from "./chunk-A3EV4C34.js";
17
+ } from "./chunk-D7DN5DXL.js";
18
18
  import {
19
19
  repositoryScopeFor
20
- } from "./chunk-3TUSMGHE.js";
20
+ } from "./chunk-IFYBTFGJ.js";
21
21
  import {
22
22
  isAskUserResponse,
23
23
  isDecisionStopped,
24
24
  isWaitForAnswerResponse,
25
25
  withdrawQuestion,
26
26
  writeDegraded
27
- } from "./chunk-BPSQLKTG.js";
27
+ } from "./chunk-NGGBXN6M.js";
28
28
  import {
29
29
  callMcpTool,
30
30
  isRetryable
31
- } from "./chunk-ZLHPTXWU.js";
31
+ } from "./chunk-WDO3YKVN.js";
32
32
  import {
33
33
  spawnClaude
34
34
  } from "./chunk-H6CL3T2S.js";
35
35
  import {
36
36
  readCommandAck
37
- } from "./chunk-IPRQFNPG.js";
37
+ } from "./chunk-LPAPVM5J.js";
38
38
  import {
39
39
  AGENT_QUESTION_DESCRIPTION_MAX,
40
40
  AGENT_QUESTION_HEADER_MAX,
@@ -55,7 +55,7 @@ import {
55
55
  parseCodexQuestions,
56
56
  planElicitationAsk,
57
57
  readElicitationFields
58
- } from "./chunk-K3ORQ3KY.js";
58
+ } from "./chunk-BEYMW4FP.js";
59
59
 
60
60
  // src/codex-question-owner.ts
61
61
  import { createHash } from "crypto";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  absoluteUrl
3
- } from "./chunk-P3RRAH6J.js";
3
+ } from "./chunk-G6QERYOX.js";
4
4
  import {
5
5
  KEY_SCOPE
6
- } from "./chunk-K3ORQ3KY.js";
6
+ } from "./chunk-BEYMW4FP.js";
7
7
 
8
8
  // src/cli/approval-settings-pages.ts
9
9
  var API_KEYS_PATH = "/dashboard/agent/settings";
@@ -3,16 +3,16 @@ import {
3
3
  NpmMissingError,
4
4
  NpmPermissionError,
5
5
  NpmReleaseAgeError
6
- } from "./chunk-P6GCPJDQ.js";
6
+ } from "./chunk-OEQFFPBU.js";
7
7
  import {
8
8
  writeFileAtomic
9
9
  } from "./chunk-TODDEIYG.js";
10
10
  import {
11
11
  NPX_LATEST_COMMAND
12
- } from "./chunk-XWMVKK54.js";
12
+ } from "./chunk-K3RPTQGZ.js";
13
13
  import {
14
14
  readSetupAgentFailures
15
- } from "./chunk-K3ORQ3KY.js";
15
+ } from "./chunk-BEYMW4FP.js";
16
16
 
17
17
  // src/setup/config-write.ts
18
18
  var AgentConfigWriteError = class extends Error {
@@ -14,7 +14,7 @@ import {
14
14
  reachVerdict,
15
15
  reachesYou,
16
16
  verifyDelivery
17
- } from "./chunk-AWC7MXLX.js";
17
+ } from "./chunk-HJDNDZQI.js";
18
18
  import {
19
19
  describeRevokeAttempt,
20
20
  keyNoLongerAccepted,
@@ -32,17 +32,17 @@ import {
32
32
  } from "./chunk-YM2T76UM.js";
33
33
  import {
34
34
  checkApiKey
35
- } from "./chunk-P3RRAH6J.js";
35
+ } from "./chunk-G6QERYOX.js";
36
36
  import {
37
37
  reportedInstallSource
38
- } from "./chunk-OBIUHAXG.js";
38
+ } from "./chunk-E3P63UWQ.js";
39
39
  import {
40
40
  NPX_LATEST_COMMAND
41
- } from "./chunk-XWMVKK54.js";
41
+ } from "./chunk-K3RPTQGZ.js";
42
42
  import {
43
43
  NO_PAIRING_COMPUTER,
44
44
  PAIR_TTL_SECONDS
45
- } from "./chunk-K3ORQ3KY.js";
45
+ } from "./chunk-BEYMW4FP.js";
46
46
 
47
47
  // src/onboarding.ts
48
48
  import qrcodeTerminal from "qrcode-terminal";
@@ -1,19 +1,19 @@
1
1
  import {
2
2
  macAppBridgeAvailable
3
- } from "./chunk-53Y4QQNF.js";
3
+ } from "./chunk-FOU4YBB6.js";
4
4
  import {
5
5
  keyPrefix
6
- } from "./chunk-WY4CM6TO.js";
6
+ } from "./chunk-7MI43W6R.js";
7
7
  import {
8
8
  bridgeAgentKey
9
- } from "./chunk-HY4GEW3T.js";
9
+ } from "./chunk-MXYCC6TR.js";
10
10
  import {
11
11
  readJsonSafe
12
12
  } from "./chunk-TODDEIYG.js";
13
13
  import {
14
14
  isRecord,
15
15
  isValidApiKey
16
- } from "./chunk-K3ORQ3KY.js";
16
+ } from "./chunk-BEYMW4FP.js";
17
17
 
18
18
  // src/shared-mcp-key.ts
19
19
  var asRecord = (value) => value !== null && typeof value === "object" && !Array.isArray(value) ? value : void 0;
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  pusharyDir
3
- } from "./chunk-HY4GEW3T.js";
3
+ } from "./chunk-MXYCC6TR.js";
4
4
  import {
5
5
  readRegularJsonFile,
6
6
  writeFileAtomic
@@ -13,7 +13,7 @@ import {
13
13
  serializeDeclinedAgents,
14
14
  withDeclinedAgent,
15
15
  withoutDeclinedAgent
16
- } from "./chunk-K3ORQ3KY.js";
16
+ } from "./chunk-BEYMW4FP.js";
17
17
 
18
18
  // src/declined-agents-file.ts
19
19
  import { join } from "path";
@@ -4,10 +4,10 @@ import {
4
4
  keyPrefix,
5
5
  readConfigFileKey,
6
6
  readMacAppKeyPrefix
7
- } from "./chunk-WY4CM6TO.js";
7
+ } from "./chunk-7MI43W6R.js";
8
8
  import {
9
9
  NPX_LATEST_COMMAND
10
- } from "./chunk-XWMVKK54.js";
10
+ } from "./chunk-K3RPTQGZ.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
  resolveInstallSourceFor
3
- } from "./chunk-OBIUHAXG.js";
3
+ } from "./chunk-E3P63UWQ.js";
4
4
  import {
5
5
  configFilePath
6
- } from "./chunk-ZBZ7CRGD.js";
6
+ } from "./chunk-5M2AA3G3.js";
7
7
  import {
8
8
  backupFile,
9
9
  readJsonSafe,
@@ -14,7 +14,7 @@ import {
14
14
  API_KEY_PREFIX_PATTERN,
15
15
  isRecord,
16
16
  isValidApiKey
17
- } from "./chunk-K3ORQ3KY.js";
17
+ } from "./chunk-BEYMW4FP.js";
18
18
 
19
19
  // src/shell-alias.ts
20
20
  import { homedir } from "os";
@@ -5,13 +5,13 @@ import {
5
5
  } from "./chunk-OYIN77HO.js";
6
6
  import {
7
7
  readMacAppAgentKey
8
- } from "./chunk-3XIHKIDX.js";
8
+ } from "./chunk-6ZWHFTGD.js";
9
9
  import {
10
10
  API_KEYS_PATH
11
- } from "./chunk-J6LZ4G5G.js";
11
+ } from "./chunk-6QFTOGXF.js";
12
12
  import {
13
13
  absoluteUrl
14
- } from "./chunk-P3RRAH6J.js";
14
+ } from "./chunk-G6QERYOX.js";
15
15
  import {
16
16
  findExportedKeyLines,
17
17
  isAdoptedMacAppKey,
@@ -21,10 +21,10 @@ import {
21
21
  readConfigFileKey,
22
22
  readKeySource,
23
23
  readMacAppKeyPrefix
24
- } from "./chunk-WY4CM6TO.js";
24
+ } from "./chunk-7MI43W6R.js";
25
25
  import {
26
26
  isValidApiKey
27
- } from "./chunk-K3ORQ3KY.js";
27
+ } from "./chunk-BEYMW4FP.js";
28
28
 
29
29
  // src/cli/held-key-revocation.ts
30
30
  var readCliHeldKeys = (profiles) => {
@@ -3,10 +3,10 @@ import {
3
3
  forkFinishWithUpgradeLock,
4
4
  installWithUpgradeLock,
5
5
  releaseAutoUpdateLock
6
- } from "./chunk-7L6IP3JA.js";
6
+ } from "./chunk-K5QMB6A7.js";
7
7
  import {
8
8
  phoneStartIsRequired
9
- } from "./chunk-TRDJICC7.js";
9
+ } from "./chunk-N7ADBRB6.js";
10
10
  import {
11
11
  describeAutoUpdateCheck,
12
12
  globalInstallLocation,
@@ -18,25 +18,25 @@ import {
18
18
  readAutoUpdateState,
19
19
  updateAutoUpdateState,
20
20
  upgradeEntryFor
21
- } from "./chunk-HQ3RFANL.js";
21
+ } from "./chunk-FLDVCVHA.js";
22
22
  import {
23
23
  autoUpdateLock,
24
24
  autoUpdateLog,
25
25
  autoUpdateState
26
- } from "./chunk-HY4GEW3T.js";
26
+ } from "./chunk-MXYCC6TR.js";
27
27
  import {
28
28
  execNpm,
29
29
  fetchLatestPublishedVersion,
30
30
  npmErrorMessage,
31
31
  readGlobalCliInstallAt,
32
32
  readGlobalPrefix
33
- } from "./chunk-P6GCPJDQ.js";
33
+ } from "./chunk-OEQFFPBU.js";
34
34
  import {
35
35
  EXIT
36
36
  } from "./chunk-BG4HHB7E.js";
37
37
  import {
38
38
  NPX_LATEST_COMMAND
39
- } from "./chunk-XWMVKK54.js";
39
+ } from "./chunk-K3RPTQGZ.js";
40
40
  import {
41
41
  commandsPackage,
42
42
  globalUpgradeEntry,
@@ -3,10 +3,10 @@ import {
3
3
  } from "./chunk-CYTPQDQY.js";
4
4
  import {
5
5
  parseVersion
6
- } from "./chunk-P6GCPJDQ.js";
6
+ } from "./chunk-OEQFFPBU.js";
7
7
  import {
8
8
  isRecord
9
- } from "./chunk-K3ORQ3KY.js";
9
+ } from "./chunk-BEYMW4FP.js";
10
10
 
11
11
  // src/setup/agent-probe.ts
12
12
  import { execSync } from "child_process";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  claudeConfigDir
3
- } from "./chunk-HY4GEW3T.js";
3
+ } from "./chunk-MXYCC6TR.js";
4
4
  import {
5
5
  claudePermissionRulesFromSettings
6
- } from "./chunk-K3ORQ3KY.js";
6
+ } from "./chunk-BEYMW4FP.js";
7
7
 
8
8
  // src/claude-permission-rules.ts
9
9
  import { readFileSync, statSync } from "fs";
@@ -536,8 +536,8 @@ var loadedOnce = (load) => {
536
536
  };
537
537
 
538
538
  // src/codex-desktop-proxy.ts
539
- var loadThePhone = () => import("./api-GHPLREAU.js");
540
- var loadTheCardRouting = () => import("./codex-card-routing-3L4XXUCK.js");
539
+ var loadThePhone = () => import("./api-CP25UREX.js");
540
+ var loadTheCardRouting = () => import("./codex-card-routing-KAAZTFYE.js");
541
541
  var theFirstCardLoadsAgain = () => {
542
542
  };
543
543
  var ASKS_WITHOUT_ROUTING = {};
@@ -1097,7 +1097,7 @@ var codexDesktopCommand = async (args, entry, readAccount) => {
1097
1097
  return runCodexDesktopProxy(engine2, args.slice(3), readAccount, { watchesForCards: layoutIsKnown });
1098
1098
  }
1099
1099
  if (args[0] === APP_CARDS_FLAG) {
1100
- const { codexAppCardsCommandOnThisMac } = await import("./codex-app-cards-switch-U77ZM22P.js");
1100
+ const { codexAppCardsCommandOnThisMac } = await import("./codex-app-cards-switch-FPUS5HGR.js");
1101
1101
  return codexAppCardsCommandOnThisMac(args.slice(1), entry, readAccount);
1102
1102
  }
1103
1103
  if (args.length > 2) throw new Error("Usage: pushary codex --desktop [path/to/Codex.app]");
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  DEFAULT_SESSION
3
- } from "./chunk-PYH3KFLI.js";
3
+ } from "./chunk-6BUQ6KQ3.js";
4
4
 
5
5
  // src/answer.ts
6
6
  var isDeferAnswer = (value) => value === "defer";
@@ -4,15 +4,15 @@ import {
4
4
  claimThrottle,
5
5
  releaseThrottle,
6
6
  reportEvent
7
- } from "./chunk-PYH3KFLI.js";
7
+ } from "./chunk-6BUQ6KQ3.js";
8
8
  import {
9
9
  deriveToolTarget,
10
10
  permissionDeniedAction
11
- } from "./chunk-AYFOZBTD.js";
11
+ } from "./chunk-5EEIROLA.js";
12
12
  import {
13
13
  machineDecisionFor,
14
14
  wireVerdictFor
15
- } from "./chunk-K3ORQ3KY.js";
15
+ } from "./chunk-BEYMW4FP.js";
16
16
 
17
17
  // src/machine-decision-audit.ts
18
18
  import { basename } from "path";
@@ -237,12 +237,17 @@ var CLAUDE_DIRECTORY_URL = "https://claude.ai/directory/pushary";
237
237
  var CLAUDE_CONNECTOR_URL = "https://pushary.com/api/mcp/mcp";
238
238
  var CLAUDE_CONNECTOR_GUIDE = "https://pushary.com/docs/agents/guides/claude-desktop";
239
239
  var COWORK_CONNECTOR_LIMIT = "Pushary\u2019s Cowork connector is cooperative: Claude chooses when to ask. It does not intercept Claude\u2019s native permission prompts or start new Cowork tasks.";
240
+ var CLAUDE_TOOL_PERMISSIONS_PATH = "Customize > Connectors > Pushary > Tool permissions";
241
+ var CLAUDE_TOOL_PERMISSION_GROUPS = ["Read-only tools", "Write/delete tools"];
242
+ var CLAUDE_ALWAYS_ALLOW = "Always allow";
243
+ var CLAUDE_TOOL_PERMISSIONS_STEP = `In Claude, open ${CLAUDE_TOOL_PERMISSIONS_PATH}. Set ${CLAUDE_TOOL_PERMISSION_GROUPS.join(" and ")} to ${CLAUDE_ALWAYS_ALLOW}.`;
244
+ var CLAUDE_TOOL_PERMISSIONS_WHY = "While they say Needs approval, Claude stops in the chat before every Pushary call, so a question never reaches your phone while you are away.";
240
245
  var CLAUDE_CONNECTOR_STEPS = [
241
246
  `Open ${CLAUDE_DIRECTORY_URL} and choose Connect.`,
242
247
  "Sign in with the same Pushary account used by your phone and Mac app.",
243
- "Enable Pushary in the Chat or Cowork conversation. Approve access to its tools if Claude asks.",
244
- "For proactive Cowork use, install the Pushary Cowork plugin/skill or paste the standing instructions into Settings > Cowork.",
245
- "Ask Claude to send the test question below, answer it from Pushary, and confirm Claude receives your answer."
248
+ `${CLAUDE_TOOL_PERMISSIONS_STEP} ${CLAUDE_TOOL_PERMISSIONS_WHY}`,
249
+ "In Chat, paste the Chat instructions into Settings > Your Claude > Instructions. In Cowork, install the Pushary Cowork plugin or skill, or paste the Cowork instructions into Settings > Cowork.",
250
+ "Enable Pushary in a Chat or Cowork conversation, send the test question below, answer it from Pushary, and confirm Claude receives your answer."
246
251
  ];
247
252
  var CONNECTOR_SETUP_QUESTION = "Did this setup question reach you?";
248
253
  var CLAUDE_CONNECTOR_TEST = `Use Pushary ask_user to ask \u201C${CONNECTOR_SETUP_QUESTION}\u201D with type \u201Cconfirm\u201D. Use agentName \u201CClaude Cowork - Setup check\u201D in Cowork or \u201CClaude Chat - Setup check\u201D in Chat. Wait for my answer and tell me which answer you received. Do not run a command or change any files.`;
@@ -373,7 +378,7 @@ var AGENTS = {
373
378
  enforcement: "enforced",
374
379
  connectVia: "Plugin installed by the CLI + before_tool_call hook",
375
380
  setupCommand: PUSHARY_SETUP_COMMAND,
376
- enforcementDetail: "exec calls, the process actions that type into a session, automations and terminal actions that schedule, run or type, the plugins, gateway and openclaw actions that install, disable, reconfigure or restart OpenClaw, file writes into OpenClaw's own state and service files, and any tool named in the plugin's gatedTools setting, through OpenClaw's before_tool_call hook. A gated call runs only after a yes in Pushary; a no, no answer, a cancelled call or an unreachable server blocks it.",
381
+ enforcementDetail: "exec calls, the process actions that type into a session, automations and terminal actions that schedule, run or type, nodes actions that run commands, pair or capture on a paired machine, ACP session starts, the plugins, gateway and openclaw actions that install, disable, reconfigure or restart OpenClaw, file writes into OpenClaw's own state and service files and the workspace hooks and .openclaw folders, and any tool named in the plugin's gatedTools setting, through OpenClaw's before_tool_call hook. A gated call runs only after a yes in Pushary; a no, no answer, a cancelled call or an unreachable server blocks it.",
377
382
  capabilityNote: "Setup writes the Pushary plugin it carries to ~/.pushary/openclaw-plugin and installs it with openclaw plugins install; it is not a macOS bridge HookSource. Pushary's tool rules are not evaluated on the machine, so every gated call asks. Phone calls are held until a live call test passes. CLI disconnect and managed-provider controls are not implemented for OpenClaw."
378
383
  },
379
384
  cursor: {
@@ -1004,6 +1009,8 @@ var ANTIGRAVITY_CLI = {
1004
1009
  toolAliases: {
1005
1010
  run_command: "Bash",
1006
1011
  write_to_file: "Write",
1012
+ write_file: "Write",
1013
+ edit_file: "Edit",
1007
1014
  replace_file_content: "Edit",
1008
1015
  multi_replace_file_content: "Edit",
1009
1016
  view_file: "Read",
@@ -1012,11 +1019,14 @@ var ANTIGRAVITY_CLI = {
1012
1019
  },
1013
1020
  inputKeyAliases: {
1014
1021
  CodeContent: "content",
1022
+ Content: "content",
1015
1023
  TargetContent: "old_string",
1016
- ReplacementContent: "new_string"
1024
+ Target: "old_string",
1025
+ ReplacementContent: "new_string",
1026
+ Replacement: "new_string"
1017
1027
  },
1018
1028
  extraMatchers: [ANTIGRAVITY_MCP_TOOL],
1019
- pathInputKeys: ["TargetFile", "AbsolutePath"],
1029
+ pathInputKeys: ["TargetFile", "AbsolutePath", "Path"],
1020
1030
  shellCommandKeys: ["CommandLine"],
1021
1031
  shellContextKeys: ["Cwd"],
1022
1032
  events: ["PreToolUse", "PostToolUse", "Stop"],
@@ -9184,14 +9194,15 @@ var GATE_ALLOW_SOURCE = {
9184
9194
  policy: "policy"
9185
9195
  };
9186
9196
  var PUSHARY_TOOL_PREFIX = "mcp__pushary__";
9187
- var isPusharyOwnTool = (toolName) => toolName.startsWith(PUSHARY_TOOL_PREFIX);
9188
9197
  var PUSHARY_CONNECTOR_TOOL_PREFIXES = ["mcp__claude_ai_Pushary__", "mcp__plugin_pushary_pushary__"];
9189
9198
  var SERVER_AND_TOOL_SEPARATOR = "__";
9199
+ var SERVER_NAME_REPLACEMENT_CHARACTER = "_";
9190
9200
  var namesOneToolAfterPrefix = (toolName, prefix) => {
9191
9201
  if (!toolName.startsWith(prefix)) return false;
9192
9202
  const tool = toolName.slice(prefix.length);
9193
- return tool.length > 0 && !tool.includes(SERVER_AND_TOOL_SEPARATOR);
9203
+ return tool.length > 0 && !tool.startsWith(SERVER_NAME_REPLACEMENT_CHARACTER) && !tool.includes(SERVER_AND_TOOL_SEPARATOR);
9194
9204
  };
9205
+ var isPusharyOwnTool = (toolName) => namesOneToolAfterPrefix(toolName, PUSHARY_TOOL_PREFIX);
9195
9206
  var isPusharyConnectorTool = (toolName) => PUSHARY_CONNECTOR_TOOL_PREFIXES.some((prefix) => namesOneToolAfterPrefix(toolName, prefix));
9196
9207
  var strictestScopeVerdict = (scope, paths2) => {
9197
9208
  if (paths2.length === 0) return evaluateScope(scope, void 0);
@@ -10321,8 +10332,8 @@ export {
10321
10332
  resolvePolicy,
10322
10333
  KILL_REASON,
10323
10334
  PUSHARY_TOOL_PREFIX,
10324
- isPusharyOwnTool,
10325
10335
  PUSHARY_CONNECTOR_TOOL_PREFIXES,
10336
+ isPusharyOwnTool,
10326
10337
  isPusharyConnectorTool,
10327
10338
  shouldDeferToNativeMode,
10328
10339
  AGENT_QUESTION_TOOL,
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  callDecisionStore,
3
3
  identifyingToolInput
4
- } from "./chunk-PYH3KFLI.js";
4
+ } from "./chunk-6BUQ6KQ3.js";
5
5
  import {
6
6
  canonicalJson
7
- } from "./chunk-HY4GEW3T.js";
7
+ } from "./chunk-MXYCC6TR.js";
8
8
 
9
9
  // src/phone-approval.ts
10
10
  import { createHash } from "crypto";
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  pusharyDir
3
- } from "./chunk-HY4GEW3T.js";
3
+ } from "./chunk-MXYCC6TR.js";
4
4
  import {
5
5
  readJsonSafe
6
6
  } from "./chunk-TODDEIYG.js";
7
7
  import {
8
8
  isRecord
9
- } from "./chunk-K3ORQ3KY.js";
9
+ } from "./chunk-BEYMW4FP.js";
10
10
 
11
11
  // src/process-ownership.ts
12
12
  import { createHash, randomUUID } from "crypto";
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  addGeminiMcpServer,
3
3
  removeGeminiMcpServer
4
- } from "./chunk-DQKT5KK5.js";
4
+ } from "./chunk-VBQU3OFQ.js";
5
5
  import {
6
6
  CLAUDE_CODE_AGENT
7
- } from "./chunk-PYH3KFLI.js";
7
+ } from "./chunk-6BUQ6KQ3.js";
8
8
  import {
9
9
  compatibleToolLookup
10
- } from "./chunk-AYFOZBTD.js";
10
+ } from "./chunk-5EEIROLA.js";
11
11
  import {
12
12
  CLAUDE_HOOK_EVENTS,
13
13
  PUSHARY_MCP_URL,
@@ -19,7 +19,7 @@ import {
19
19
  isPusharyHook,
20
20
  registerHookEntry,
21
21
  removeClaudeMcpServers
22
- } from "./chunk-HY4GEW3T.js";
22
+ } from "./chunk-MXYCC6TR.js";
23
23
  import {
24
24
  HOOK_COMPATIBLE_PROFILES,
25
25
  PHONE_ANSWERED_TOOLS,
@@ -30,7 +30,7 @@ import {
30
30
  pusharyMissingReason,
31
31
  refusalOutput,
32
32
  withHookHoldBudget
33
- } from "./chunk-K3ORQ3KY.js";
33
+ } from "./chunk-BEYMW4FP.js";
34
34
 
35
35
  // src/config-document.ts
36
36
  import { parse, stringify } from "smol-toml";
@@ -1,18 +1,18 @@
1
1
  import {
2
2
  CODEX_HOOK_STATUS
3
- } from "./chunk-I3CN7BGN.js";
3
+ } from "./chunk-I54ERZRS.js";
4
4
  import {
5
5
  HERMES_ALWAYS_ALLOWED_SHELL_RULE,
6
6
  HERMES_COMMAND_ALLOWLIST_KEY,
7
7
  HERMES_GATE_TOOLS_KEY,
8
8
  HERMES_SHELL_TOOL
9
- } from "./chunk-RJAQ2447.js";
9
+ } from "./chunk-KORCPXUS.js";
10
10
  import {
11
11
  retryAgentCommand
12
- } from "./chunk-ZMEI3EG4.js";
12
+ } from "./chunk-6QVR763H.js";
13
13
  import {
14
14
  NPX_LATEST_COMMAND
15
- } from "./chunk-XWMVKK54.js";
15
+ } from "./chunk-K3RPTQGZ.js";
16
16
 
17
17
  // src/setup/codex-trust.ts
18
18
  var CODEX_TRUST_TELEMETRY = {
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  configFilePath
3
- } from "./chunk-ZBZ7CRGD.js";
3
+ } from "./chunk-5M2AA3G3.js";
4
4
  import {
5
5
  normalizeInstallSource
6
- } from "./chunk-K3ORQ3KY.js";
6
+ } from "./chunk-BEYMW4FP.js";
7
7
 
8
8
  // src/install-source.ts
9
9
  import { readFileSync } from "fs";
@@ -5,7 +5,7 @@ import {
5
5
  MCP_CREDENTIAL_REJECTION_BODY,
6
6
  isRecord,
7
7
  responseRejectsCredential
8
- } from "./chunk-K3ORQ3KY.js";
8
+ } from "./chunk-BEYMW4FP.js";
9
9
 
10
10
  // src/credential-rejection.ts
11
11
  import { createHash, randomUUID } from "crypto";
@@ -3,24 +3,24 @@ import {
3
3
  expectedLaunchCapabilities,
4
4
  hasSpawnProvider,
5
5
  resolveControlPolicy
6
- } from "./chunk-TRDJICC7.js";
6
+ } from "./chunk-N7ADBRB6.js";
7
7
  import {
8
8
  daemonHasRemoteProof,
9
9
  daemonServiceManagerAvailable,
10
10
  hasDaemonServiceDefinition,
11
11
  readDaemonNeedsLogin,
12
12
  readDaemonStatus
13
- } from "./chunk-P3E26UO5.js";
13
+ } from "./chunk-3PAXV5AO.js";
14
14
  import {
15
15
  getMachineId
16
- } from "./chunk-E5YEKJOM.js";
16
+ } from "./chunk-HJW4HIGB.js";
17
17
  import {
18
18
  readControlMode,
19
19
  readKeySource
20
- } from "./chunk-WY4CM6TO.js";
20
+ } from "./chunk-7MI43W6R.js";
21
21
  import {
22
22
  getBaseUrl
23
- } from "./chunk-ZBZ7CRGD.js";
23
+ } from "./chunk-5M2AA3G3.js";
24
24
  import {
25
25
  getPackageVersion
26
26
  } from "./chunk-WIIMW5YO.js";
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-POFBE6ZY.js";
4
4
  import {
5
5
  autoUpdateState
6
- } from "./chunk-HY4GEW3T.js";
6
+ } from "./chunk-MXYCC6TR.js";
7
7
  import {
8
8
  readJsonSafe,
9
9
  writeJsonAtomic
@@ -17,7 +17,7 @@ import {
17
17
  } from "./chunk-WIIMW5YO.js";
18
18
  import {
19
19
  isAutoUpdateResult
20
- } from "./chunk-K3ORQ3KY.js";
20
+ } from "./chunk-BEYMW4FP.js";
21
21
 
22
22
  // src/auto-update.ts
23
23
  import { spawn } from "child_process";
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  compatibleConfigFile
3
- } from "./chunk-ZSX4XN6C.js";
3
+ } from "./chunk-DHA32CH3.js";
4
4
  import {
5
5
  hookOwnerOf,
6
6
  hookOwnerOfCommands
7
- } from "./chunk-DQKT5KK5.js";
7
+ } from "./chunk-VBQU3OFQ.js";
8
8
  import {
9
9
  AGENT_CHOICES
10
- } from "./chunk-XJLCZ24Y.js";
10
+ } from "./chunk-ORELODI4.js";
11
11
  import {
12
12
  bridgeStub,
13
13
  claudeSettings,
@@ -19,7 +19,7 @@ import {
19
19
  resolveBridgeStub,
20
20
  vscodePluginDir,
21
21
  windowsNodeLauncherFor
22
- } from "./chunk-HY4GEW3T.js";
22
+ } from "./chunk-MXYCC6TR.js";
23
23
  import {
24
24
  readJsonSafe
25
25
  } from "./chunk-TODDEIYG.js";
@@ -29,7 +29,7 @@ import {
29
29
  OPENCODE_APPROVAL_EVENT,
30
30
  hookCompatibleProfile,
31
31
  isRecord
32
- } from "./chunk-K3ORQ3KY.js";
32
+ } from "./chunk-BEYMW4FP.js";
33
33
 
34
34
  // src/opencode-plugin.ts
35
35
  var OPENCODE_PLUGIN_MARKER = "pushary-opencode-plugin w1";
@@ -1,19 +1,19 @@
1
1
  import {
2
2
  pusharyFetch
3
- } from "./chunk-WQVRDVMJ.js";
3
+ } from "./chunk-UZVU4ZOC.js";
4
4
  import {
5
5
  NetworkError
6
6
  } from "./chunk-YU2EUD7O.js";
7
7
  import {
8
8
  getBaseUrl
9
- } from "./chunk-ZBZ7CRGD.js";
9
+ } from "./chunk-5M2AA3G3.js";
10
10
  import {
11
11
  EXIT
12
12
  } from "./chunk-BG4HHB7E.js";
13
13
  import {
14
14
  isValidApiKey,
15
15
  normalizeKeyScope
16
- } from "./chunk-K3ORQ3KY.js";
16
+ } from "./chunk-BEYMW4FP.js";
17
17
 
18
18
  // src/session.ts
19
19
  var samePusharyAccount = (left, right) => left.kind === "ok" && right.kind === "ok" && left.identity.workspaceId !== "" && left.identity.workspaceId === right.identity.workspaceId && left.identity.siteId === right.identity.siteId;