pushary 1.9.227 → 1.9.229

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 (149) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/data/cursor-plugin/.cursor-plugin/plugin.json +1 -1
  3. package/data/cursor-plugin/CHANGELOG.md +4 -0
  4. package/data/cursor-plugin/scripts/pushary-gate.mjs +6 -3
  5. package/data/vscode-plugin/.claude-plugin/plugin.json +1 -1
  6. package/data/vscode-plugin/CHANGELOG.md +4 -0
  7. package/data/vscode-plugin/scripts/pushary-gate.mjs +6 -4
  8. package/dist/{api-6XUVXHCP.js → api-FZWBPBK5.js} +11 -11
  9. package/dist/bin/pushary-audit.js +3 -3
  10. package/dist/bin/pushary-bell-hook.js +28 -28
  11. package/dist/bin/pushary-bell.js +12 -12
  12. package/dist/bin/pushary-calls.js +15 -15
  13. package/dist/bin/pushary-claude.js +26 -26
  14. package/dist/bin/pushary-clean.js +39 -39
  15. package/dist/bin/pushary-codex-bridge.js +23 -23
  16. package/dist/bin/pushary-codex-hook.js +34 -34
  17. package/dist/bin/pushary-codex-session.js +8 -8
  18. package/dist/bin/pushary-codex.js +16 -16
  19. package/dist/bin/pushary-connect.js +35 -35
  20. package/dist/bin/pushary-cowork.js +5 -5
  21. package/dist/bin/pushary-daemon.js +46 -46
  22. package/dist/bin/pushary-disconnect.js +30 -30
  23. package/dist/bin/pushary-display-hook.js +21 -19
  24. package/dist/bin/pushary-doctor.js +52 -50
  25. package/dist/bin/pushary-elicitation-hook.js +27 -27
  26. package/dist/bin/pushary-gemini-bridge.js +18 -18
  27. package/dist/bin/pushary-gemini-hook.js +31 -31
  28. package/dist/bin/pushary-hook.js +38 -37
  29. package/dist/bin/pushary-login.js +24 -24
  30. package/dist/bin/pushary-logout.js +30 -30
  31. package/dist/bin/pushary-mcp.js +12 -12
  32. package/dist/bin/pushary-mode.js +16 -16
  33. package/dist/bin/pushary-notification-hook.js +27 -27
  34. package/dist/bin/pushary-opencode-bridge.js +22 -22
  35. package/dist/bin/pushary-opencode-hook.js +32 -32
  36. package/dist/bin/pushary-permission-denied-hook.js +34 -34
  37. package/dist/bin/pushary-permission-hook.js +38 -37
  38. package/dist/bin/pushary-post-hook.js +28 -28
  39. package/dist/bin/pushary-prompt-hook.js +27 -27
  40. package/dist/bin/pushary-session-end-hook.js +27 -27
  41. package/dist/bin/pushary-session-start-hook.js +39 -39
  42. package/dist/bin/pushary-sessions.js +12 -12
  43. package/dist/bin/pushary-setup.js +63 -62
  44. package/dist/bin/pushary-stats.js +5 -5
  45. package/dist/bin/pushary-status.js +36 -36
  46. package/dist/bin/pushary-stop-hook.js +27 -27
  47. package/dist/bin/pushary-stopfailure-hook.js +27 -27
  48. package/dist/bin/pushary-suggestions.js +16 -16
  49. package/dist/bin/pushary-transcript-register.js +17 -17
  50. package/dist/bin/pushary-transcripts.js +25 -25
  51. package/dist/bin/pushary-upgrade.js +46 -46
  52. package/dist/bin/pushary-wait.js +16 -16
  53. package/dist/bin/pushary.js +7 -7
  54. package/dist/{chunk-AAFL6HUL.js → chunk-232N6YYN.js} +1 -1
  55. package/dist/{chunk-ETFYH5IZ.js → chunk-23EZWERU.js} +7 -7
  56. package/dist/{chunk-55OJQNBO.js → chunk-2EXFFIJ4.js} +4 -4
  57. package/dist/{chunk-7FNVZ4TK.js → chunk-2ITBFEMY.js} +1 -1
  58. package/dist/{chunk-2HCM3SOV.js → chunk-2RUMZE2W.js} +1 -1
  59. package/dist/{chunk-PZEU7LBD.js → chunk-2XFZE4WB.js} +2 -2
  60. package/dist/{chunk-OPZYY6W5.js → chunk-2YPE2YZ4.js} +8 -8
  61. package/dist/{chunk-ITOYJTIT.js → chunk-35QDWJYF.js} +5 -5
  62. package/dist/{chunk-PXBL4P2Y.js → chunk-3BDANUD4.js} +2 -2
  63. package/dist/{chunk-QJNK3Z2M.js → chunk-3GUYVDK3.js} +9 -9
  64. package/dist/{chunk-YSRKSUA6.js → chunk-3SAJYDXV.js} +3 -3
  65. package/dist/{chunk-PMAS2AZ7.js → chunk-436G6M2Q.js} +2 -2
  66. package/dist/{chunk-2TLSNTYA.js → chunk-4JHJRVPH.js} +3 -3
  67. package/dist/{chunk-I3MBDNDM.js → chunk-4VCP3ZXO.js} +1 -1
  68. package/dist/{chunk-Y7EVC2RD.js → chunk-6U6W5PUV.js} +1 -1
  69. package/dist/{chunk-RWELN5CR.js → chunk-6UBW5WKJ.js} +1 -1
  70. package/dist/{chunk-QUKCWMP7.js → chunk-7XPV5DIV.js} +6 -6
  71. package/dist/{chunk-F7M3NBZX.js → chunk-7ZFBZ66X.js} +9 -5
  72. package/dist/{chunk-DUM5HISL.js → chunk-A3MVG5ZA.js} +4 -4
  73. package/dist/{chunk-UC66ONKT.js → chunk-B2SCB7HA.js} +5 -5
  74. package/dist/{chunk-E6JFMLST.js → chunk-DVCI3LT4.js} +2 -2
  75. package/dist/{chunk-LSKWAWUO.js → chunk-DZABHISP.js} +1 -1
  76. package/dist/{chunk-35ZGLC3I.js → chunk-E3VBNFAY.js} +3 -3
  77. package/dist/{chunk-7KRQTNPA.js → chunk-EBNEIECN.js} +3 -3
  78. package/dist/{chunk-HYY7VUA2.js → chunk-EO6IGXP2.js} +1 -1
  79. package/dist/{chunk-ZVZI7MRB.js → chunk-EP3XTWKM.js} +1 -1
  80. package/dist/{chunk-DFVMNFBY.js → chunk-FOLN4OC6.js} +2 -2
  81. package/dist/{chunk-4SLIHG3G.js → chunk-FXGW5PYE.js} +4 -4
  82. package/dist/{chunk-GKDDUXW3.js → chunk-G2AHI6T3.js} +1 -1
  83. package/dist/{chunk-O5SZYNKA.js → chunk-G6TSLDXX.js} +5 -5
  84. package/dist/{chunk-CBJQSI2W.js → chunk-GR4MDWJB.js} +1 -1
  85. package/dist/{chunk-SIOCR3MZ.js → chunk-GUBKBGRX.js} +3 -3
  86. package/dist/{chunk-IDLGCJ3P.js → chunk-INUTZSZ2.js} +1 -1
  87. package/dist/{chunk-VRBCELDH.js → chunk-JGZCD72E.js} +6 -6
  88. package/dist/{chunk-LAPLQ7M7.js → chunk-JM5BGRF7.js} +4 -4
  89. package/dist/{chunk-GLEJK3WC.js → chunk-JTQRYOUL.js} +7 -7
  90. package/dist/{chunk-HJALQSTD.js → chunk-K3ECNIYM.js} +2 -2
  91. package/dist/{chunk-BBDK7TVJ.js → chunk-KNBYA7ZN.js} +1 -1
  92. package/dist/{chunk-FNCKAFWK.js → chunk-LJKYHIEL.js} +5 -5
  93. package/dist/{chunk-GWLFYYZP.js → chunk-LLEMAWUQ.js} +10 -10
  94. package/dist/{chunk-2AY4DSZT.js → chunk-M45A5FKV.js} +17 -17
  95. package/dist/{chunk-FEQWWCVR.js → chunk-MDUXVICE.js} +3 -3
  96. package/dist/{chunk-CWOQOTRL.js → chunk-MFWRUMYT.js} +1 -1
  97. package/dist/{chunk-VAIWWB5C.js → chunk-MHOW2X3O.js} +4 -4
  98. package/dist/{chunk-XVHETKVC.js → chunk-MTDXMQY7.js} +3 -3
  99. package/dist/{chunk-KGWZIM42.js → chunk-N3IUIVOF.js} +3 -3
  100. package/dist/{chunk-ME6HK32L.js → chunk-NEISAZSJ.js} +1 -1
  101. package/dist/{chunk-FN62QEJF.js → chunk-NISPP3L6.js} +5 -5
  102. package/dist/{chunk-7Z2BZV5Y.js → chunk-OMXJBAVS.js} +4 -4
  103. package/dist/{chunk-3ZEWNB5K.js → chunk-OPFQNM7J.js} +2 -2
  104. package/dist/{chunk-3EMACK2X.js → chunk-OTLSLAYC.js} +3 -3
  105. package/dist/{chunk-DRVYUPFL.js → chunk-OVGASYW6.js} +5 -5
  106. package/dist/{chunk-YT7ZMEFE.js → chunk-PAMJH6NO.js} +5 -5
  107. package/dist/{chunk-KLZCRA4D.js → chunk-PPRXZTIA.js} +2 -2
  108. package/dist/{chunk-PSK2AWNC.js → chunk-PRJ4WFAX.js} +4 -4
  109. package/dist/{chunk-YSJIEIOP.js → chunk-QBEM25H5.js} +4 -4
  110. package/dist/{chunk-RONHATBY.js → chunk-R236FVD5.js} +6 -6
  111. package/dist/{chunk-KPXHLZFB.js → chunk-RPQVCRXM.js} +2 -2
  112. package/dist/{chunk-SJZUG2UF.js → chunk-SOCH2HJN.js} +1 -1
  113. package/dist/{chunk-XNZRHX5Q.js → chunk-SQ444NOU.js} +2 -2
  114. package/dist/{chunk-AA2WZCB3.js → chunk-T55SUYTK.js} +6 -6
  115. package/dist/{chunk-G3JSEZFW.js → chunk-TBICLJ75.js} +4 -4
  116. package/dist/{chunk-ILHFZD2P.js → chunk-U56K5R3V.js} +2 -2
  117. package/dist/chunk-VB6MYKK4.js +14 -0
  118. package/dist/{chunk-M46PBEZN.js → chunk-VGGJ6JUL.js} +1 -1
  119. package/dist/{chunk-MV53KPOV.js → chunk-VVXZCLXU.js} +12 -12
  120. package/dist/{chunk-HK3O5JVJ.js → chunk-W2N32PPX.js} +7 -7
  121. package/dist/{chunk-DXRKQEH5.js → chunk-WLI5AK4W.js} +12 -12
  122. package/dist/{chunk-SZS5GQ4P.js → chunk-WQCL3W7S.js} +6 -6
  123. package/dist/{chunk-BAZEM6A5.js → chunk-WQYECJM7.js} +1 -1
  124. package/dist/{chunk-IOTFP3WG.js → chunk-X7WSH6LC.js} +4 -4
  125. package/dist/{chunk-H2M655JV.js → chunk-XE7J3P65.js} +1 -1
  126. package/dist/{chunk-JKZNJDPI.js → chunk-XEWJSAYJ.js} +2 -2
  127. package/dist/{chunk-YZGKBT6I.js → chunk-XX3LFLRL.js} +1 -1
  128. package/dist/{chunk-JALBF3NN.js → chunk-YCQNGQBN.js} +2 -2
  129. package/dist/{chunk-JBZHTBVZ.js → chunk-YL7IS222.js} +5 -5
  130. package/dist/{chunk-OCOOPIFG.js → chunk-YUZMQIFF.js} +5 -5
  131. package/dist/{chunk-KIDOILM5.js → chunk-YYNHXTUR.js} +1 -1
  132. package/dist/{chunk-FVUPVLZT.js → chunk-ZENZUSTC.js} +2 -2
  133. package/dist/{chunk-HTOT6MTO.js → chunk-ZPMJTP6N.js} +3 -3
  134. package/dist/{codex-app-cards-switch-NBQ67I4A.js → codex-app-cards-switch-46ZWEF7W.js} +11 -11
  135. package/dist/{codex-card-routing-NI7PPFQX.js → codex-card-routing-DIWEEIHR.js} +2 -2
  136. package/dist/{codex-desktop-launch-HJHD5DVS.js → codex-desktop-launch-ZPKZE3U6.js} +1 -1
  137. package/dist/{codex-session-launch-OO6WJMCA.js → codex-session-launch-VL2UKF3X.js} +20 -20
  138. package/dist/{config-RBQEVYOH.js → config-2NLURVCE.js} +3 -3
  139. package/dist/{global-upgrade-TF2D2VMG.js → global-upgrade-FZWODA3N.js} +9 -9
  140. package/dist/{identity-7YMAJTX6.js → identity-6YAS6M3P.js} +4 -4
  141. package/dist/{live-capabilities-FOOBZAR5.js → live-capabilities-ELR2PZ6B.js} +4 -4
  142. package/dist/{paths-BKI4YSPZ.js → paths-GIPZJ7LI.js} +3 -3
  143. package/dist/reapply-56OSKAMH.js +74 -0
  144. package/dist/src/index.d.ts +6 -1
  145. package/dist/src/index.js +33 -33
  146. package/dist/{upgrade-lock-ABZFJEJV.js → upgrade-lock-N7T2FTOI.js} +4 -4
  147. package/dist/{usage-BXXD7A4W.js → usage-3QWXHYRT.js} +3 -3
  148. package/package.json +1 -1
  149. package/dist/reapply-VQAXPC7J.js +0 -74
@@ -9,7 +9,7 @@ import {
9
9
  isSetupConnectMode,
10
10
  isValidApiKey,
11
11
  normalizeAgentId
12
- } from "./chunk-7KRQTNPA.js";
12
+ } from "./chunk-EBNEIECN.js";
13
13
 
14
14
  // src/setup/options.ts
15
15
  var AGENT_CHOICES = SETUP_AGENT_CHOICES;
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  pusharyDir
3
- } from "./chunk-PZEU7LBD.js";
3
+ } from "./chunk-2XFZE4WB.js";
4
4
  import {
5
5
  writeFileAtomic
6
6
  } from "./chunk-PM2NRK6Y.js";
@@ -3,7 +3,7 @@ import {
3
3
  formatVersion,
4
4
  quoteIfNeeded,
5
5
  shellDoubleQuoted
6
- } from "./chunk-G3JSEZFW.js";
6
+ } from "./chunk-TBICLJ75.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-7KRQTNPA.js";
25
+ } from "./chunk-EBNEIECN.js";
26
26
 
27
27
  // src/setup/paths.ts
28
28
  import { createHash as createHash2 } from "crypto";
@@ -6,17 +6,17 @@ import {
6
6
  postLiveSession,
7
7
  postLiveSessionUntilAccepted,
8
8
  startLiveSessionHeartbeat
9
- } from "./chunk-I3MBDNDM.js";
9
+ } from "./chunk-4VCP3ZXO.js";
10
10
  import {
11
11
  CommandReceipts,
12
12
  controllerCommandSchema
13
- } from "./chunk-BBDK7TVJ.js";
13
+ } from "./chunk-KNBYA7ZN.js";
14
14
  import {
15
15
  SESSION_IDLE_TIMEOUT_MS,
16
16
  describeIdleWindow,
17
17
  idleDeadlinePassed,
18
18
  startProcessOwnership
19
- } from "./chunk-HJALQSTD.js";
19
+ } from "./chunk-K3ECNIYM.js";
20
20
  import {
21
21
  spawnClaude
22
22
  } from "./chunk-3PSNUHC5.js";
@@ -25,18 +25,18 @@ import {
25
25
  isWaitForAnswerResponse,
26
26
  withdrawQuestion,
27
27
  writeDegraded
28
- } from "./chunk-RONHATBY.js";
28
+ } from "./chunk-R236FVD5.js";
29
29
  import {
30
30
  readCommandAck
31
- } from "./chunk-SJZUG2UF.js";
31
+ } from "./chunk-SOCH2HJN.js";
32
32
  import {
33
33
  callMcpTool,
34
34
  isRetryable
35
- } from "./chunk-UC66ONKT.js";
35
+ } from "./chunk-B2SCB7HA.js";
36
36
  import {
37
37
  projectNameFor,
38
38
  repositoryScopeFor
39
- } from "./chunk-M46PBEZN.js";
39
+ } from "./chunk-VGGJ6JUL.js";
40
40
  import {
41
41
  AGENT_QUESTION_DESCRIPTION_MAX,
42
42
  AGENT_QUESTION_HEADER_MAX,
@@ -58,7 +58,7 @@ import {
58
58
  parseCodexQuestions,
59
59
  planElicitationAsk,
60
60
  readElicitationFields
61
- } from "./chunk-7KRQTNPA.js";
61
+ } from "./chunk-EBNEIECN.js";
62
62
 
63
63
  // src/codex-question-owner.ts
64
64
  import { createHash } from "crypto";
@@ -4,13 +4,13 @@ import {
4
4
  configFailureKind,
5
5
  retryAgentCommand,
6
6
  writeSetupConfigFile
7
- } from "./chunk-2TLSNTYA.js";
7
+ } from "./chunk-4JHJRVPH.js";
8
8
  import {
9
9
  MCP_BRIDGE_BINARY
10
- } from "./chunk-DUM5HISL.js";
10
+ } from "./chunk-A3MVG5ZA.js";
11
11
  import {
12
12
  KEY_FILE_MODE
13
- } from "./chunk-55OJQNBO.js";
13
+ } from "./chunk-2EXFFIJ4.js";
14
14
  import {
15
15
  CLINE_SERVER_NAME_TAKEN,
16
16
  CLINE_SETTINGS_REFUSALS,
@@ -32,10 +32,10 @@ import {
32
32
  withClinePusharyServer,
33
33
  withRefreshedClineKey,
34
34
  withoutClinePusharyServer
35
- } from "./chunk-PZEU7LBD.js";
35
+ } from "./chunk-2XFZE4WB.js";
36
36
  import {
37
37
  resolveGlobalBinary
38
- } from "./chunk-G3JSEZFW.js";
38
+ } from "./chunk-TBICLJ75.js";
39
39
  import {
40
40
  readJsonSafe,
41
41
  writeFileAtomic,
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-POFBE6ZY.js";
4
4
  import {
5
5
  autoUpdateState
6
- } from "./chunk-PZEU7LBD.js";
6
+ } from "./chunk-2XFZE4WB.js";
7
7
  import {
8
8
  readJsonSafe,
9
9
  writeJsonAtomic
@@ -17,7 +17,7 @@ import {
17
17
  } from "./chunk-CXQWDQCJ.js";
18
18
  import {
19
19
  isAutoUpdateResult
20
- } from "./chunk-7KRQTNPA.js";
20
+ } from "./chunk-EBNEIECN.js";
21
21
 
22
22
  // src/auto-update.ts
23
23
  import { spawn } from "child_process";
@@ -1,33 +1,33 @@
1
1
  import {
2
2
  MANAGED_CLAUDE_SETTINGS_BY_PLATFORM
3
- } from "./chunk-KLZCRA4D.js";
3
+ } from "./chunk-PPRXZTIA.js";
4
4
  import {
5
5
  declinedAgentsFile,
6
6
  readDeclinedAgents
7
- } from "./chunk-E6JFMLST.js";
7
+ } from "./chunk-DVCI3LT4.js";
8
8
  import {
9
9
  OPENCODE_HOOK_BINARY,
10
10
  openCodeConfigDir,
11
11
  openCodePluginFile
12
- } from "./chunk-GLEJK3WC.js";
12
+ } from "./chunk-JTQRYOUL.js";
13
13
  import {
14
14
  openCodePluginArgv
15
- } from "./chunk-CWOQOTRL.js";
15
+ } from "./chunk-MFWRUMYT.js";
16
16
  import {
17
17
  liveCursorGateCoverage
18
- } from "./chunk-YSJIEIOP.js";
18
+ } from "./chunk-QBEM25H5.js";
19
19
  import {
20
20
  compatibleConfigFile,
21
21
  compatibleHookEvents,
22
22
  grokHome,
23
23
  parseConfigDocument
24
- } from "./chunk-JBZHTBVZ.js";
24
+ } from "./chunk-YL7IS222.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-IOTFP3WG.js";
30
+ } from "./chunk-X7WSH6LC.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-PZEU7LBD.js";
58
+ } from "./chunk-2XFZE4WB.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-7KRQTNPA.js";
72
+ } from "./chunk-EBNEIECN.js";
73
73
 
74
74
  // src/hook-wiring.ts
75
75
  import { createHash } from "crypto";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  SETUP_FLAGS
3
- } from "./chunk-7FNVZ4TK.js";
3
+ } from "./chunk-2ITBFEMY.js";
4
4
  import {
5
5
  parseFlags
6
6
  } from "./chunk-BZIBNSQE.js";
@@ -9,7 +9,7 @@ import {
9
9
  } from "./chunk-CINBAX5G.js";
10
10
  import {
11
11
  NPX_LATEST_COMMAND
12
- } from "./chunk-IDLGCJ3P.js";
12
+ } from "./chunk-INUTZSZ2.js";
13
13
  import {
14
14
  CLAUDE_CONNECTOR_GUIDE,
15
15
  CLAUDE_CONNECTOR_STEPS,
@@ -17,7 +17,7 @@ import {
17
17
  CLAUDE_CONNECTOR_URL,
18
18
  COWORK_CONNECTOR_LIMIT,
19
19
  COWORK_STANDING_INSTRUCTIONS
20
- } from "./chunk-7KRQTNPA.js";
20
+ } from "./chunk-EBNEIECN.js";
21
21
 
22
22
  // src/cli/cowork.ts
23
23
  import { readFileSync } from "fs";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  absoluteUrl
3
- } from "./chunk-KGWZIM42.js";
3
+ } from "./chunk-N3IUIVOF.js";
4
4
  import {
5
5
  KEY_SCOPE
6
- } from "./chunk-7KRQTNPA.js";
6
+ } from "./chunk-EBNEIECN.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-G3JSEZFW.js";
6
+ } from "./chunk-TBICLJ75.js";
7
7
  import {
8
8
  writeFileAtomic
9
9
  } from "./chunk-PM2NRK6Y.js";
10
10
  import {
11
11
  NPX_LATEST_COMMAND
12
- } from "./chunk-IDLGCJ3P.js";
12
+ } from "./chunk-INUTZSZ2.js";
13
13
  import {
14
14
  readSetupAgentFailures
15
- } from "./chunk-7KRQTNPA.js";
15
+ } from "./chunk-EBNEIECN.js";
16
16
 
17
17
  // src/setup/config-write.ts
18
18
  var AgentConfigWriteError = class extends Error {
@@ -10,7 +10,7 @@ import {
10
10
  uploadTranscriptRecords,
11
11
  verifyAnchoredRecipients,
12
12
  wrapSessionKey
13
- } from "./chunk-35ZGLC3I.js";
13
+ } from "./chunk-E3VBNFAY.js";
14
14
 
15
15
  // src/live-session.ts
16
16
  var LIVE_TRANSCRIPT_LIMITS = { queuedRecords: 100, recordCharacters: 32 * 1024 };
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  computerOsOfPlatform,
3
3
  isComputerAgent
4
- } from "./chunk-7KRQTNPA.js";
4
+ } from "./chunk-EBNEIECN.js";
5
5
 
6
6
  // src/setup/phone-check.ts
7
7
  var planPhoneCheck = (context) => {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  renderCommandHelp
3
- } from "./chunk-IDLGCJ3P.js";
3
+ } from "./chunk-INUTZSZ2.js";
4
4
  import {
5
5
  EXIT
6
6
  } from "./chunk-BG4HHB7E.js";
@@ -4,19 +4,19 @@ import {
4
4
  } from "./chunk-3PSNUHC5.js";
5
5
  import {
6
6
  getMachineId
7
- } from "./chunk-2HCM3SOV.js";
7
+ } from "./chunk-2RUMZE2W.js";
8
8
  import {
9
9
  readControlMode
10
- } from "./chunk-55OJQNBO.js";
10
+ } from "./chunk-2EXFFIJ4.js";
11
11
  import {
12
12
  pusharyDir
13
- } from "./chunk-PZEU7LBD.js";
13
+ } from "./chunk-2XFZE4WB.js";
14
14
  import {
15
15
  resolveGlobalBinary
16
- } from "./chunk-G3JSEZFW.js";
16
+ } from "./chunk-TBICLJ75.js";
17
17
  import {
18
18
  getApiKey
19
- } from "./chunk-FVUPVLZT.js";
19
+ } from "./chunk-ZENZUSTC.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-7KRQTNPA.js";
35
+ } from "./chunk-EBNEIECN.js";
36
36
 
37
37
  // src/daemon-entry-guard.ts
38
38
  import { mkdirSync, readFileSync } from "fs";
@@ -13,16 +13,17 @@ import {
13
13
  } from "./chunk-WHB622LP.js";
14
14
  import {
15
15
  keyPrefix
16
- } from "./chunk-55OJQNBO.js";
16
+ } from "./chunk-2EXFFIJ4.js";
17
17
  import {
18
- getBaseUrl
19
- } from "./chunk-FVUPVLZT.js";
18
+ getBaseUrl,
19
+ keyPrefixToShow
20
+ } from "./chunk-ZENZUSTC.js";
20
21
  import {
21
22
  NPX_LATEST_COMMAND
22
- } from "./chunk-IDLGCJ3P.js";
23
+ } from "./chunk-INUTZSZ2.js";
23
24
  import {
24
25
  isValidApiKey
25
- } from "./chunk-7KRQTNPA.js";
26
+ } from "./chunk-EBNEIECN.js";
26
27
 
27
28
  // src/cli/login-ui.ts
28
29
  import { hostname } from "os";
@@ -305,6 +306,8 @@ var savedKeyLine = (shadow) => {
305
306
  };
306
307
  var leaveShellKeyLine = (shadow) => shadow.newTerminalsUseSavedKey ? "Open a new terminal, or run unset PUSHARY_API_KEY, before you start an agent here." : "If new terminals still get the old key, change PUSHARY_API_KEY where it is set, then open a new terminal before you start an agent.";
307
308
  var describeShellKeyShadow = (shadow) => [shellKeyLine(shadow), savedKeyLine(shadow), leaveShellKeyLine(shadow)].filter((line) => line !== null);
309
+ var isPreviousKeyLeftActive = (previousKey, newKey) => previousKey !== null && previousKey !== newKey && isValidApiKey(previousKey);
310
+ var describePreviousKeyLeftActive = (previousKey, newKey) => isPreviousKeyLeftActive(previousKey, newKey) ? `The key this machine used before (${keyPrefixToShow(previousKey)}) is still active.` : null;
308
311
  var describeLockedKeyAccount = (key, account) => account ? `${account} has no active plan.` : `The key ${maskKey(key)} is on an account with no active plan.`;
309
312
 
310
313
  export {
@@ -327,5 +330,6 @@ export {
327
330
  describeSignedIn,
328
331
  describeKeyAccount,
329
332
  describeShellKeyShadow,
333
+ describePreviousKeyLeftActive,
330
334
  describeLockedKeyAccount
331
335
  };
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  parseSseMessages
3
- } from "./chunk-UC66ONKT.js";
3
+ } from "./chunk-B2SCB7HA.js";
4
4
  import {
5
5
  fetchAsCredential
6
- } from "./chunk-LSKWAWUO.js";
6
+ } from "./chunk-DZABHISP.js";
7
7
  import {
8
8
  malformedApiKeyMessage
9
- } from "./chunk-FVUPVLZT.js";
9
+ } from "./chunk-ZENZUSTC.js";
10
10
  import {
11
11
  NPX_LATEST_COMMAND
12
- } from "./chunk-IDLGCJ3P.js";
12
+ } from "./chunk-INUTZSZ2.js";
13
13
 
14
14
  // src/mcp-stdio-bridge.ts
15
15
  var MCP_BRIDGE_BINARY = "pushary-mcp";
@@ -1,20 +1,20 @@
1
1
  import {
2
2
  fetchAsCredential
3
- } from "./chunk-LSKWAWUO.js";
3
+ } from "./chunk-DZABHISP.js";
4
4
  import {
5
5
  keyCheckFromResponse
6
- } from "./chunk-KGWZIM42.js";
6
+ } from "./chunk-N3IUIVOF.js";
7
7
  import {
8
8
  installNetworkDefaults
9
- } from "./chunk-SIOCR3MZ.js";
9
+ } from "./chunk-GUBKBGRX.js";
10
10
  import {
11
11
  getBaseUrl
12
- } from "./chunk-FVUPVLZT.js";
12
+ } from "./chunk-ZENZUSTC.js";
13
13
  import {
14
14
  isRecord,
15
15
  isToolErrorResult,
16
16
  toolFailureCodeOfResult
17
- } from "./chunk-7KRQTNPA.js";
17
+ } from "./chunk-EBNEIECN.js";
18
18
 
19
19
  // src/retry.ts
20
20
  var isRetryable = (err) => {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  pusharyDir
3
- } from "./chunk-PZEU7LBD.js";
3
+ } from "./chunk-2XFZE4WB.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-7KRQTNPA.js";
16
+ } from "./chunk-EBNEIECN.js";
17
17
 
18
18
  // src/declined-agents-file.ts
19
19
  import { join } from "path";
@@ -5,7 +5,7 @@ import {
5
5
  MCP_CREDENTIAL_REJECTION_BODY,
6
6
  isRecord,
7
7
  responseRejectsCredential
8
- } from "./chunk-7KRQTNPA.js";
8
+ } from "./chunk-EBNEIECN.js";
9
9
 
10
10
  // src/credential-rejection.ts
11
11
  import { createHash, randomUUID } from "crypto";
@@ -4,10 +4,10 @@ import {
4
4
  } from "./chunk-P6DUWKAO.js";
5
5
  import {
6
6
  fetchAsCredential
7
- } from "./chunk-LSKWAWUO.js";
7
+ } from "./chunk-DZABHISP.js";
8
8
  import {
9
9
  getBaseUrl
10
- } from "./chunk-FVUPVLZT.js";
10
+ } from "./chunk-ZENZUSTC.js";
11
11
  import {
12
12
  writeJsonAtomicDurable
13
13
  } from "./chunk-PM2NRK6Y.js";
@@ -15,7 +15,7 @@ import {
15
15
  compressTranscriptRecord,
16
16
  redactSecretsFromContent,
17
17
  transcriptRecordPlaintext
18
- } from "./chunk-7KRQTNPA.js";
18
+ } from "./chunk-EBNEIECN.js";
19
19
 
20
20
  // src/transcript-recipient-pin.ts
21
21
  import { createHash } from "crypto";
@@ -10237,7 +10237,7 @@ var survivesDegraded = (config, toolName, toolInputs, cwd, repoKey, sessionId) =
10237
10237
  var FULL_DEFER_MODES = /* @__PURE__ */ new Set(["plan", "auto", "dontAsk"]);
10238
10238
  var BYPASS_PERMISSION_MODE = "bypassPermissions";
10239
10239
  var BYPASS_STOPS = ["consequences", "nothing"];
10240
- var DEFAULT_BYPASS_STOPS = "consequences";
10240
+ var DEFAULT_BYPASS_STOPS = "nothing";
10241
10241
  var isBypassStops = (value) => typeof value === "string" && BYPASS_STOPS.includes(value);
10242
10242
  var bypassStopsOf = (config) => isBypassStops(config.bypassStops) ? config.bypassStops : DEFAULT_BYPASS_STOPS;
10243
10243
  var isBypassPermissionMode = (permissionMode) => permissionMode === BYPASS_PERMISSION_MODE;
@@ -10378,7 +10378,8 @@ var bypassModeCoversEveryInput = (input) => input.deletesFiles !== true && input
10378
10378
  var bypassModeApplies = (input) => isBypassPermissionMode(input.permissionMode) && !isModeStateDegraded(input.modeState) && noModeOverrideIsActive(input) && input.toolInputs.length > 0;
10379
10379
  var bypassModeAllows = (input) => bypassModeApplies(input) && (bypassStopsOf(input.config) === "nothing" ? !aChosenRuleGovernsInEitherRepository(input, ruleAsksOrRefuses) : bypassModeCoversEveryInput(input));
10380
10380
  var PERMISSIONS_OFF_ASK_REASON = "Permissions are off in your agent, so Pushary only stops for risky steps like this one. You can change this in Settings on pushary.com.";
10381
- var permissionsOffLineAppliesTo = (agentType) => agentType === CLAUDE_CODE_AGENT_TYPE;
10381
+ var AGENTS_WHOSE_BYPASS_MODE_THE_PERSON_CHOSE = /* @__PURE__ */ new Set(["claude_code", "grok"]);
10382
+ var permissionsOffLineAppliesTo = (agentType) => typeof agentType === "string" && AGENTS_WHOSE_BYPASS_MODE_THE_PERSON_CHOSE.has(agentType);
10382
10383
  var PATTERN_PREFIX_WILDCARD = /(?::\*|\*)?\)$/;
10383
10384
  var CONTINUES_A_COMMAND_WORD = /^[ :]/;
10384
10385
  var ruleNarrowsThePattern = (ruleTool, pattern) => {
@@ -11066,7 +11067,6 @@ var claudeStoppedPreToolUseOutput = (reason) => stoppedOutput(claudePreToolUseOu
11066
11067
  var claudeStoppedPermissionRequestOutput = (reason) => stoppedOutput(claudePermissionRequestOutput("deny", reason), reason);
11067
11068
  var UNANSWERED_ASKS_BEFORE_PAUSE = 3;
11068
11069
  var UNPAUSABLE_ASK_TOOLS = /* @__PURE__ */ new Set([...ASKED_IN_EVERY_MODE, ...ELICITATION_EVENTS]);
11069
- var CLAUDE_CODE_AGENT_TYPE = "claude_code";
11070
11070
  var HOOK_KILL_SECONDS_BY_AGENT_TYPE = {
11071
11071
  codex: HOOK_BUDGETS.codex.budgetSeconds
11072
11072
  };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  shouldDeferToNativeMode
3
- } from "./chunk-7KRQTNPA.js";
3
+ } from "./chunk-EBNEIECN.js";
4
4
 
5
5
  // src/native-defer.ts
6
6
  var nativeDeferOptions = () => {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  isSafeReadOnlyCommand
3
- } from "./chunk-7KRQTNPA.js";
3
+ } from "./chunk-EBNEIECN.js";
4
4
 
5
5
  // src/ledger.ts
6
6
  import { appendFileSync, existsSync, mkdirSync, readFileSync, renameSync, rmSync, statSync } from "fs";
@@ -4,10 +4,10 @@ import {
4
4
  keyPrefix,
5
5
  readConfigFileKey,
6
6
  readMacAppKeyPrefix
7
- } from "./chunk-55OJQNBO.js";
7
+ } from "./chunk-2EXFFIJ4.js";
8
8
  import {
9
9
  NPX_LATEST_COMMAND
10
- } from "./chunk-IDLGCJ3P.js";
10
+ } from "./chunk-INUTZSZ2.js";
11
11
 
12
12
  // src/key-signed-out.ts
13
13
  var VERDICT_BY_CHECK = {
@@ -13,7 +13,7 @@ import {
13
13
  uninstallOpenClawPlugin,
14
14
  unsetOpenClawEntry,
15
15
  writeOpenClawEntry
16
- } from "./chunk-3EMACK2X.js";
16
+ } from "./chunk-OTLSLAYC.js";
17
17
  import {
18
18
  needsShell
19
19
  } from "./chunk-3PSNUHC5.js";
@@ -25,10 +25,10 @@ import {
25
25
  openClawDirectoriesToLookIn,
26
26
  openClawPluginFolder,
27
27
  openClawSetupReceiptDirectory
28
- } from "./chunk-PZEU7LBD.js";
28
+ } from "./chunk-2XFZE4WB.js";
29
29
  import {
30
30
  resolvePathBinary
31
- } from "./chunk-G3JSEZFW.js";
31
+ } from "./chunk-TBICLJ75.js";
32
32
  import {
33
33
  readJsonSafe,
34
34
  writeJsonAtomic
@@ -39,7 +39,7 @@ import {
39
39
  } from "./chunk-CXQWDQCJ.js";
40
40
  import {
41
41
  isRecord
42
- } from "./chunk-7KRQTNPA.js";
42
+ } from "./chunk-EBNEIECN.js";
43
43
 
44
44
  // src/hermes/plugin-payload.ts
45
45
  import { createHash } from "crypto";
@@ -7,7 +7,7 @@ import {
7
7
  } from "./chunk-BG4HHB7E.js";
8
8
  import {
9
9
  redactSecretsFromContent
10
- } from "./chunk-7KRQTNPA.js";
10
+ } from "./chunk-EBNEIECN.js";
11
11
 
12
12
  // src/cli/json.ts
13
13
  var buildEnvelope = (command, version, data, errors = []) => ({
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  questionWindowOf
3
- } from "./chunk-MV53KPOV.js";
3
+ } from "./chunk-VVXZCLXU.js";
4
4
  import {
5
5
  UNNAMED_ACTION
6
- } from "./chunk-AAFL6HUL.js";
6
+ } from "./chunk-232N6YYN.js";
7
7
  import {
8
8
  ASK_USER_TIMEOUT_MS,
9
9
  WAIT_END_TIMEOUT_MS,
@@ -12,10 +12,10 @@ import {
12
12
  isLocalQuestionHandoff,
13
13
  unavailableQuestionUnlessRefused,
14
14
  waitForQuestion
15
- } from "./chunk-RONHATBY.js";
15
+ } from "./chunk-R236FVD5.js";
16
16
  import {
17
17
  getMachineId
18
- } from "./chunk-2HCM3SOV.js";
18
+ } from "./chunk-2RUMZE2W.js";
19
19
  import {
20
20
  hookMaxWaitSeconds,
21
21
  hookWaitClamped,
@@ -24,7 +24,7 @@ import {
24
24
  refusesWhenUnanswered,
25
25
  ruleApprovesAfterItsFullWindow,
26
26
  scopeBreachReasonOf
27
- } from "./chunk-7KRQTNPA.js";
27
+ } from "./chunk-EBNEIECN.js";
28
28
 
29
29
  // src/pushed-question.ts
30
30
  var scopeQuestionOf = (verdict) => {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  readTranscriptPreference
3
- } from "./chunk-55OJQNBO.js";
3
+ } from "./chunk-2EXFFIJ4.js";
4
4
 
5
5
  // src/transcript-setting.ts
6
6
  var transcriptEnvironmentPreference = () => {
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  readExistingMachineId
3
- } from "./chunk-2HCM3SOV.js";
3
+ } from "./chunk-2RUMZE2W.js";
4
4
  import {
5
5
  getBaseUrl
6
- } from "./chunk-FVUPVLZT.js";
6
+ } from "./chunk-ZENZUSTC.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-7KRQTNPA.js";
16
+ } from "./chunk-EBNEIECN.js";
17
17
 
18
18
  // src/cli/net.ts
19
19
  import { createRequire } from "module";
@@ -6,7 +6,7 @@ import {
6
6
  DISCONNECT_AGENT_IDS,
7
7
  SETUP_AGENT_CHOICES,
8
8
  isApprovalMode
9
- } from "./chunk-7KRQTNPA.js";
9
+ } from "./chunk-EBNEIECN.js";
10
10
 
11
11
  // src/cli/mode-request.ts
12
12
  var parseDuration = (value) => {