pushary 1.9.283 → 1.9.286

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 (146) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/README.md +3 -1
  3. package/dist/{api-OJRU3MYI.js → api-TOVNW7WX.js} +12 -12
  4. package/dist/bin/pushary-ask.js +14 -14
  5. package/dist/bin/pushary-audit.js +3 -3
  6. package/dist/bin/pushary-bell-hook.js +28 -28
  7. package/dist/bin/pushary-bell.js +11 -11
  8. package/dist/bin/pushary-calls.js +14 -14
  9. package/dist/bin/pushary-claude.js +25 -25
  10. package/dist/bin/pushary-clean.js +39 -39
  11. package/dist/bin/pushary-codex-bridge.js +22 -22
  12. package/dist/bin/pushary-codex-hook.js +38 -36
  13. package/dist/bin/pushary-codex-session.js +8 -8
  14. package/dist/bin/pushary-codex.js +16 -16
  15. package/dist/bin/pushary-connect.js +35 -35
  16. package/dist/bin/pushary-cowork.js +5 -5
  17. package/dist/bin/pushary-daemon.js +115 -52
  18. package/dist/bin/pushary-disconnect.js +30 -30
  19. package/dist/bin/pushary-display-hook.js +16 -1
  20. package/dist/bin/pushary-doctor.js +60 -54
  21. package/dist/bin/pushary-elicitation-hook.js +27 -27
  22. package/dist/bin/pushary-gemini-bridge.js +17 -17
  23. package/dist/bin/pushary-gemini-hook.js +31 -31
  24. package/dist/bin/pushary-hook.js +35 -35
  25. package/dist/bin/pushary-login.js +46 -43
  26. package/dist/bin/pushary-logout.js +31 -31
  27. package/dist/bin/pushary-mcp.js +12 -12
  28. package/dist/bin/pushary-mode.js +15 -15
  29. package/dist/bin/pushary-notification-hook.js +27 -27
  30. package/dist/bin/pushary-opencode-bridge.js +21 -21
  31. package/dist/bin/pushary-opencode-hook.js +32 -32
  32. package/dist/bin/pushary-permission-denied-hook.js +34 -34
  33. package/dist/bin/pushary-permission-hook.js +35 -35
  34. package/dist/bin/pushary-post-hook.js +28 -28
  35. package/dist/bin/pushary-prompt-hook.js +27 -27
  36. package/dist/bin/pushary-session-end-hook.js +27 -27
  37. package/dist/bin/pushary-session-start-hook.js +39 -39
  38. package/dist/bin/pushary-sessions.js +12 -12
  39. package/dist/bin/pushary-setup.js +65 -61
  40. package/dist/bin/pushary-stats.js +5 -5
  41. package/dist/bin/pushary-status.js +36 -36
  42. package/dist/bin/pushary-stop-hook.js +27 -27
  43. package/dist/bin/pushary-stopfailure-hook.js +27 -27
  44. package/dist/bin/pushary-suggestions.js +15 -15
  45. package/dist/bin/pushary-transcript-register.js +16 -16
  46. package/dist/bin/pushary-transcripts.js +25 -25
  47. package/dist/bin/pushary-upgrade.js +54 -50
  48. package/dist/bin/pushary-wait.js +24 -24
  49. package/dist/bin/pushary.js +7 -7
  50. package/dist/{chunk-K4YUNJDY.js → chunk-2HA6AGLM.js} +8 -7
  51. package/dist/{chunk-6VK43QVL.js → chunk-2MQUKVMW.js} +7 -7
  52. package/dist/{chunk-JSYYVEVW.js → chunk-2NUVES3K.js} +4 -4
  53. package/dist/{chunk-RJ5HUNEE.js → chunk-2SW5J3J2.js} +1 -1
  54. package/dist/{chunk-JHYVJYGR.js → chunk-3LZPJBH7.js} +6 -6
  55. package/dist/{chunk-TBCHTCA2.js → chunk-44RAWLI3.js} +1 -1
  56. package/dist/{chunk-AKUQLREQ.js → chunk-4KPUTQPG.js} +4 -4
  57. package/dist/{chunk-5YSFXK2C.js → chunk-4TOJHGPX.js} +2 -2
  58. package/dist/{chunk-7OOQJD33.js → chunk-4Y7RNQO5.js} +3 -3
  59. package/dist/{chunk-SIP2BFVS.js → chunk-5DF6YZPG.js} +63 -7
  60. package/dist/{chunk-EGZUBQL6.js → chunk-5FZ2K4UV.js} +1 -1
  61. package/dist/{chunk-EANJH5FQ.js → chunk-64PJ5AVE.js} +5 -5
  62. package/dist/{chunk-I67ZGYEY.js → chunk-6VN46PV6.js} +5 -5
  63. package/dist/{chunk-XKSIMUZM.js → chunk-6YVIWLL2.js} +2 -2
  64. package/dist/{chunk-EUO5U5V7.js → chunk-6ZNQDNFS.js} +11 -7
  65. package/dist/{chunk-UIOTVHQB.js → chunk-6ZRSO6PM.js} +2 -2
  66. package/dist/{chunk-EDVQWYSU.js → chunk-76UDPJET.js} +4 -4
  67. package/dist/{chunk-CPNPPYQL.js → chunk-77F7TPQE.js} +3 -3
  68. package/dist/{chunk-XGWKMWKM.js → chunk-7GSBA2C2.js} +3 -3
  69. package/dist/{chunk-26RKJL2X.js → chunk-7O4XAG63.js} +2 -2
  70. package/dist/{chunk-HX3RPHIH.js → chunk-7Y7YEKUY.js} +8 -8
  71. package/dist/{chunk-XC2O4MA3.js → chunk-7ZCIUEBP.js} +1 -1
  72. package/dist/{chunk-CBA4AVFT.js → chunk-A4KQYTUZ.js} +4 -4
  73. package/dist/{chunk-YSR7QVMN.js → chunk-A533F6TF.js} +3 -3
  74. package/dist/{chunk-AIBGURF2.js → chunk-ACAMCU2Y.js} +1 -1
  75. package/dist/{chunk-7VL6QZ3C.js → chunk-BCYXPGOQ.js} +3 -3
  76. package/dist/{chunk-QU2NSBXD.js → chunk-BETDBGC7.js} +2 -2
  77. package/dist/{chunk-UOABAWQ4.js → chunk-CCDQM7RZ.js} +6 -6
  78. package/dist/{chunk-E4WNMH33.js → chunk-CDOFQJ2Z.js} +1 -1
  79. package/dist/{chunk-N6RX3ZWB.js → chunk-DBBLMMBL.js} +1 -1
  80. package/dist/{chunk-JWMDRKAO.js → chunk-DFRYI4YG.js} +10 -10
  81. package/dist/{chunk-ATWYNEN4.js → chunk-DYIU6SSG.js} +1 -1
  82. package/dist/{chunk-JP7RRADP.js → chunk-ESTQIKTS.js} +1 -1
  83. package/dist/{chunk-YARDFZND.js → chunk-EZBNWOZM.js} +2 -2
  84. package/dist/{chunk-TVQWBXV2.js → chunk-FDCGIK7G.js} +33 -28
  85. package/dist/{chunk-5RSXB22M.js → chunk-GITZUSEJ.js} +4 -4
  86. package/dist/{chunk-M3MD5Y2O.js → chunk-H7PRRSXU.js} +5 -5
  87. package/dist/{chunk-KMMO3K2C.js → chunk-HGWAPTBM.js} +21 -14
  88. package/dist/{chunk-FIAXP3LF.js → chunk-IBOJQEH3.js} +6 -4
  89. package/dist/{chunk-L2BJVSVI.js → chunk-IGDC2GMU.js} +2 -2
  90. package/dist/{chunk-VYLJWG3B.js → chunk-JBK7WRPB.js} +1 -1
  91. package/dist/{chunk-XOZZ7LFC.js → chunk-JPCVW3BA.js} +2 -2
  92. package/dist/{chunk-GS4D3NTI.js → chunk-KLYYXDR6.js} +5 -5
  93. package/dist/{chunk-J2UDVVCB.js → chunk-KM4W3CFD.js} +6 -6
  94. package/dist/{chunk-SWGR226D.js → chunk-KU5MWQNB.js} +10 -10
  95. package/dist/{chunk-CA7VX4KS.js → chunk-L4PIOZIP.js} +2 -2
  96. package/dist/{chunk-2JWCBGFX.js → chunk-LF2BFP3F.js} +3 -3
  97. package/dist/{chunk-SL6ZTQA2.js → chunk-LP2VGPHZ.js} +1 -1
  98. package/dist/{chunk-OOSOLBO2.js → chunk-MBUENM7S.js} +1 -1
  99. package/dist/{chunk-QSPYUDHD.js → chunk-MTSTB2GL.js} +1 -1
  100. package/dist/{chunk-4RPG3SFC.js → chunk-NAD2JOKF.js} +16 -6
  101. package/dist/{chunk-B7SK3EXB.js → chunk-NYVJXU6Q.js} +5 -5
  102. package/dist/{chunk-Y5INUJ2S.js → chunk-OPRYDCR4.js} +3 -3
  103. package/dist/{chunk-OYRQZWXW.js → chunk-P47NDCPH.js} +2 -2
  104. package/dist/{chunk-CWQU75DS.js → chunk-P4FD4WGC.js} +3 -3
  105. package/dist/{chunk-FQWIGDXG.js → chunk-PAY473GK.js} +1 -1
  106. package/dist/{chunk-IPJRN56U.js → chunk-PSYSXBML.js} +5 -5
  107. package/dist/{chunk-IP6BVZZL.js → chunk-PUNGQGSR.js} +6 -6
  108. package/dist/{chunk-SAFK3BQB.js → chunk-QQDGYEWB.js} +1 -1
  109. package/dist/{chunk-7PRPLYOT.js → chunk-QTNBPBYN.js} +1 -1
  110. package/dist/{chunk-M6T24IVX.js → chunk-RT4KU4JT.js} +1 -1
  111. package/dist/{chunk-73SEBA5G.js → chunk-S3IF6XHT.js} +4 -4
  112. package/dist/{chunk-HKXFHEB4.js → chunk-SNR7BUWT.js} +4 -4
  113. package/dist/{chunk-JPSCKMYH.js → chunk-SRGKENVI.js} +1 -1
  114. package/dist/{chunk-VO22G4MS.js → chunk-TQ2KJLRJ.js} +14 -12
  115. package/dist/{chunk-6MUWWEYX.js → chunk-U3K6SCMH.js} +7 -7
  116. package/dist/{chunk-T5D3F6ME.js → chunk-UGMQTJKX.js} +5 -5
  117. package/dist/{chunk-IX2DKVF2.js → chunk-V5LIBKOQ.js} +4 -4
  118. package/dist/{chunk-FNENGMPK.js → chunk-V77JIYBK.js} +1 -1
  119. package/dist/{chunk-4ZWNL3CK.js → chunk-VFPXC2HE.js} +1 -1
  120. package/dist/{chunk-DTYSJP6K.js → chunk-VVXWDBZK.js} +2 -2
  121. package/dist/{chunk-PUNIACRA.js → chunk-VZXBPQIX.js} +4 -4
  122. package/dist/{chunk-IASJJRQV.js → chunk-W3CDMHZZ.js} +3 -3
  123. package/dist/{chunk-3B3UE65E.js → chunk-WDYTF6K7.js} +12 -12
  124. package/dist/{chunk-NWFO2WGB.js → chunk-WUDKVYSQ.js} +2 -2
  125. package/dist/{chunk-YG5TIW73.js → chunk-XCPZ64EV.js} +3 -3
  126. package/dist/{chunk-ZUHELFIM.js → chunk-XNWLSADP.js} +5 -4
  127. package/dist/{chunk-OQVYOMNI.js → chunk-Y3PDFOIE.js} +4 -4
  128. package/dist/{chunk-AOLCAXRB.js → chunk-YQVGPAZV.js} +1 -1
  129. package/dist/{chunk-6RAIYGKT.js → chunk-YV7BK4UO.js} +1 -1
  130. package/dist/{chunk-OTIXTZA6.js → chunk-YXKUZSPA.js} +2 -2
  131. package/dist/{chunk-7Y3NHQSD.js → chunk-ZAMK4GF4.js} +5 -5
  132. package/dist/{chunk-6GCGRTR7.js → chunk-ZROT5ZDA.js} +1 -1
  133. package/dist/{codex-app-cards-switch-2ZVORWWV.js → codex-app-cards-switch-TZHVNF3N.js} +11 -11
  134. package/dist/{codex-card-routing-PLD74MXM.js → codex-card-routing-BDAI3C5X.js} +2 -2
  135. package/dist/{codex-desktop-launch-BDR7I3AT.js → codex-desktop-launch-BQ4XMGMF.js} +3 -3
  136. package/dist/{codex-session-launch-HZJWXLWT.js → codex-session-launch-RGPJ6DBA.js} +21 -21
  137. package/dist/{config-DY2KBMHL.js → config-L57XINHY.js} +3 -3
  138. package/dist/{global-upgrade-H4CHC3PX.js → global-upgrade-ZD6PXYIH.js} +9 -9
  139. package/dist/{identity-BEGPK37L.js → identity-ZTXVU75K.js} +4 -4
  140. package/dist/{live-capabilities-W4YZO6AH.js → live-capabilities-TFAUA6FN.js} +4 -4
  141. package/dist/{paths-J7L3IDOW.js → paths-3VDI3LAG.js} +3 -3
  142. package/dist/{reapply-3ECJVIWC.js → reapply-YJL4U5EY.js} +34 -34
  143. package/dist/src/index.js +33 -33
  144. package/dist/{upgrade-lock-UPLYK4CW.js → upgrade-lock-KNVJBN5G.js} +4 -4
  145. package/dist/{usage-ZDDF7U5L.js → usage-YDADZALP.js} +3 -3
  146. package/package.json +1 -1
@@ -4,20 +4,25 @@ import {
4
4
  } from "./chunk-3PSNUHC5.js";
5
5
  import {
6
6
  getMachineId
7
- } from "./chunk-JPSCKMYH.js";
7
+ } from "./chunk-SRGKENVI.js";
8
8
  import {
9
9
  readControlMode
10
- } from "./chunk-DTYSJP6K.js";
10
+ } from "./chunk-VVXWDBZK.js";
11
11
  import {
12
12
  pusharyDir
13
- } from "./chunk-XKSIMUZM.js";
13
+ } from "./chunk-6YVIWLL2.js";
14
+ import {
15
+ compareVersion,
16
+ formatVersion,
17
+ parseVersion
18
+ } from "./chunk-6ICPEJY5.js";
14
19
  import {
15
20
  resolveGlobalBinary,
16
21
  withoutNpmInstallConsent
17
- } from "./chunk-HKXFHEB4.js";
22
+ } from "./chunk-SNR7BUWT.js";
18
23
  import {
19
24
  getApiKey
20
- } from "./chunk-XOZZ7LFC.js";
25
+ } from "./chunk-JPCVW3BA.js";
21
26
  import {
22
27
  readJsonSafe,
23
28
  writeFileAtomic,
@@ -33,7 +38,7 @@ import {
33
38
  } from "./chunk-CXQWDQCJ.js";
34
39
  import {
35
40
  isRecord
36
- } from "./chunk-4RPG3SFC.js";
41
+ } from "./chunk-NAD2JOKF.js";
37
42
 
38
43
  // src/daemon-entry-guard.ts
39
44
  import { mkdirSync, readFileSync } from "fs";
@@ -1033,9 +1038,49 @@ var DAEMON_LOGIN_BLOCK_DESCRIPTIONS = {
1033
1038
  mac_signed_out: (at) => `the key this machine shared with the Pushary Mac app was signed out on this Mac at ${at}; run \`pushary login\` to sign in again`
1034
1039
  };
1035
1040
  var describeDaemonLoginBlock = (record) => DAEMON_LOGIN_BLOCK_DESCRIPTIONS[record.reason](record.at);
1041
+ var DAEMON_UNINSTALL_COMMAND = "pushary daemon uninstall";
1042
+ var DAEMON_INSTALL_COMMAND = "pushary daemon install";
1043
+ var DAEMON_TURN_BACK_ON = `run \`${DAEMON_INSTALL_COMMAND}\` or setup to turn it back on`;
1044
+ var TURNED_OFF_AT_UNREADABLE = { at: null };
1045
+ var turnedOffByUserPath = (dir) => join3(dir, "daemon-turned-off.json");
1046
+ var parseDaemonTurnedOffByUser = (value) => isRecord(value) && isTimestamp(value.at) ? { at: value.at } : null;
1047
+ var writeDaemonTurnedOffByUser = (options = {}) => {
1048
+ const record = { at: new Date((options.now ?? Date.now)()).toISOString() };
1049
+ writeJsonAtomicDurable(turnedOffByUserPath(options.dir ?? pusharyDir()), record, 384);
1050
+ return record;
1051
+ };
1052
+ var restoreDaemonTurnedOffByUser = (record, options = {}) => {
1053
+ writeJsonAtomicDurable(turnedOffByUserPath(options.dir ?? pusharyDir()), record, 384);
1054
+ };
1055
+ var recordDaemonTurnedOffByUser = (options = {}) => {
1056
+ try {
1057
+ return { kind: "recorded", record: writeDaemonTurnedOffByUser(options) };
1058
+ } catch (err) {
1059
+ return { kind: "failed", detail: err instanceof Error ? err.message : String(err) };
1060
+ }
1061
+ };
1062
+ var TURNED_OFF_FLOOR = [1, 9, 284];
1063
+ var DAEMON_TURNED_OFF_SINCE_VERSION = formatVersion(TURNED_OFF_FLOOR);
1064
+ var cliVersionIgnoresDaemonTurnedOff = (version) => {
1065
+ const parsed = parseVersion(version);
1066
+ return parsed !== null && compareVersion(parsed, TURNED_OFF_FLOOR) < 0;
1067
+ };
1068
+ var readDaemonTurnedOffByUser = (options = {}) => {
1069
+ const path = turnedOffByUserPath(options.dir ?? pusharyDir());
1070
+ if (!existsSync(path)) return null;
1071
+ const stored = readJsonSafe(path);
1072
+ return (stored.kind === "ok" ? parseDaemonTurnedOffByUser(stored.value) : null) ?? TURNED_OFF_AT_UNREADABLE;
1073
+ };
1074
+ var clearDaemonTurnedOffByUser = (options = {}) => {
1075
+ const path = turnedOffByUserPath(options.dir ?? pusharyDir());
1076
+ if (!existsSync(path)) return false;
1077
+ safeUnlink(path);
1078
+ return true;
1079
+ };
1080
+ var describeDaemonTurnedOffByUser = (record) => `turned off with \`${DAEMON_UNINSTALL_COMMAND}\`${record.at ? ` at ${record.at}` : ""}, so nothing starts it; ${DAEMON_TURN_BACK_ON}`;
1036
1081
  var recoverDaemonAfterLogin = (options = {}) => {
1037
1082
  const cleared = clearDaemonNeedsLogin(options);
1038
- if (!cleared || readControlMode(join3(options.dir ?? pusharyDir(), "config.json")) === "off" || !hasDaemonServiceDefinition(options)) {
1083
+ if (!cleared || readControlMode(join3(options.dir ?? pusharyDir(), "config.json")) === "off" || readDaemonTurnedOffByUser(options) !== null || !hasDaemonServiceDefinition(options)) {
1039
1084
  return { cleared, restarted: false, detail: null };
1040
1085
  }
1041
1086
  const started = manageDaemonService("start", options);
@@ -1355,6 +1400,8 @@ var ensureDaemonRunning = async (options = {}) => {
1355
1400
  return { kind: "not-configured", status: initial, detail: "Pushary is not configured on this machine" };
1356
1401
  }
1357
1402
  if (initial.kind === "running") return { kind: "running", status: initial };
1403
+ const turnedOff = readDaemonTurnedOffByUser(options);
1404
+ if (turnedOff) return { kind: "turned-off", status: initial, detail: describeDaemonTurnedOffByUser(turnedOff) };
1358
1405
  const loginBlock = readDaemonNeedsLogin(options);
1359
1406
  if (loginBlock.kind === "blocked") {
1360
1407
  return { kind: "unavailable", status: initial, detail: describeDaemonLoginBlock(loginBlock.record) };
@@ -1438,6 +1485,15 @@ export {
1438
1485
  readDaemonNeedsLogin,
1439
1486
  clearDaemonNeedsLogin,
1440
1487
  describeDaemonLoginBlock,
1488
+ DAEMON_UNINSTALL_COMMAND,
1489
+ DAEMON_TURN_BACK_ON,
1490
+ restoreDaemonTurnedOffByUser,
1491
+ recordDaemonTurnedOffByUser,
1492
+ DAEMON_TURNED_OFF_SINCE_VERSION,
1493
+ cliVersionIgnoresDaemonTurnedOff,
1494
+ readDaemonTurnedOffByUser,
1495
+ clearDaemonTurnedOffByUser,
1496
+ describeDaemonTurnedOffByUser,
1441
1497
  recoverDaemonAfterLogin,
1442
1498
  stopDaemonService,
1443
1499
  disableDaemonService,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  guardBinary
3
- } from "./chunk-XKSIMUZM.js";
3
+ } from "./chunk-6YVIWLL2.js";
4
4
 
5
5
  // src/bell/install.ts
6
6
  import { join } from "path";
@@ -4,13 +4,13 @@ import {
4
4
  configFailureKind,
5
5
  retryAgentCommand,
6
6
  writeSetupConfigFile
7
- } from "./chunk-2JWCBGFX.js";
7
+ } from "./chunk-LF2BFP3F.js";
8
8
  import {
9
9
  MCP_BRIDGE_BINARY
10
- } from "./chunk-CBA4AVFT.js";
10
+ } from "./chunk-A4KQYTUZ.js";
11
11
  import {
12
12
  KEY_FILE_MODE
13
- } from "./chunk-DTYSJP6K.js";
13
+ } from "./chunk-VVXWDBZK.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-XKSIMUZM.js";
35
+ } from "./chunk-6YVIWLL2.js";
36
36
  import {
37
37
  resolveGlobalBinary
38
- } from "./chunk-HKXFHEB4.js";
38
+ } from "./chunk-SNR7BUWT.js";
39
39
  import {
40
40
  readJsonSafe,
41
41
  writeFileAtomic,
@@ -18,18 +18,18 @@ import {
18
18
  settingSnapshot,
19
19
  writeHermesSetting,
20
20
  writeSetupReceipt
21
- } from "./chunk-AKUQLREQ.js";
21
+ } from "./chunk-4KPUTQPG.js";
22
22
  import {
23
23
  OPENCLAW_MIN_VERSION,
24
24
  OPENCLAW_PLUGIN_ID,
25
25
  OPENCLAW_PLUGIN_PACKAGE
26
- } from "./chunk-CWQU75DS.js";
26
+ } from "./chunk-P4FD4WGC.js";
27
27
  import {
28
28
  retryAgentCommand
29
- } from "./chunk-2JWCBGFX.js";
29
+ } from "./chunk-LF2BFP3F.js";
30
30
  import {
31
31
  configFilePath
32
- } from "./chunk-XOZZ7LFC.js";
32
+ } from "./chunk-JPCVW3BA.js";
33
33
  import {
34
34
  readJsonSafe,
35
35
  writeJsonAtomic
@@ -37,7 +37,7 @@ import {
37
37
  import {
38
38
  readSetupOutcomeProperties,
39
39
  redactSecretsFromContent
40
- } from "./chunk-4RPG3SFC.js";
40
+ } from "./chunk-NAD2JOKF.js";
41
41
 
42
42
  // src/hermes/shell-gate.ts
43
43
  var readHermesShellGate = async (launcher, pluginVersion = null) => {
@@ -5,7 +5,7 @@ import {
5
5
  import {
6
6
  quoteIfNeeded,
7
7
  shellDoubleQuoted
8
- } from "./chunk-HKXFHEB4.js";
8
+ } from "./chunk-SNR7BUWT.js";
9
9
  import {
10
10
  writeFileAtomic
11
11
  } from "./chunk-PM2NRK6Y.js";
@@ -25,7 +25,7 @@ import {
25
25
  PUSHARY_TOOL_PREFIX,
26
26
  isRecord,
27
27
  withHookHoldBudget
28
- } from "./chunk-4RPG3SFC.js";
28
+ } from "./chunk-NAD2JOKF.js";
29
29
 
30
30
  // src/setup/paths.ts
31
31
  import { createHash as createHash2 } from "crypto";
@@ -3,7 +3,7 @@ import {
3
3
  forkFinishWithUpgradeLock,
4
4
  installWithUpgradeLock,
5
5
  releaseAutoUpdateLock
6
- } from "./chunk-L2BJVSVI.js";
6
+ } from "./chunk-IGDC2GMU.js";
7
7
  import {
8
8
  describeAutoUpdateCheck,
9
9
  globalInstallLocation,
@@ -15,15 +15,15 @@ import {
15
15
  readAutoUpdateState,
16
16
  updateAutoUpdateState,
17
17
  upgradeEntryFor
18
- } from "./chunk-NWFO2WGB.js";
18
+ } from "./chunk-WUDKVYSQ.js";
19
19
  import {
20
20
  phoneStartIsRequired
21
- } from "./chunk-ZUHELFIM.js";
21
+ } from "./chunk-XNWLSADP.js";
22
22
  import {
23
23
  autoUpdateLock,
24
24
  autoUpdateLog,
25
25
  autoUpdateState
26
- } from "./chunk-XKSIMUZM.js";
26
+ } from "./chunk-6YVIWLL2.js";
27
27
  import {
28
28
  describeReleaseNpmHolds,
29
29
  execNpm,
@@ -33,10 +33,10 @@ import {
33
33
  npmExitedOnReleaseAge,
34
34
  readGlobalCliInstallAt,
35
35
  readGlobalPrefix
36
- } from "./chunk-HKXFHEB4.js";
36
+ } from "./chunk-SNR7BUWT.js";
37
37
  import {
38
38
  NPX_LATEST_COMMAND
39
- } from "./chunk-QU2NSBXD.js";
39
+ } from "./chunk-BETDBGC7.js";
40
40
  import {
41
41
  EXIT
42
42
  } from "./chunk-BG4HHB7E.js";
@@ -90,9 +90,11 @@ var serviceStartFellShort = (start) => start === "did_not_start" || start === "s
90
90
  var aRunningServiceDidNotComeBack = (readings) => readings.serviceWasRunning && readings.serviceStart === "did_not_start";
91
91
  var phoneStartFellShortWithoutFailing = (readings) => serviceStartFellShort(readings.serviceStart) && !aRunningServiceDidNotComeBack(readings) && !phoneStartIsRequired({ mode: readings.controlMode, policy: readings.controlPolicy, lifecycleFailed: false });
92
92
  var serviceCameBack = (start) => start === "verified" || start === "started_unverified";
93
- var serviceStaysOwedBack = (readings, owedBefore) => readings.controlPolicy !== "disabled" && !serviceCameBack(readings.serviceStart) && (owedBefore || aRunningServiceDidNotComeBack(readings));
93
+ var controlIsOff = (policy) => policy === "disabled" || policy === "turned-off";
94
+ var serviceStaysOwedBack = (readings, owedBefore) => !controlIsOff(readings.controlPolicy) && !serviceCameBack(readings.serviceStart) && (owedBefore || aRunningServiceDidNotComeBack(readings));
94
95
  var phoneStartServiceAfter = (start) => start === "started_unverified" ? "running_unverified" : "not_running";
95
96
  var DISABLED_SERVICE_NOT_REMOVED = "Upgrade installed, but the disabled background service could not be fully removed. Re-run setup with --control off.";
97
+ var TURNED_OFF_SERVICE_NOT_REMOVED = "Upgrade installed, but the background service you turned off is still there and could not be removed. Run: pushary daemon uninstall";
96
98
  var LEGACY_SERVICE_NOT_ADOPTED = "Upgrade installed and the legacy background service was stopped, but it cannot be safely adopted. Run setup with --control off, or restore its provider and native service manager.";
97
99
  var NO_KEY_FOR_PHONE_START = "Upgrade installed, but phone-start could not be reconciled because no API key was readable. Re-run setup.";
98
100
  var PHONE_START_CANNOT_RUN_HERE = "Upgrade installed, but phone-start is required on this computer and cannot run here yet. Run pushary doctor to see what it needs.";
@@ -101,6 +103,7 @@ var SERVICE_DID_NOT_START = "Upgrade installed, but the background service did n
101
103
  var describeLegacyService = (stopFailure) => stopFailure ? `Upgrade installed, but the legacy background service could not be stopped: ${stopFailure}. Run setup with --control off.` : LEGACY_SERVICE_NOT_ADOPTED;
102
104
  var describeUnreadyService = (service) => {
103
105
  if (service.controlPolicy === "disabled") return DISABLED_SERVICE_NOT_REMOVED;
106
+ if (service.controlPolicy === "turned-off") return TURNED_OFF_SERVICE_NOT_REMOVED;
104
107
  if (service.controlPolicy === "legacy") return describeLegacyService(service.legacyStopFailure);
105
108
  if (service.controlPolicy === "enabled" && !service.keyReadable) return NO_KEY_FOR_PHONE_START;
106
109
  if (service.controlPolicy === "unsupported") return PHONE_START_CANNOT_RUN_HERE;
@@ -405,6 +408,7 @@ export {
405
408
  wasRefreshed,
406
409
  instructionsLeftNoteOf,
407
410
  phoneStartFellShortWithoutFailing,
411
+ controlIsOff,
408
412
  serviceStaysOwedBack,
409
413
  phoneStartServiceAfter,
410
414
  describeUnreadyService,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  pusharyDir
3
- } from "./chunk-XKSIMUZM.js";
3
+ } from "./chunk-6YVIWLL2.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-4RPG3SFC.js";
16
+ } from "./chunk-NAD2JOKF.js";
17
17
 
18
18
  // src/declined-agents-file.ts
19
19
  import { join } from "path";
@@ -4,21 +4,21 @@ import {
4
4
  claimThrottle,
5
5
  releaseThrottle,
6
6
  reportEvent
7
- } from "./chunk-KMMO3K2C.js";
7
+ } from "./chunk-HGWAPTBM.js";
8
8
  import {
9
9
  deriveToolTarget,
10
10
  permissionDeniedAction
11
- } from "./chunk-JP7RRADP.js";
11
+ } from "./chunk-ESTQIKTS.js";
12
12
  import {
13
13
  projectNameFor
14
- } from "./chunk-AOLCAXRB.js";
14
+ } from "./chunk-YQVGPAZV.js";
15
15
  import {
16
16
  PERMISSION_ALLOWED_EVENT,
17
17
  PERMISSION_DENIED_EVENT,
18
18
  machineApprovalFor,
19
19
  machineDecisionFor,
20
20
  wireVerdictFor
21
- } from "./chunk-4RPG3SFC.js";
21
+ } from "./chunk-NAD2JOKF.js";
22
22
 
23
23
  // src/machine-decision-audit.ts
24
24
  var MACHINE_DECISION_REPORT_TIMEOUT_MS = 800;
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  SETUP_FLAGS
3
- } from "./chunk-4ZWNL3CK.js";
3
+ } from "./chunk-VFPXC2HE.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-QU2NSBXD.js";
12
+ } from "./chunk-BETDBGC7.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-4RPG3SFC.js";
20
+ } from "./chunk-NAD2JOKF.js";
21
21
 
22
22
  // src/cli/cowork.ts
23
23
  import { readFileSync } from "fs";
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  STOPPED_FROM_PUSHARY_LADDER,
3
3
  UNREAD_MODE_LADDER
4
- } from "./chunk-7PRPLYOT.js";
4
+ } from "./chunk-QTNBPBYN.js";
5
5
  import {
6
6
  createIo
7
- } from "./chunk-N6RX3ZWB.js";
7
+ } from "./chunk-DBBLMMBL.js";
8
8
  import {
9
9
  CLAUDE_CODE_AGENT,
10
10
  fetchModeState,
11
11
  getPolicy
12
- } from "./chunk-KMMO3K2C.js";
12
+ } from "./chunk-HGWAPTBM.js";
13
13
 
14
14
  // src/cli/hook-wait-ladder.ts
15
15
  var readClaudeCodeHookWaitState = async (apiKey) => {
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  projectNameFor
3
- } from "./chunk-AOLCAXRB.js";
3
+ } from "./chunk-YQVGPAZV.js";
4
4
  import {
5
5
  readConfigFileKey
6
- } from "./chunk-DTYSJP6K.js";
6
+ } from "./chunk-VVXWDBZK.js";
7
7
 
8
8
  // src/bell/fleet.ts
9
9
  import { closeSync, constants, futimesSync, lstatSync, mkdirSync, openSync, readdirSync, unlinkSync } from "fs";
@@ -6,37 +6,37 @@ import {
6
6
  postLiveSession,
7
7
  postLiveSessionUntilAccepted,
8
8
  startLiveSessionHeartbeat
9
- } from "./chunk-6GCGRTR7.js";
9
+ } from "./chunk-ZROT5ZDA.js";
10
10
  import {
11
11
  CommandReceipts,
12
12
  controllerCommandSchema
13
- } from "./chunk-OOSOLBO2.js";
13
+ } from "./chunk-MBUENM7S.js";
14
14
  import {
15
15
  SESSION_IDLE_TIMEOUT_MS,
16
16
  describeIdleWindow,
17
17
  idleDeadlinePassed,
18
18
  startProcessOwnership
19
- } from "./chunk-OYRQZWXW.js";
19
+ } from "./chunk-P47NDCPH.js";
20
20
  import {
21
21
  spawnClaude
22
22
  } from "./chunk-3PSNUHC5.js";
23
23
  import {
24
24
  readCommandAck
25
- } from "./chunk-E4WNMH33.js";
25
+ } from "./chunk-CDOFQJ2Z.js";
26
26
  import {
27
27
  isDecisionStopped,
28
28
  isWaitForAnswerResponse,
29
29
  withdrawQuestion,
30
30
  writeDegraded
31
- } from "./chunk-VO22G4MS.js";
31
+ } from "./chunk-TQ2KJLRJ.js";
32
32
  import {
33
33
  callMcpTool,
34
34
  isRetryable
35
- } from "./chunk-UOABAWQ4.js";
35
+ } from "./chunk-CCDQM7RZ.js";
36
36
  import {
37
37
  projectNameFor,
38
38
  repositoryScopeFor
39
- } from "./chunk-AOLCAXRB.js";
39
+ } from "./chunk-YQVGPAZV.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-4RPG3SFC.js";
61
+ } from "./chunk-NAD2JOKF.js";
62
62
 
63
63
  // src/codex-question-owner.ts
64
64
  import { createHash } from "crypto";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  isSafeReadOnlyCommand
3
- } from "./chunk-4RPG3SFC.js";
3
+ } from "./chunk-NAD2JOKF.js";
4
4
 
5
5
  // src/ledger.ts
6
6
  import { appendFileSync, existsSync, mkdirSync, readFileSync, renameSync, rmSync, statSync } from "fs";
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  parseSseMessages
3
- } from "./chunk-UOABAWQ4.js";
3
+ } from "./chunk-CCDQM7RZ.js";
4
4
  import {
5
5
  fetchAsCredential
6
- } from "./chunk-FIAXP3LF.js";
6
+ } from "./chunk-IBOJQEH3.js";
7
7
  import {
8
8
  malformedApiKeyMessage
9
- } from "./chunk-XOZZ7LFC.js";
9
+ } from "./chunk-JPCVW3BA.js";
10
10
  import {
11
11
  NPX_LATEST_COMMAND
12
- } from "./chunk-QU2NSBXD.js";
12
+ } from "./chunk-BETDBGC7.js";
13
13
 
14
14
  // src/mcp-stdio-bridge.ts
15
15
  var MCP_BRIDGE_BINARY = "pushary-mcp";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  pusharyFetch
3
- } from "./chunk-7OOQJD33.js";
3
+ } from "./chunk-4Y7RNQO5.js";
4
4
  import {
5
5
  getBaseUrl
6
- } from "./chunk-XOZZ7LFC.js";
6
+ } from "./chunk-JPCVW3BA.js";
7
7
  import {
8
8
  NetworkError
9
9
  } from "./chunk-CINBAX5G.js";
@@ -13,7 +13,7 @@ import {
13
13
  import {
14
14
  isValidApiKey,
15
15
  normalizeKeyScope
16
- } from "./chunk-4RPG3SFC.js";
16
+ } from "./chunk-NAD2JOKF.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;
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  shouldDeferToNativeMode
3
- } from "./chunk-4RPG3SFC.js";
3
+ } from "./chunk-NAD2JOKF.js";
4
4
 
5
5
  // src/native-defer.ts
6
6
  var nativeDeferOptions = () => {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  serviceNodeFor
3
- } from "./chunk-SIP2BFVS.js";
3
+ } from "./chunk-5DF6YZPG.js";
4
4
  import {
5
5
  OWNER_ONLY_FILE_MODE,
6
6
  readOwnerOnlyJson
@@ -14,14 +14,14 @@ import {
14
14
  codexHome,
15
15
  codexHooksJsonIn,
16
16
  isPusharyCodexCommand
17
- } from "./chunk-XKSIMUZM.js";
17
+ } from "./chunk-6YVIWLL2.js";
18
18
  import {
19
19
  DEFAULT_WINDOWS_PATHEXT,
20
20
  DIRECTLY_STARTABLE_EXTENSIONS,
21
21
  plannedGlobalPackage,
22
22
  readGlobalPrefix,
23
23
  resolvePathBinary
24
- } from "./chunk-HKXFHEB4.js";
24
+ } from "./chunk-SNR7BUWT.js";
25
25
  import {
26
26
  getPackageVersion,
27
27
  globalTranscriptRegisterEntry
@@ -8,7 +8,7 @@ import {
8
8
  PUSHARY_CLI_LATEST_FOR_POWERSHELL,
9
9
  SETUP_AGENT_CHOICES,
10
10
  isApprovalMode
11
- } from "./chunk-4RPG3SFC.js";
11
+ } from "./chunk-NAD2JOKF.js";
12
12
 
13
13
  // src/cli/mode-request.ts
14
14
  var parseDuration = (value) => {
@@ -261,7 +261,7 @@ var COMMAND_OPTIONS = {
261
261
  ["install", "Install and start the native per-user service"],
262
262
  ["start | stop | restart", "Control the installed service"],
263
263
  ["status", "Show local daemon health and PID"],
264
- ["uninstall", "Stop and remove the native service"],
264
+ ["uninstall", "Stop and remove the native service. It stays off until daemon install or setup"],
265
265
  ["foreground", "Run attached to this terminal for diagnostics"]
266
266
  ]
267
267
  };
@@ -1,25 +1,25 @@
1
1
  import {
2
2
  fetchAsCredential
3
- } from "./chunk-FIAXP3LF.js";
3
+ } from "./chunk-IBOJQEH3.js";
4
4
  import {
5
5
  keyCheckFromResponse
6
- } from "./chunk-YSR7QVMN.js";
6
+ } from "./chunk-A533F6TF.js";
7
7
  import {
8
8
  installNetworkDefaults
9
- } from "./chunk-7OOQJD33.js";
9
+ } from "./chunk-4Y7RNQO5.js";
10
10
  import {
11
11
  MacAppUnreachableError,
12
12
  macAppReplyError,
13
13
  requestThroughMacApp
14
- } from "./chunk-XKSIMUZM.js";
14
+ } from "./chunk-6YVIWLL2.js";
15
15
  import {
16
16
  getBaseUrl
17
- } from "./chunk-XOZZ7LFC.js";
17
+ } from "./chunk-JPCVW3BA.js";
18
18
  import {
19
19
  isRecord,
20
20
  isToolErrorResult,
21
21
  toolFailureCodeOfResult
22
- } from "./chunk-4RPG3SFC.js";
22
+ } from "./chunk-NAD2JOKF.js";
23
23
 
24
24
  // src/retry.ts
25
25
  var isRetryable = (err) => {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  isFinalCommandAckRefusal
3
- } from "./chunk-4RPG3SFC.js";
3
+ } from "./chunk-NAD2JOKF.js";
4
4
 
5
5
  // src/command-ack-outcome.ts
6
6
  var SETTLED_ACK = { outcome: "settled" };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  redactSecretsFromContent
3
- } from "./chunk-4RPG3SFC.js";
3
+ } from "./chunk-NAD2JOKF.js";
4
4
 
5
5
  // src/cli/terminal-row.ts
6
6
  var visibleLength = (text) => text.replace(/\x1b\[[0-9;]*m/g, "").length;
@@ -3,13 +3,13 @@ import {
3
3
  } from "./chunk-WHB622LP.js";
4
4
  import {
5
5
  ensureDaemonRunning
6
- } from "./chunk-SIP2BFVS.js";
6
+ } from "./chunk-5DF6YZPG.js";
7
7
  import {
8
8
  hookOwnerOf
9
- } from "./chunk-IX2DKVF2.js";
9
+ } from "./chunk-V5LIBKOQ.js";
10
10
  import {
11
11
  hookMeaning
12
- } from "./chunk-JP7RRADP.js";
12
+ } from "./chunk-ESTQIKTS.js";
13
13
  import {
14
14
  buildTranscriptRecords,
15
15
  changedRecipientsMessage,
@@ -24,11 +24,11 @@ import {
24
24
  uploadTranscriptRecords,
25
25
  verifyAnchoredRecipients,
26
26
  wrapSessionKey
27
- } from "./chunk-Y5INUJ2S.js";
27
+ } from "./chunk-OPRYDCR4.js";
28
28
  import {
29
29
  transcriptEnvironmentPreference,
30
30
  transcriptsEnabled
31
- } from "./chunk-TBCHTCA2.js";
31
+ } from "./chunk-44RAWLI3.js";
32
32
  import {
33
33
  external_exports,
34
34
  ownedOnlyByThisUser,
@@ -36,19 +36,19 @@ import {
36
36
  } from "./chunk-P6DUWKAO.js";
37
37
  import {
38
38
  fetchAsCredential
39
- } from "./chunk-FIAXP3LF.js";
39
+ } from "./chunk-IBOJQEH3.js";
40
40
  import {
41
41
  readTranscriptPreference
42
- } from "./chunk-DTYSJP6K.js";
42
+ } from "./chunk-VVXWDBZK.js";
43
43
  import {
44
44
  claudeConfigDir,
45
45
  codexHome,
46
46
  pusharyDir
47
- } from "./chunk-XKSIMUZM.js";
47
+ } from "./chunk-6YVIWLL2.js";
48
48
  import {
49
49
  getApiKey,
50
50
  getBaseUrl
51
- } from "./chunk-XOZZ7LFC.js";
51
+ } from "./chunk-JPCVW3BA.js";
52
52
  import {
53
53
  writeJsonAtomic,
54
54
  writeJsonAtomicDurable
@@ -61,7 +61,7 @@ import {
61
61
  isHookSource,
62
62
  isRecord,
63
63
  redactSecretsFromContent
64
- } from "./chunk-4RPG3SFC.js";
64
+ } from "./chunk-NAD2JOKF.js";
65
65
 
66
66
  // src/transcript-registration.ts
67
67
  import { createHash as createHash4 } from "crypto";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  HOOK_BUDGETS
3
- } from "./chunk-4RPG3SFC.js";
3
+ } from "./chunk-NAD2JOKF.js";
4
4
 
5
5
  // src/opencode-protocol.ts
6
6
  var OPENCODE_PLUGIN_MARKER = "pushary-opencode-plugin w1";