pushary 1.9.179 → 1.9.181

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 +9 -0
  2. package/dist/{api-YH7WN4FA.js → api-UDDZRXXB.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 +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 +42 -40
  9. package/dist/bin/pushary-codex-bridge.js +23 -23
  10. package/dist/bin/pushary-codex-hook.js +36 -36
  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 -34
  14. package/dist/bin/pushary-cowork.js +5 -5
  15. package/dist/bin/pushary-daemon.js +46 -45
  16. package/dist/bin/pushary-disconnect.js +33 -31
  17. package/dist/bin/pushary-display-hook.js +36 -26
  18. package/dist/bin/pushary-doctor.js +47 -46
  19. package/dist/bin/pushary-elicitation-hook.js +28 -28
  20. package/dist/bin/pushary-gemini-bridge.js +18 -18
  21. package/dist/bin/pushary-gemini-hook.js +32 -32
  22. package/dist/bin/pushary-hook.js +36 -36
  23. package/dist/bin/pushary-login.js +22 -22
  24. package/dist/bin/pushary-logout.js +30 -29
  25. package/dist/bin/pushary-mcp.js +12 -12
  26. package/dist/bin/pushary-mode.js +16 -16
  27. package/dist/bin/pushary-notification-hook.js +27 -27
  28. package/dist/bin/pushary-opencode-bridge.js +19 -19
  29. package/dist/bin/pushary-opencode-hook.js +34 -33
  30. package/dist/bin/pushary-permission-denied-hook.js +36 -36
  31. package/dist/bin/pushary-permission-hook.js +36 -36
  32. package/dist/bin/pushary-post-hook.js +28 -28
  33. package/dist/bin/pushary-prompt-hook.js +27 -27
  34. package/dist/bin/pushary-session-end-hook.js +27 -27
  35. package/dist/bin/pushary-session-start-hook.js +39 -38
  36. package/dist/bin/pushary-sessions.js +14 -14
  37. package/dist/bin/pushary-setup.js +55 -54
  38. package/dist/bin/pushary-stats.js +5 -5
  39. package/dist/bin/pushary-status.js +36 -35
  40. package/dist/bin/pushary-stop-hook.js +27 -27
  41. package/dist/bin/pushary-stopfailure-hook.js +27 -27
  42. package/dist/bin/pushary-suggestions.js +16 -16
  43. package/dist/bin/pushary-transcript-register.js +17 -17
  44. package/dist/bin/pushary-transcripts.js +25 -25
  45. package/dist/bin/pushary-upgrade.js +44 -43
  46. package/dist/bin/pushary-wait.js +16 -16
  47. package/dist/bin/pushary.js +7 -7
  48. package/dist/{chunk-XQGU77H7.js → chunk-255TJOUT.js} +4 -4
  49. package/dist/{chunk-HNQ2FIBA.js → chunk-2C5DS3GU.js} +2 -2
  50. package/dist/{chunk-A7G6CFZU.js → chunk-2RG454N6.js} +4 -4
  51. package/dist/{chunk-65CSOPQW.js → chunk-3GL34K67.js} +8 -8
  52. package/dist/{chunk-E25IZ5S3.js → chunk-4W4J74GE.js} +4 -4
  53. package/dist/{chunk-6KF26UUL.js → chunk-4XNQOTVR.js} +3 -3
  54. package/dist/{chunk-FHVGZ6AN.js → chunk-4XQN44EO.js} +1 -1
  55. package/dist/{chunk-POESL3CD.js → chunk-5JR6LPS2.js} +1 -1
  56. package/dist/{chunk-ZTNGM6NU.js → chunk-5LRVMXIZ.js} +4 -5
  57. package/dist/{chunk-JMPC7HL6.js → chunk-5Q3KXXT3.js} +6 -6
  58. package/dist/{chunk-KFLHGN4D.js → chunk-5ZGWUKIO.js} +3 -3
  59. package/dist/{chunk-N2L7E5NE.js → chunk-67IYCZY2.js} +5 -5
  60. package/dist/{chunk-P3MYHWF5.js → chunk-AC6Q7DEQ.js} +5 -5
  61. package/dist/{chunk-HGP2DDW3.js → chunk-AFH5LR76.js} +1 -1
  62. package/dist/{chunk-MKKRQBQF.js → chunk-AG3BUNOK.js} +3 -3
  63. package/dist/{chunk-M2P5KFP5.js → chunk-B4K5OVOE.js} +3 -3
  64. package/dist/{chunk-PJHYFHP4.js → chunk-BRFHSICQ.js} +1 -1
  65. package/dist/{chunk-AXPZZFBW.js → chunk-CEHLYLLC.js} +2 -2
  66. package/dist/{chunk-WMHXZDUT.js → chunk-CHG3NBBJ.js} +2 -2
  67. package/dist/{chunk-W27VNI6G.js → chunk-CVJ6H2VK.js} +1 -1
  68. package/dist/{chunk-AYP4GE3X.js → chunk-CXBOEYV6.js} +36 -34
  69. package/dist/{chunk-FWUF33U6.js → chunk-E3TGXTDU.js} +2 -2
  70. package/dist/{chunk-SV6AMA7J.js → chunk-E3XXZPPH.js} +10 -10
  71. package/dist/{chunk-YXLJTIGG.js → chunk-EJ6HBNXC.js} +4 -4
  72. package/dist/{chunk-I6AMLYXS.js → chunk-EVJ53Y2E.js} +4 -4
  73. package/dist/{chunk-IV4ZY2DS.js → chunk-FR6YVSPK.js} +5 -5
  74. package/dist/{chunk-J5PTUQMF.js → chunk-FSIIKAGP.js} +3 -3
  75. package/dist/{chunk-QYGO5EKA.js → chunk-HPSSY25E.js} +2 -2
  76. package/dist/{chunk-MIJ2P4FZ.js → chunk-IIW2LAPX.js} +7 -7
  77. package/dist/{chunk-QMV7WS7D.js → chunk-IMGGR66U.js} +2 -2
  78. package/dist/{chunk-RVIYAQC7.js → chunk-ITLAO546.js} +2 -2
  79. package/dist/{chunk-JDNQC5IG.js → chunk-J45L73O6.js} +5 -5
  80. package/dist/{chunk-EEHTVBKI.js → chunk-J5GK6IVD.js} +6 -6
  81. package/dist/{chunk-6W7Q6VB6.js → chunk-JBAFH5Q2.js} +2 -2
  82. package/dist/{chunk-RM3YENVK.js → chunk-JJNBX3SP.js} +3 -3
  83. package/dist/{chunk-NEAJLLIG.js → chunk-JMRXABTK.js} +5 -5
  84. package/dist/{chunk-CTJRWP6Y.js → chunk-JQCAB544.js} +3 -3
  85. package/dist/{chunk-HOVBZBAJ.js → chunk-K2H2XC52.js} +4 -4
  86. package/dist/{chunk-UJUXZCQS.js → chunk-K4IMFKPP.js} +6 -6
  87. package/dist/{chunk-XJG7YRF7.js → chunk-KFAYDRWP.js} +3 -3
  88. package/dist/{chunk-ZMJKA7CF.js → chunk-KIR4VFWX.js} +5 -5
  89. package/dist/{chunk-Z2DAWG5U.js → chunk-LRA423VV.js} +1 -1
  90. package/dist/chunk-LSR6SAV7.js +890 -0
  91. package/dist/{chunk-JSSCR6M2.js → chunk-LX37P6WT.js} +2 -2
  92. package/dist/{chunk-N24MKYZ2.js → chunk-M7KHET4S.js} +1 -1
  93. package/dist/{chunk-OD6JNTGZ.js → chunk-ME4RYRDR.js} +2 -2
  94. package/dist/{chunk-3BZ7IGGW.js → chunk-MLFPZDKD.js} +5 -5
  95. package/dist/{chunk-32YARQJC.js → chunk-N7EBHNYA.js} +5 -5
  96. package/dist/{chunk-NX33EVEP.js → chunk-NQXVL6LF.js} +1 -1
  97. package/dist/{chunk-ZPHPNTGW.js → chunk-O4IWURQP.js} +1 -1
  98. package/dist/{chunk-3NTAU6DN.js → chunk-O4IYGRNI.js} +2 -2
  99. package/dist/{chunk-6BIC2SHE.js → chunk-O6PJFSWQ.js} +2 -2
  100. package/dist/{chunk-BKZZSXEQ.js → chunk-OJWADO7D.js} +4 -4
  101. package/dist/{chunk-PFH7XMHE.js → chunk-OTY6O2LK.js} +1 -1
  102. package/dist/{chunk-2JSTCD7L.js → chunk-PEIQT6KC.js} +2 -2
  103. package/dist/{chunk-I4XCADTT.js → chunk-PTV6A5SZ.js} +1 -1
  104. package/dist/{chunk-MWKKUBHQ.js → chunk-Q7PIFWTG.js} +1 -1
  105. package/dist/{chunk-S7X3PENP.js → chunk-QZNC5XOW.js} +4 -4
  106. package/dist/{chunk-TVBND3VL.js → chunk-R2PK26FR.js} +2 -2
  107. package/dist/{chunk-OIFWZESQ.js → chunk-R3Y7S22X.js} +11 -11
  108. package/dist/{chunk-XOVAERD7.js → chunk-R4TTSINC.js} +1 -1
  109. package/dist/{chunk-WDPIZXCZ.js → chunk-RE3TYSP7.js} +3 -3
  110. package/dist/{chunk-2HMDWEER.js → chunk-RNVHH6AN.js} +1 -1
  111. package/dist/{chunk-KUB4OGLG.js → chunk-RWEKNWOJ.js} +5 -5
  112. package/dist/{chunk-7VNTZY7V.js → chunk-RY4HYXOC.js} +12 -12
  113. package/dist/{chunk-VOWNWXVE.js → chunk-SNKG7NMV.js} +4 -4
  114. package/dist/{chunk-3JXSIPLF.js → chunk-TC5H6AI3.js} +1 -1
  115. package/dist/{chunk-XWWD2KTY.js → chunk-ULYZX6VZ.js} +1 -1
  116. package/dist/{chunk-SYIAWMBA.js → chunk-UZMMHZHU.js} +13 -11
  117. package/dist/{chunk-MM5QO2ZY.js → chunk-VD3Q2A5J.js} +1 -1
  118. package/dist/{chunk-RM3F4V6A.js → chunk-VKZPDU25.js} +6 -6
  119. package/dist/{chunk-Y5BRXPL6.js → chunk-VRPVNOHT.js} +1 -1
  120. package/dist/chunk-VT4JY2AI.js +77 -0
  121. package/dist/{chunk-D7GUUTOT.js → chunk-VTWMIYBM.js} +4 -4
  122. package/dist/{chunk-ZNCRZNLJ.js → chunk-VWZCVHJG.js} +1 -1
  123. package/dist/{chunk-BNZYEIBB.js → chunk-WYF7R57R.js} +18 -18
  124. package/dist/{chunk-AYMFOYOZ.js → chunk-XDZ3O7RV.js} +9 -9
  125. package/dist/{chunk-INUW2CXK.js → chunk-YH6QFABF.js} +6 -6
  126. package/dist/{chunk-YRGDHBS5.js → chunk-YQMNDBJD.js} +4 -4
  127. package/dist/{chunk-ZMSQQVVY.js → chunk-Z7DDOLAZ.js} +1 -1
  128. package/dist/{chunk-WII73NRE.js → chunk-ZL2RR6WP.js} +1 -1
  129. package/dist/{codex-app-cards-switch-RDVTCDVO.js → codex-app-cards-switch-B3FSCCCU.js} +11 -11
  130. package/dist/{codex-card-routing-XUYIRUB7.js → codex-card-routing-WS72OC7Y.js} +2 -2
  131. package/dist/{codex-desktop-launch-EX3E3T3Q.js → codex-desktop-launch-U3PPGTWK.js} +1 -1
  132. package/dist/{codex-session-launch-TDEWJ3G6.js → codex-session-launch-SVUC7T26.js} +20 -20
  133. package/dist/{config-XDZZTOHU.js → config-4JVYJ27G.js} +3 -3
  134. package/dist/{global-upgrade-QVFP4F7D.js → global-upgrade-4FLQ53HE.js} +9 -9
  135. package/dist/{identity-Q5HWBCJY.js → identity-7H3PMMPS.js} +4 -4
  136. package/dist/{live-capabilities-G5FB5VBL.js → live-capabilities-YENLFDYL.js} +4 -4
  137. package/dist/{paths-IVCUVJM6.js → paths-PEFZYPII.js} +3 -3
  138. package/dist/reapply-GVNOR5EJ.js +70 -0
  139. package/dist/src/index.js +35 -35
  140. package/dist/{upgrade-lock-Y56NERM5.js → upgrade-lock-L5QYJEGO.js} +4 -4
  141. package/dist/{usage-J7O2QQEQ.js → usage-SKO6G5XJ.js} +3 -3
  142. package/package.json +2 -2
  143. package/dist/chunk-WIKPDEOR.js +0 -984
  144. package/dist/reapply-MQTAPBPH.js +0 -69
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  configFilePath
3
- } from "./chunk-ZPHPNTGW.js";
3
+ } from "./chunk-O4IWURQP.js";
4
4
  import {
5
5
  normalizeInstallSource
6
- } from "./chunk-AYP4GE3X.js";
6
+ } from "./chunk-CXBOEYV6.js";
7
7
 
8
8
  // src/install-source.ts
9
9
  import { readFileSync } from "fs";
@@ -4,18 +4,18 @@ import {
4
4
  claimThrottle,
5
5
  releaseThrottle,
6
6
  reportEvent
7
- } from "./chunk-7VNTZY7V.js";
7
+ } from "./chunk-RY4HYXOC.js";
8
8
  import {
9
9
  deriveToolTarget,
10
10
  permissionDeniedAction
11
- } from "./chunk-Z2DAWG5U.js";
11
+ } from "./chunk-LRA423VV.js";
12
12
  import {
13
13
  projectNameFor
14
- } from "./chunk-Y5BRXPL6.js";
14
+ } from "./chunk-VRPVNOHT.js";
15
15
  import {
16
16
  machineDecisionFor,
17
17
  wireVerdictFor
18
- } from "./chunk-AYP4GE3X.js";
18
+ } from "./chunk-CXBOEYV6.js";
19
19
 
20
20
  // src/machine-decision-audit.ts
21
21
  var reportMachineDenial = async (input, verdict, agent) => {
@@ -6,17 +6,17 @@ import {
6
6
  postLiveSession,
7
7
  postLiveSessionUntilAccepted,
8
8
  startLiveSessionHeartbeat
9
- } from "./chunk-XWWD2KTY.js";
9
+ } from "./chunk-ULYZX6VZ.js";
10
10
  import {
11
11
  CommandReceipts,
12
12
  controllerCommandSchema
13
- } from "./chunk-HGP2DDW3.js";
13
+ } from "./chunk-AFH5LR76.js";
14
14
  import {
15
15
  SESSION_IDLE_TIMEOUT_MS,
16
16
  describeIdleWindow,
17
17
  idleDeadlinePassed,
18
18
  startProcessOwnership
19
- } from "./chunk-6W7Q6VB6.js";
19
+ } from "./chunk-JBAFH5Q2.js";
20
20
  import {
21
21
  spawnClaude
22
22
  } from "./chunk-VRNGMRJA.js";
@@ -26,18 +26,18 @@ import {
26
26
  isWaitForAnswerResponse,
27
27
  withdrawQuestion,
28
28
  writeDegraded
29
- } from "./chunk-RM3F4V6A.js";
29
+ } from "./chunk-VKZPDU25.js";
30
30
  import {
31
31
  readCommandAck
32
- } from "./chunk-XOVAERD7.js";
32
+ } from "./chunk-R4TTSINC.js";
33
33
  import {
34
34
  callMcpTool,
35
35
  isRetryable
36
- } from "./chunk-32YARQJC.js";
36
+ } from "./chunk-N7EBHNYA.js";
37
37
  import {
38
38
  projectNameFor,
39
39
  repositoryScopeFor
40
- } from "./chunk-Y5BRXPL6.js";
40
+ } from "./chunk-VRPVNOHT.js";
41
41
  import {
42
42
  AGENT_QUESTION_DESCRIPTION_MAX,
43
43
  AGENT_QUESTION_HEADER_MAX,
@@ -58,7 +58,7 @@ import {
58
58
  parseCodexQuestions,
59
59
  planElicitationAsk,
60
60
  readElicitationFields
61
- } from "./chunk-AYP4GE3X.js";
61
+ } from "./chunk-CXBOEYV6.js";
62
62
 
63
63
  // src/codex-question-owner.ts
64
64
  import { createHash } from "crypto";
@@ -1,19 +1,19 @@
1
1
  import {
2
2
  macAppBridgeAvailable
3
- } from "./chunk-SYIAWMBA.js";
3
+ } from "./chunk-UZMMHZHU.js";
4
4
  import {
5
5
  keyPrefix
6
- } from "./chunk-ZTNGM6NU.js";
6
+ } from "./chunk-5LRVMXIZ.js";
7
7
  import {
8
8
  bridgeAgentKey
9
- } from "./chunk-3NTAU6DN.js";
9
+ } from "./chunk-O4IYGRNI.js";
10
10
  import {
11
11
  readJsonSafe
12
12
  } from "./chunk-PM2NRK6Y.js";
13
13
  import {
14
14
  isRecord,
15
15
  isValidApiKey
16
- } from "./chunk-AYP4GE3X.js";
16
+ } from "./chunk-CXBOEYV6.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;
@@ -5,13 +5,13 @@ import {
5
5
  OPENCLAW_ENVIRONMENT_KEYS,
6
6
  openClawEnvironmentOf,
7
7
  openClawPathsFrom
8
- } from "./chunk-3NTAU6DN.js";
8
+ } from "./chunk-O4IYGRNI.js";
9
9
  import {
10
10
  resolvePathBinary
11
- } from "./chunk-BKZZSXEQ.js";
11
+ } from "./chunk-OJWADO7D.js";
12
12
  import {
13
13
  isRecord
14
- } from "./chunk-AYP4GE3X.js";
14
+ } from "./chunk-CXBOEYV6.js";
15
15
 
16
16
  // src/openclaw/wiring-state.ts
17
17
  var OPENCLAW_PLUGIN_ID = "pushary";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  shouldDeferToNativeMode
3
- } from "./chunk-AYP4GE3X.js";
3
+ } from "./chunk-CXBOEYV6.js";
4
4
 
5
5
  // src/native-defer.ts
6
6
  var nativeDeferOptions = () => {
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-BG4HHB7E.js";
4
4
  import {
5
5
  renderCommandHelp
6
- } from "./chunk-MWKKUBHQ.js";
6
+ } from "./chunk-Q7PIFWTG.js";
7
7
  import {
8
8
  getPackageVersion
9
9
  } from "./chunk-UQTQ6HPO.js";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  resolveInstallSourceFor
3
- } from "./chunk-HNQ2FIBA.js";
3
+ } from "./chunk-2C5DS3GU.js";
4
4
  import {
5
5
  configFilePath
6
- } from "./chunk-ZPHPNTGW.js";
6
+ } from "./chunk-O4IWURQP.js";
7
7
  import {
8
8
  backupFile,
9
9
  backupFileInto,
@@ -15,7 +15,7 @@ import {
15
15
  API_KEY_PREFIX_PATTERN,
16
16
  isRecord,
17
17
  isValidApiKey
18
- } from "./chunk-AYP4GE3X.js";
18
+ } from "./chunk-CXBOEYV6.js";
19
19
 
20
20
  // src/shell-alias.ts
21
21
  import { homedir } from "os";
@@ -117,7 +117,6 @@ var isDisabledExport = (line) => {
117
117
  var KEY_ENV_FILE_NAME = "env";
118
118
  var RC_BACKUP_DIRECTORY_NAME = "backups";
119
119
  var PATH_SAFE_IN_DOUBLE_QUOTES = /^[A-Za-z0-9._\/-]+$/;
120
- var OUR_KEY_LOADER = /^[ \t]*if \[ -f ("\$HOME\/[A-Za-z0-9._\/-]+"|'(?:[^']|'\\'')+') \]; then \. \1; fi[ \t]*$/;
121
120
  var OLD_RC_BACKUP_MARK = ".pushary-backup-";
122
121
  var INDENTATION = /^[ \t]*/;
123
122
  var BLOCK_OPENER = /(?:^|[\s;])(?:then|else|do|\{|\()$/;
@@ -139,7 +138,7 @@ var keyLoaderLine = (envFile = keyEnvFilePath(), home = homedir2()) => {
139
138
  const path = shellPathOf(envFile, home);
140
139
  return `if [ -f ${path} ]; then . ${path}; fi`;
141
140
  };
142
- var isKeyLoaderLine = (line) => OUR_KEY_LOADER.test(line);
141
+ var isKeyLoaderLine = (line) => line.trim() === keyLoaderLine();
143
142
  var isActiveKeyExport = (line) => OUR_EXPORT.test(line);
144
143
  var isPusharyKeyLine = (line) => isActiveKeyExport(line) || isDisabledExport(line);
145
144
  var indentationOf = (line) => INDENTATION.exec(line)?.[0] ?? "";
@@ -3,10 +3,10 @@ import {
3
3
  forkFinishWithUpgradeLock,
4
4
  installWithUpgradeLock,
5
5
  releaseAutoUpdateLock
6
- } from "./chunk-QYGO5EKA.js";
6
+ } from "./chunk-HPSSY25E.js";
7
7
  import {
8
8
  phoneStartIsRequired
9
- } from "./chunk-MKKRQBQF.js";
9
+ } from "./chunk-AG3BUNOK.js";
10
10
  import {
11
11
  describeAutoUpdateCheck,
12
12
  globalInstallLocation,
@@ -18,12 +18,12 @@ import {
18
18
  readAutoUpdateState,
19
19
  updateAutoUpdateState,
20
20
  upgradeEntryFor
21
- } from "./chunk-TVBND3VL.js";
21
+ } from "./chunk-R2PK26FR.js";
22
22
  import {
23
23
  autoUpdateLock,
24
24
  autoUpdateLog,
25
25
  autoUpdateState
26
- } from "./chunk-3NTAU6DN.js";
26
+ } from "./chunk-O4IYGRNI.js";
27
27
  import {
28
28
  execNpm,
29
29
  fetchLatestPublishedVersion,
@@ -32,13 +32,13 @@ import {
32
32
  previewGlobalInstall,
33
33
  readGlobalCliInstallAt,
34
34
  readGlobalPrefix
35
- } from "./chunk-BKZZSXEQ.js";
35
+ } from "./chunk-OJWADO7D.js";
36
36
  import {
37
37
  EXIT
38
38
  } from "./chunk-BG4HHB7E.js";
39
39
  import {
40
40
  NPX_LATEST_COMMAND
41
- } from "./chunk-MWKKUBHQ.js";
41
+ } from "./chunk-Q7PIFWTG.js";
42
42
  import {
43
43
  LATEST_DIST_TAG,
44
44
  commandsPackage,
@@ -536,8 +536,8 @@ var loadedOnce = (load) => {
536
536
  };
537
537
 
538
538
  // src/codex-desktop-proxy.ts
539
- var loadThePhone = () => import("./api-YH7WN4FA.js");
540
- var loadTheCardRouting = () => import("./codex-card-routing-XUYIRUB7.js");
539
+ var loadThePhone = () => import("./api-UDDZRXXB.js");
540
+ var loadTheCardRouting = () => import("./codex-card-routing-WS72OC7Y.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-RDVTCDVO.js");
1100
+ const { codexAppCardsCommandOnThisMac } = await import("./codex-app-cards-switch-B3FSCCCU.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,13 +1,13 @@
1
1
  import {
2
2
  addGeminiMcpServer,
3
3
  removeGeminiMcpServer
4
- } from "./chunk-YRGDHBS5.js";
4
+ } from "./chunk-YQMNDBJD.js";
5
5
  import {
6
6
  CLAUDE_CODE_AGENT
7
- } from "./chunk-7VNTZY7V.js";
7
+ } from "./chunk-RY4HYXOC.js";
8
8
  import {
9
9
  compatibleToolLookup
10
- } from "./chunk-Z2DAWG5U.js";
10
+ } from "./chunk-LRA423VV.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-3NTAU6DN.js";
22
+ } from "./chunk-O4IYGRNI.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-AYP4GE3X.js";
33
+ } from "./chunk-CXBOEYV6.js";
34
34
 
35
35
  // src/config-document.ts
36
36
  import { parse, stringify } from "smol-toml";
@@ -4,13 +4,13 @@ import {
4
4
  configFailureKind,
5
5
  retryAgentCommand,
6
6
  writeSetupConfigFile
7
- } from "./chunk-CTJRWP6Y.js";
7
+ } from "./chunk-JQCAB544.js";
8
8
  import {
9
9
  MCP_BRIDGE_BINARY
10
- } from "./chunk-RM3YENVK.js";
10
+ } from "./chunk-JJNBX3SP.js";
11
11
  import {
12
12
  KEY_FILE_MODE
13
- } from "./chunk-ZTNGM6NU.js";
13
+ } from "./chunk-5LRVMXIZ.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-3NTAU6DN.js";
35
+ } from "./chunk-O4IYGRNI.js";
36
36
  import {
37
37
  resolveGlobalBinary
38
- } from "./chunk-BKZZSXEQ.js";
38
+ } from "./chunk-OJWADO7D.js";
39
39
  import {
40
40
  readJsonSafe,
41
41
  writeFileAtomic,
@@ -4,7 +4,7 @@ import {
4
4
  import {
5
5
  RETRY_ACK,
6
6
  refusedReceiptMessage
7
- } from "./chunk-XOVAERD7.js";
7
+ } from "./chunk-R4TTSINC.js";
8
8
 
9
9
  // src/command-receipts.ts
10
10
  import { randomUUID } from "crypto";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  realpath
3
- } from "./chunk-2JSTCD7L.js";
3
+ } from "./chunk-PEIQT6KC.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-BKZZSXEQ.js";
15
+ } from "./chunk-OJWADO7D.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-AYP4GE3X.js";
28
+ } from "./chunk-CXBOEYV6.js";
29
29
 
30
30
  // src/live-capabilities.ts
31
31
  import { execFileSync } from "child_process";
@@ -4,10 +4,10 @@ import {
4
4
  } from "./chunk-55L4JSPA.js";
5
5
  import {
6
6
  fetchAsCredential
7
- } from "./chunk-PJHYFHP4.js";
7
+ } from "./chunk-BRFHSICQ.js";
8
8
  import {
9
9
  getBaseUrl
10
- } from "./chunk-ZPHPNTGW.js";
10
+ } from "./chunk-O4IWURQP.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-AYP4GE3X.js";
18
+ } from "./chunk-CXBOEYV6.js";
19
19
 
20
20
  // src/transcript-recipient-pin.ts
21
21
  import { createHash } from "crypto";
@@ -5,7 +5,7 @@ import {
5
5
  MCP_CREDENTIAL_REJECTION_BODY,
6
6
  isRecord,
7
7
  responseRejectsCredential
8
- } from "./chunk-AYP4GE3X.js";
8
+ } from "./chunk-CXBOEYV6.js";
9
9
 
10
10
  // src/credential-rejection.ts
11
11
  import { createHash, randomUUID } from "crypto";
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  callDecisionStore,
3
3
  identifyingToolInput
4
- } from "./chunk-7VNTZY7V.js";
4
+ } from "./chunk-RY4HYXOC.js";
5
5
  import {
6
6
  canonicalJson
7
- } from "./chunk-3NTAU6DN.js";
7
+ } from "./chunk-O4IYGRNI.js";
8
8
 
9
9
  // src/phone-approval.ts
10
10
  import { createHash } from "crypto";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  pusharyDir
3
- } from "./chunk-3NTAU6DN.js";
3
+ } from "./chunk-O4IYGRNI.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-AYP4GE3X.js";
16
+ } from "./chunk-CXBOEYV6.js";
17
17
 
18
18
  // src/declined-agents-file.ts
19
19
  import { join } from "path";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  redactSecretsFromContent
3
- } from "./chunk-AYP4GE3X.js";
3
+ } from "./chunk-CXBOEYV6.js";
4
4
 
5
5
  // src/cli/terminal-row.ts
6
6
  var visibleLength = (text) => text.replace(/\x1b\[[0-9;]*m/g, "").length;
@@ -1,3 +1,34 @@
1
+ // ../contracts/src/hook-runtime.ts
2
+ var HOOK_BUDGETS = {
3
+ claude: { budgetSeconds: 600, guardSeconds: 10 },
4
+ codex: { budgetSeconds: 180, guardSeconds: 10 },
5
+ gemini: { budgetSeconds: 180, guardSeconds: 10 },
6
+ // The Cursor gate is a dependency-free .mjs that cannot import this module; it
7
+ // mirrors these as MAX_BLOCK_MS (45s) inside its 60s failClosed budget.
8
+ cursor: { budgetSeconds: 60, guardSeconds: 15 },
9
+ vscode: { budgetSeconds: 60, guardSeconds: 15 },
10
+ // OpenCode kills nothing and waits forever: `Permission.ask` blocks on a
11
+ // `Deferred` with no deadline of its own, so this budget is ours to choose
12
+ // rather than one we are told. Chosen to match Claude Code, because what it
13
+ // bounds is how long the person's tool call sits unanswered before Pushary
14
+ // stops asking and hands it back to the terminal.
15
+ opencode: { budgetSeconds: 120, guardSeconds: 10 },
16
+ // The hook-compatible agents take a per-hook `timeout` in seconds exactly as
17
+ // Claude Code does, and `compatibleHookEvents` writes Claude's own numbers into
18
+ // their config, so what we may wait for is what we registered for.
19
+ qwen: { budgetSeconds: 600, guardSeconds: 10 },
20
+ codebuddy: { budgetSeconds: 600, guardSeconds: 10 },
21
+ qoder: { budgetSeconds: 600, guardSeconds: 10 },
22
+ droid: { budgetSeconds: 600, guardSeconds: 10 },
23
+ devin: { budgetSeconds: 600, guardSeconds: 10 },
24
+ antigravity: { budgetSeconds: 600, guardSeconds: 10 },
25
+ grok: { budgetSeconds: 600, guardSeconds: 10 }
26
+ };
27
+ var hookMaxWaitSeconds = (agent) => Math.max(HOOK_BUDGETS[agent].budgetSeconds - HOOK_BUDGETS[agent].guardSeconds, 1);
28
+ var OPENCODE_APPROVAL_EVENT = "permission.ask";
29
+ var KILL_REASON = "Stopped by user, this agent was halted from Pushary";
30
+ var DECISION_STOP_REASON = "Approval was cancelled or became unavailable. Retry only after resolving it.";
31
+
1
32
  // ../contracts/src/redaction.ts
2
33
  var CREDENTIAL_NAME = String.raw`(?:authorization|secret|token|password|passwd|api[_-]?key|access[_-]?key|client[_-]?secret|private[_-]?key)["']?`;
3
34
  var CREDENTIAL_KEY = String.raw`${CREDENTIAL_NAME}\s*[=:]\s*`;
@@ -4796,32 +4827,6 @@ var INSTALL_SOURCES = [
4796
4827
  ];
4797
4828
  var isInstallSource = (value) => typeof value === "string" && INSTALL_SOURCES.includes(value);
4798
4829
  var normalizeInstallSource = (value) => isInstallSource(value) ? value : "unknown";
4799
- var HOOK_BUDGETS = {
4800
- claude: { budgetSeconds: 600, guardSeconds: 10 },
4801
- codex: { budgetSeconds: 180, guardSeconds: 10 },
4802
- gemini: { budgetSeconds: 180, guardSeconds: 10 },
4803
- // The Cursor gate is a dependency-free .mjs that cannot import this module; it
4804
- // mirrors these as MAX_BLOCK_MS (45s) inside its 60s failClosed budget.
4805
- cursor: { budgetSeconds: 60, guardSeconds: 15 },
4806
- vscode: { budgetSeconds: 60, guardSeconds: 15 },
4807
- // OpenCode kills nothing and waits forever: `Permission.ask` blocks on a
4808
- // `Deferred` with no deadline of its own, so this budget is ours to choose
4809
- // rather than one we are told. Chosen to match Claude Code, because what it
4810
- // bounds is how long the person's tool call sits unanswered before Pushary
4811
- // stops asking and hands it back to the terminal.
4812
- opencode: { budgetSeconds: 120, guardSeconds: 10 },
4813
- // The hook-compatible agents take a per-hook `timeout` in seconds exactly as
4814
- // Claude Code does, and `compatibleHookEvents` writes Claude's own numbers into
4815
- // their config, so what we may wait for is what we registered for.
4816
- qwen: { budgetSeconds: 600, guardSeconds: 10 },
4817
- codebuddy: { budgetSeconds: 600, guardSeconds: 10 },
4818
- qoder: { budgetSeconds: 600, guardSeconds: 10 },
4819
- droid: { budgetSeconds: 600, guardSeconds: 10 },
4820
- devin: { budgetSeconds: 600, guardSeconds: 10 },
4821
- antigravity: { budgetSeconds: 600, guardSeconds: 10 },
4822
- grok: { budgetSeconds: 600, guardSeconds: 10 }
4823
- };
4824
- var hookMaxWaitSeconds = (agent) => Math.max(HOOK_BUDGETS[agent].budgetSeconds - HOOK_BUDGETS[agent].guardSeconds, 1);
4825
4830
  var HOOK_HOLD_BUDGET_FLAG = "--hold-budget";
4826
4831
  var HOOK_HOLD_BUDGET_ENV = "PUSHARY_HOLD_BUDGET_SECONDS";
4827
4832
  var HOOK_BRIDGE_SOURCE_FLAG = "--source";
@@ -4852,7 +4857,6 @@ var hookWaitDeadline = (startMs, policyWaitSeconds, agent, nowMs) => {
4852
4857
  var hookWaitClamped = (startMs, policyWaitSeconds, agent, nowMs) => startMs + hookMaxWaitSeconds(agent) * 1e3 < nowMs + Math.max(policyWaitSeconds, 0) * 1e3;
4853
4858
  var effectiveWaitSeconds = (timeoutAction, policySeconds, agent) => timeoutAction === "wait" ? hookMaxWaitSeconds(agent) : policySeconds;
4854
4859
  var isHookSource = (value) => typeof value === "string" && HOOK_SOURCES.includes(value);
4855
- var OPENCODE_APPROVAL_EVENT = "permission.ask";
4856
4860
  var hasNativeApprovalPrompt = (source, event) => !(source === "cursor" && event === "preToolUse") && !(source === "antigravity" && event === "PreToolUse");
4857
4861
  var SUPPORT_EMAIL = "business@pushary.com";
4858
4862
  var SUPPORT_DISCORD = "https://discord.gg/9v3VvUByrr";
@@ -9346,7 +9350,6 @@ var resolvePolicyAcross = (config, toolName, modeOverride, toolInputs, cwd, repo
9346
9350
  return toolInputs.map((input) => resolvePolicy(config, toolName, modeOverride, input, cwd, repoKey, sessionId)).reduce(strictestPolicy);
9347
9351
  };
9348
9352
  var isModeStateDegraded = (state) => state?.degraded === true;
9349
- var KILL_REASON = "Stopped by user, this agent was halted from Pushary";
9350
9353
  var GATE_ALLOW_SOURCE = {
9351
9354
  allowlist: "allowlist",
9352
9355
  policy: "policy"
@@ -10141,7 +10144,6 @@ var claudeElicitationOutput = (event, action, content) => ({
10141
10144
  });
10142
10145
  var renderElicitationOutput = (event, action, content) => ELICITATION_EVENTS.includes(event) ? JSON.stringify(claudeElicitationOutput(event, action, content)) : void 0;
10143
10146
  var UNVERIFIABLE_APPROVAL_REASON = "Pushary could not create a verifiable approval. Retry the action.";
10144
- var DECISION_STOP_REASON = "Approval was cancelled or became unavailable. Retry only after resolving it.";
10145
10147
  var WITHDRAWN_APPROVAL_REASON = "The phone question was withdrawn. Approve in the current client.";
10146
10148
  var PLAN_DECLINED_REASON = "Plan declined from the phone. Ask what to change before coding.";
10147
10149
  var claudeStoppedPreToolUseOutput = (reason) => stoppedOutput(claudePreToolUseOutput("deny", reason), reason);
@@ -10296,6 +10298,11 @@ var hookActivationResult = (report) => {
10296
10298
  };
10297
10299
 
10298
10300
  export {
10301
+ HOOK_BUDGETS,
10302
+ hookMaxWaitSeconds,
10303
+ OPENCODE_APPROVAL_EVENT,
10304
+ KILL_REASON,
10305
+ DECISION_STOP_REASON,
10299
10306
  AUDIT_CHECKPOINT_PINNED_KEY_IDS,
10300
10307
  AUDIT_CHECKPOINT_MAX_AGE_MS,
10301
10308
  AUDIT_CHAIN_FINDING_SEVERITY,
@@ -10494,8 +10501,6 @@ export {
10494
10501
  agentQuestionContext,
10495
10502
  answersToQuestionsAsAsked,
10496
10503
  normalizeInstallSource,
10497
- HOOK_BUDGETS,
10498
- hookMaxWaitSeconds,
10499
10504
  HOOK_HOLD_BUDGET_ENV,
10500
10505
  withHookHoldBudget,
10501
10506
  hookCommandHoldBudget,
@@ -10505,7 +10510,6 @@ export {
10505
10510
  hookWaitClamped,
10506
10511
  effectiveWaitSeconds,
10507
10512
  isHookSource,
10508
- OPENCODE_APPROVAL_EVENT,
10509
10513
  hasNativeApprovalPrompt,
10510
10514
  SUPPORT_EMAIL,
10511
10515
  SUPPORT_DISCORD,
@@ -10534,7 +10538,6 @@ export {
10534
10538
  buildDecisionEpisodeFeatures,
10535
10539
  resolveAutoResolveOrigin,
10536
10540
  resolvePolicy,
10537
- KILL_REASON,
10538
10541
  isGateRefusal,
10539
10542
  PUSHARY_TOOL_PREFIX,
10540
10543
  PUSHARY_CONNECTOR_TOOL_PREFIXES,
@@ -10615,7 +10618,6 @@ export {
10615
10618
  gateOutputFor,
10616
10619
  renderElicitationOutput,
10617
10620
  UNVERIFIABLE_APPROVAL_REASON,
10618
- DECISION_STOP_REASON,
10619
10621
  WITHDRAWN_APPROVAL_REASON,
10620
10622
  PLAN_DECLINED_REASON,
10621
10623
  claudeStoppedPreToolUseOutput,
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  claudeConfigDir
3
- } from "./chunk-3NTAU6DN.js";
3
+ } from "./chunk-O4IYGRNI.js";
4
4
  import {
5
5
  claudePermissionRulesFromSettings
6
- } from "./chunk-AYP4GE3X.js";
6
+ } from "./chunk-CXBOEYV6.js";
7
7
 
8
8
  // src/claude-permission-rules.ts
9
9
  import { readFileSync, statSync } from "fs";
@@ -3,13 +3,13 @@ import {
3
3
  } from "./chunk-WHB622LP.js";
4
4
  import {
5
5
  ensureDaemonRunning
6
- } from "./chunk-EEHTVBKI.js";
6
+ } from "./chunk-J5GK6IVD.js";
7
7
  import {
8
8
  hookOwnerOf
9
- } from "./chunk-YRGDHBS5.js";
9
+ } from "./chunk-YQMNDBJD.js";
10
10
  import {
11
11
  hookMeaning
12
- } from "./chunk-Z2DAWG5U.js";
12
+ } from "./chunk-LRA423VV.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-M2P5KFP5.js";
27
+ } from "./chunk-B4K5OVOE.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-3JXSIPLF.js";
36
+ } from "./chunk-TC5H6AI3.js";
37
37
  import {
38
38
  fetchAsCredential
39
- } from "./chunk-PJHYFHP4.js";
39
+ } from "./chunk-BRFHSICQ.js";
40
40
  import {
41
41
  readTranscriptPreference
42
- } from "./chunk-ZTNGM6NU.js";
42
+ } from "./chunk-5LRVMXIZ.js";
43
43
  import {
44
44
  claudeConfigDir,
45
45
  codexHome,
46
46
  pusharyDir
47
- } from "./chunk-3NTAU6DN.js";
47
+ } from "./chunk-O4IYGRNI.js";
48
48
  import {
49
49
  getApiKey,
50
50
  getBaseUrl
51
- } from "./chunk-ZPHPNTGW.js";
51
+ } from "./chunk-O4IWURQP.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-AYP4GE3X.js";
63
+ } from "./chunk-CXBOEYV6.js";
64
64
 
65
65
  // src/transcript-registration.ts
66
66
  import { createHash as createHash4 } from "crypto";
@@ -13,16 +13,16 @@ import {
13
13
  } from "./chunk-WHB622LP.js";
14
14
  import {
15
15
  keyPrefix
16
- } from "./chunk-ZTNGM6NU.js";
16
+ } from "./chunk-5LRVMXIZ.js";
17
17
  import {
18
18
  getBaseUrl
19
- } from "./chunk-ZPHPNTGW.js";
19
+ } from "./chunk-O4IWURQP.js";
20
20
  import {
21
21
  NPX_LATEST_COMMAND
22
- } from "./chunk-MWKKUBHQ.js";
22
+ } from "./chunk-Q7PIFWTG.js";
23
23
  import {
24
24
  isValidApiKey
25
- } from "./chunk-AYP4GE3X.js";
25
+ } from "./chunk-CXBOEYV6.js";
26
26
 
27
27
  // src/cli/login-ui.ts
28
28
  import { hostname } from "os";