pushary 1.9.230 → 1.9.232

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 (157) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/README.md +20 -18
  3. package/data/SKILL.md +8 -8
  4. package/data/cursor-plugin/.cursor-plugin/plugin.json +1 -1
  5. package/data/cursor-plugin/CHANGELOG.md +4 -0
  6. package/data/cursor-plugin/README.md +1 -1
  7. package/data/cursor-plugin/skills/pushary/SKILL.md +7 -7
  8. package/data/openclaw-plugin/README.md +3 -3
  9. package/data/openclaw-plugin/dist/gate-result.js +1 -1
  10. package/data/vscode-plugin/.claude-plugin/plugin.json +1 -1
  11. package/data/vscode-plugin/CHANGELOG.md +5 -0
  12. package/data/vscode-plugin/README.md +3 -3
  13. package/data/vscode-plugin/scripts/pushary-gate.mjs +2 -2
  14. package/data/vscode-plugin/skills/pushary/SKILL.md +7 -7
  15. package/dist/{api-VFQNIMMQ.js → api-OGSNXX5I.js} +12 -11
  16. package/dist/bin/pushary-audit.js +3 -3
  17. package/dist/bin/pushary-bell-hook.js +31 -30
  18. package/dist/bin/pushary-bell.js +13 -12
  19. package/dist/bin/pushary-calls.js +21 -19
  20. package/dist/bin/pushary-claude.js +36 -35
  21. package/dist/bin/pushary-clean.js +47 -46
  22. package/dist/bin/pushary-codex-bridge.js +25 -24
  23. package/dist/bin/pushary-codex-hook.js +37 -36
  24. package/dist/bin/pushary-codex-session.js +8 -8
  25. package/dist/bin/pushary-codex.js +17 -16
  26. package/dist/bin/pushary-connect.js +37 -36
  27. package/dist/bin/pushary-cowork.js +5 -5
  28. package/dist/bin/pushary-daemon.js +71 -70
  29. package/dist/bin/pushary-disconnect.js +33 -32
  30. package/dist/bin/pushary-display-hook.js +20 -3
  31. package/dist/bin/pushary-doctor.js +78 -77
  32. package/dist/bin/pushary-elicitation-hook.js +28 -27
  33. package/dist/bin/pushary-gemini-bridge.js +20 -19
  34. package/dist/bin/pushary-gemini-hook.js +34 -33
  35. package/dist/bin/pushary-hook.js +38 -37
  36. package/dist/bin/pushary-login.js +24 -23
  37. package/dist/bin/pushary-logout.js +31 -30
  38. package/dist/bin/pushary-mcp.js +15 -14
  39. package/dist/bin/pushary-mode.js +17 -16
  40. package/dist/bin/pushary-notification-hook.js +28 -27
  41. package/dist/bin/pushary-opencode-bridge.js +27 -26
  42. package/dist/bin/pushary-opencode-hook.js +45 -44
  43. package/dist/bin/pushary-permission-denied-hook.js +37 -36
  44. package/dist/bin/pushary-permission-hook.js +38 -37
  45. package/dist/bin/pushary-post-hook.js +29 -28
  46. package/dist/bin/pushary-prompt-hook.js +28 -27
  47. package/dist/bin/pushary-session-end-hook.js +31 -30
  48. package/dist/bin/pushary-session-start-hook.js +41 -40
  49. package/dist/bin/pushary-sessions.js +13 -12
  50. package/dist/bin/pushary-setup.js +96 -94
  51. package/dist/bin/pushary-stats.js +7 -7
  52. package/dist/bin/pushary-status.js +38 -37
  53. package/dist/bin/pushary-stop-hook.js +28 -27
  54. package/dist/bin/pushary-stopfailure-hook.js +28 -27
  55. package/dist/bin/pushary-suggestions.js +17 -16
  56. package/dist/bin/pushary-transcript-register.js +18 -17
  57. package/dist/bin/pushary-transcripts.js +28 -27
  58. package/dist/bin/pushary-upgrade.js +65 -64
  59. package/dist/bin/pushary-wait.js +17 -16
  60. package/dist/bin/pushary.js +8 -7
  61. package/dist/{chunk-AHFVMYLC.js → chunk-22N3UUS4.js} +3 -3
  62. package/dist/{chunk-SYBYJBIC.js → chunk-2R5HU7EL.js} +13 -13
  63. package/dist/{chunk-NTXYJQMD.js → chunk-2SHF7DI5.js} +5 -3
  64. package/dist/{chunk-BQAAS4P4.js → chunk-2UUCN62T.js} +3 -3
  65. package/dist/{chunk-BVLYIGHM.js → chunk-32ZIGQNS.js} +1 -1
  66. package/dist/{chunk-45YY6DBO.js → chunk-3DME4GIN.js} +8 -8
  67. package/dist/{chunk-ZPHONVJD.js → chunk-3ZDGQGBL.js} +8 -8
  68. package/dist/{chunk-YQMZ4VE7.js → chunk-4PWUPWPY.js} +2 -2
  69. package/dist/{chunk-PL2EJ55K.js → chunk-4UKOA6F5.js} +3 -3
  70. package/dist/{chunk-TJYUSDL5.js → chunk-546OR2Y5.js} +4 -4
  71. package/dist/{chunk-NNBCKQC6.js → chunk-5F2FKQQ6.js} +2 -2
  72. package/dist/{chunk-J3GMEUVP.js → chunk-5JB4JJF5.js} +1 -1
  73. package/dist/chunk-6ICPEJY5.js +20 -0
  74. package/dist/{chunk-2ZLMVIB5.js → chunk-A54UFNGF.js} +1 -1
  75. package/dist/{chunk-NPCYWBY5.js → chunk-AAP2HENZ.js} +1 -1
  76. package/dist/{chunk-I3MD3R2D.js → chunk-ARBMPOYR.js} +3 -3
  77. package/dist/{chunk-7W6GRR6B.js → chunk-AX6S5V22.js} +1 -1
  78. package/dist/{chunk-MJIMTNKY.js → chunk-C4PGW3PU.js} +2 -2
  79. package/dist/{chunk-YEBUFSBO.js → chunk-C4SPXQAE.js} +2 -2
  80. package/dist/{chunk-QTJWBUA4.js → chunk-CIT3XX7B.js} +12 -12
  81. package/dist/{chunk-5GEKKXQK.js → chunk-DOC3PQTD.js} +1 -1
  82. package/dist/{chunk-ASAT72UO.js → chunk-E6XGP76X.js} +1 -1
  83. package/dist/{chunk-B2TX7FE7.js → chunk-ETIAYTAI.js} +1 -1
  84. package/dist/{chunk-B7NX5VK4.js → chunk-EVGZE3TK.js} +2 -2
  85. package/dist/{chunk-WKSI54F2.js → chunk-FFMM7VZH.js} +3 -3
  86. package/dist/{chunk-E4HPZ6G5.js → chunk-FG2EF7PP.js} +12 -30
  87. package/dist/{chunk-X7YGD2Y6.js → chunk-FZMLD3MF.js} +9 -4
  88. package/dist/{chunk-TCYIDR7T.js → chunk-G6ZSGVZL.js} +3 -3
  89. package/dist/{chunk-VLPIMIYD.js → chunk-GA4IZMXT.js} +3 -3
  90. package/dist/{chunk-YRV2GA2V.js → chunk-GIF3SFYU.js} +4 -4
  91. package/dist/{chunk-NTMFDJKD.js → chunk-GKWFLK7K.js} +7 -7
  92. package/dist/{chunk-YY2EAK3H.js → chunk-HCKJEXJJ.js} +1 -1
  93. package/dist/{chunk-XFWZ3WAD.js → chunk-HU5IFHHG.js} +3 -3
  94. package/dist/{chunk-MVIQ4BNA.js → chunk-HWQFHEHX.js} +2 -2
  95. package/dist/{chunk-7LP4B5KW.js → chunk-J2GQIBMK.js} +14 -2
  96. package/dist/{chunk-UCWQPCIX.js → chunk-J4X5T5DO.js} +25 -17
  97. package/dist/{chunk-TYOPOA3Q.js → chunk-JGEIHCPR.js} +6 -6
  98. package/dist/{chunk-VKYZ4YUV.js → chunk-JGVXURHK.js} +17 -15
  99. package/dist/{chunk-OUTUSZGR.js → chunk-JZZ62IV5.js} +4 -4
  100. package/dist/{chunk-JIQIHE3T.js → chunk-KABI55PA.js} +3 -3
  101. package/dist/{chunk-CA6V2O4P.js → chunk-KAO2GIZQ.js} +1 -1
  102. package/dist/{chunk-URDLHUQI.js → chunk-KBZJUOJJ.js} +8 -8
  103. package/dist/{chunk-ENOOKJOY.js → chunk-KGMSC4Y4.js} +10 -10
  104. package/dist/{chunk-XUT7PHS4.js → chunk-KHL6NLZN.js} +2 -2
  105. package/dist/{chunk-JTLRN6MU.js → chunk-KJMIFUE2.js} +4 -4
  106. package/dist/{chunk-E5T75JWL.js → chunk-KVLYD2EE.js} +1 -1
  107. package/dist/{chunk-WD7Q3TT5.js → chunk-LFJOCVHG.js} +2 -2
  108. package/dist/{chunk-TTJA2HH2.js → chunk-LW4AG6EP.js} +6 -6
  109. package/dist/{chunk-5QKFTPXC.js → chunk-LYO34MJ4.js} +7 -2
  110. package/dist/{chunk-3CM4LQEB.js → chunk-MBYHALGD.js} +1 -1
  111. package/dist/{chunk-M7QDLSPI.js → chunk-MHGXV2UI.js} +1 -1
  112. package/dist/{chunk-KMGLYAGI.js → chunk-ML6AWSKK.js} +5 -5
  113. package/dist/{chunk-COODHOGD.js → chunk-O2MMXX6P.js} +5 -5
  114. package/dist/{chunk-5W5R5XEI.js → chunk-OC5SCORI.js} +7 -7
  115. package/dist/{chunk-FR5PATBB.js → chunk-PKENJCUM.js} +2 -2
  116. package/dist/{chunk-3MRMHSJM.js → chunk-Q473YQNT.js} +4 -4
  117. package/dist/{chunk-WTOOX47X.js → chunk-QHR2T5EW.js} +10 -10
  118. package/dist/{chunk-W2J5RMI4.js → chunk-R24OYTI5.js} +4 -4
  119. package/dist/{chunk-DKH755WW.js → chunk-RXLKOYN3.js} +1 -1
  120. package/dist/{chunk-E3YL3XXV.js → chunk-RXXHQXMO.js} +1 -1
  121. package/dist/{chunk-33HUKRXZ.js → chunk-SHAZ6DT6.js} +5 -3
  122. package/dist/{chunk-LSBIDOLC.js → chunk-SOIG3VQU.js} +5 -5
  123. package/dist/{chunk-XDYSADIA.js → chunk-TAW3Z5NA.js} +4 -4
  124. package/dist/{chunk-77UIFRGZ.js → chunk-TJYY2ZNV.js} +2 -2
  125. package/dist/{chunk-BHOENP7P.js → chunk-TM5LRIUB.js} +5 -5
  126. package/dist/{chunk-EL4TJTOU.js → chunk-UDPXFSUQ.js} +2 -2
  127. package/dist/{chunk-Q7L4H2A3.js → chunk-UKBHJNN4.js} +5 -5
  128. package/dist/{chunk-P4P6M45X.js → chunk-URMAZGQN.js} +2 -2
  129. package/dist/{chunk-XFFPBUYX.js → chunk-V6YWRP4V.js} +10 -8
  130. package/dist/{chunk-UP6UNLLL.js → chunk-W6N2MU2G.js} +1 -1
  131. package/dist/{chunk-363PPP66.js → chunk-W7HK5KMH.js} +1 -1
  132. package/dist/{chunk-MMDZKAM2.js → chunk-WHMZT7EG.js} +2 -2
  133. package/dist/{chunk-AT65NHK5.js → chunk-WNSBSSTB.js} +1 -1
  134. package/dist/{chunk-5PPXE3SI.js → chunk-WNWN4U2V.js} +1 -1
  135. package/dist/{chunk-CW6LDFLM.js → chunk-WNZR4KFV.js} +10 -10
  136. package/dist/{chunk-RPPSP7JL.js → chunk-X275KIXO.js} +5 -5
  137. package/dist/{chunk-HKOJCK27.js → chunk-X2BMTMY2.js} +5 -5
  138. package/dist/{chunk-5IFPQWQS.js → chunk-X5M3LLDZ.js} +5 -5
  139. package/dist/{chunk-SLY7LXA7.js → chunk-X6GHL4KM.js} +25 -20
  140. package/dist/{chunk-ZVTROPFZ.js → chunk-XO64RMVL.js} +4 -4
  141. package/dist/{chunk-NNLYSNO2.js → chunk-XT7RG6WO.js} +7 -7
  142. package/dist/{codex-app-cards-switch-T7BFX3RY.js → codex-app-cards-switch-MBJFUQBT.js} +12 -11
  143. package/dist/{codex-card-routing-IU2IEJIJ.js → codex-card-routing-LAM2ADY2.js} +2 -2
  144. package/dist/{codex-desktop-launch-HHMQ66PO.js → codex-desktop-launch-LB4RWOSI.js} +7 -1
  145. package/dist/{codex-session-launch-6552APX5.js → codex-session-launch-PRWQGIGE.js} +22 -21
  146. package/dist/{config-SXJJPTEN.js → config-BBTWVECF.js} +3 -3
  147. package/dist/{global-upgrade-YTCJ6ASA.js → global-upgrade-C6HNF5OW.js} +10 -9
  148. package/dist/{identity-7SBDT3ZC.js → identity-7PUBPQNU.js} +5 -4
  149. package/dist/{live-capabilities-7CVCKDTW.js → live-capabilities-ZAQZQQR4.js} +5 -4
  150. package/dist/{paths-EHAWEAVV.js → paths-ZALQKETP.js} +4 -3
  151. package/dist/reapply-JWQ5H3RL.js +75 -0
  152. package/dist/src/index.d.ts +9 -10
  153. package/dist/src/index.js +34 -33
  154. package/dist/{upgrade-lock-GKQRE565.js → upgrade-lock-UWYE4CPX.js} +5 -4
  155. package/dist/{usage-5NEPL3OS.js → usage-BR4DQNAS.js} +3 -3
  156. package/package.json +1 -1
  157. package/dist/reapply-VF3F42SI.js +0 -74
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  callDecisionStore,
3
3
  identifyingToolInput
4
- } from "./chunk-QTJWBUA4.js";
4
+ } from "./chunk-CIT3XX7B.js";
5
5
  import {
6
6
  canonicalJson
7
- } from "./chunk-33HUKRXZ.js";
7
+ } from "./chunk-SHAZ6DT6.js";
8
8
 
9
9
  // src/phone-approval.ts
10
10
  import { createHash } from "crypto";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  pusharyFetch
3
- } from "./chunk-JIQIHE3T.js";
3
+ } from "./chunk-KABI55PA.js";
4
4
  import {
5
5
  getBaseUrl
6
- } from "./chunk-77UIFRGZ.js";
6
+ } from "./chunk-TJYY2ZNV.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-7LP4B5KW.js";
16
+ } from "./chunk-J2GQIBMK.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,15 +1,15 @@
1
1
  import {
2
2
  parseSseMessages
3
- } from "./chunk-5IFPQWQS.js";
3
+ } from "./chunk-X5M3LLDZ.js";
4
4
  import {
5
5
  fetchAsCredential
6
- } from "./chunk-2ZLMVIB5.js";
6
+ } from "./chunk-A54UFNGF.js";
7
7
  import {
8
8
  malformedApiKeyMessage
9
- } from "./chunk-77UIFRGZ.js";
9
+ } from "./chunk-TJYY2ZNV.js";
10
10
  import {
11
11
  NPX_LATEST_COMMAND
12
- } from "./chunk-5QKFTPXC.js";
12
+ } from "./chunk-LYO34MJ4.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
  claudeConfigDir
3
- } from "./chunk-33HUKRXZ.js";
3
+ } from "./chunk-SHAZ6DT6.js";
4
4
  import {
5
5
  claudePermissionRulesFromSettings
6
- } from "./chunk-7LP4B5KW.js";
6
+ } from "./chunk-J2GQIBMK.js";
7
7
 
8
8
  // src/claude-permission-rules.ts
9
9
  import { readFileSync, statSync } from "fs";
@@ -10,7 +10,7 @@ import {
10
10
  uploadTranscriptRecords,
11
11
  verifyAnchoredRecipients,
12
12
  wrapSessionKey
13
- } from "./chunk-WKSI54F2.js";
13
+ } from "./chunk-FFMM7VZH.js";
14
14
 
15
15
  // src/live-session.ts
16
16
  var LIVE_TRANSCRIPT_LIMITS = { queuedRecords: 100, recordCharacters: 32 * 1024 };
@@ -0,0 +1,20 @@
1
+ // src/agent-version.ts
2
+ var parseVersion = (raw) => {
3
+ const match = raw.match(/(\d+)\.(\d+)\.(\d+)/);
4
+ return match ? [Number(match[1]), Number(match[2]), Number(match[3])] : null;
5
+ };
6
+ var compareVersion = (a, b) => {
7
+ for (let index = 0; index < 3; index++) {
8
+ if (a[index] !== b[index]) return a[index] < b[index] ? -1 : 1;
9
+ }
10
+ return 0;
11
+ };
12
+ var atLeast = (version, floor) => compareVersion(version, floor) >= 0;
13
+ var formatVersion = (version) => version.join(".");
14
+
15
+ export {
16
+ parseVersion,
17
+ compareVersion,
18
+ atLeast,
19
+ formatVersion
20
+ };
@@ -5,7 +5,7 @@ import {
5
5
  MCP_CREDENTIAL_REJECTION_BODY,
6
6
  isRecord,
7
7
  responseRejectsCredential
8
- } from "./chunk-7LP4B5KW.js";
8
+ } from "./chunk-J2GQIBMK.js";
9
9
 
10
10
  // src/credential-rejection.ts
11
11
  import { createHash, randomUUID } from "crypto";
@@ -9,7 +9,7 @@ import {
9
9
  isSetupConnectMode,
10
10
  isValidApiKey,
11
11
  normalizeAgentId
12
- } from "./chunk-7LP4B5KW.js";
12
+ } from "./chunk-J2GQIBMK.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
  serviceNodeFor
3
- } from "./chunk-XFFPBUYX.js";
3
+ } from "./chunk-V6YWRP4V.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-33HUKRXZ.js";
17
+ } from "./chunk-SHAZ6DT6.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-E4HPZ6G5.js";
24
+ } from "./chunk-FG2EF7PP.js";
25
25
  import {
26
26
  getPackageVersion,
27
27
  globalTranscriptRegisterEntry
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  redactSecretsFromContent
3
- } from "./chunk-7LP4B5KW.js";
3
+ } from "./chunk-J2GQIBMK.js";
4
4
 
5
5
  // src/cli/terminal-row.ts
6
6
  var visibleLength = (text) => text.replace(/\x1b\[[0-9;]*m/g, "").length;
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  absoluteUrl
3
- } from "./chunk-PL2EJ55K.js";
3
+ } from "./chunk-4UKOA6F5.js";
4
4
  import {
5
5
  KEY_SCOPE
6
- } from "./chunk-7LP4B5KW.js";
6
+ } from "./chunk-J2GQIBMK.js";
7
7
 
8
8
  // src/cli/approval-settings-pages.ts
9
9
  var API_KEYS_PATH = "/dashboard/agent/settings";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  configFilePath
3
- } from "./chunk-77UIFRGZ.js";
3
+ } from "./chunk-TJYY2ZNV.js";
4
4
  import {
5
5
  normalizeInstallSource
6
- } from "./chunk-7LP4B5KW.js";
6
+ } from "./chunk-J2GQIBMK.js";
7
7
 
8
8
  // src/install-source.ts
9
9
  import { readFileSync } from "fs";
@@ -29,7 +29,7 @@ import {
29
29
  toolResultErrorText,
30
30
  transcriptTokensIn,
31
31
  transcriptUsageRequest
32
- } from "./chunk-UCWQPCIX.js";
32
+ } from "./chunk-J4X5T5DO.js";
33
33
  import {
34
34
  askUser,
35
35
  cancelQuestion,
@@ -48,46 +48,46 @@ import {
48
48
  waitForQuestion,
49
49
  waitsForThePhone,
50
50
  writeDegraded
51
- } from "./chunk-CW6LDFLM.js";
51
+ } from "./chunk-WNZR4KFV.js";
52
52
  import {
53
53
  RETRY_ACK,
54
54
  readCommandAck,
55
55
  refusedReceiptMessage
56
- } from "./chunk-B2TX7FE7.js";
56
+ } from "./chunk-ETIAYTAI.js";
57
57
  import {
58
58
  SubscriptionRequiredError,
59
59
  isRetryable,
60
60
  withRetry
61
- } from "./chunk-5IFPQWQS.js";
61
+ } from "./chunk-X5M3LLDZ.js";
62
62
  import {
63
63
  fetchAsCredential
64
- } from "./chunk-2ZLMVIB5.js";
64
+ } from "./chunk-A54UFNGF.js";
65
65
  import {
66
66
  branchFor,
67
67
  projectNameFor,
68
68
  repoKeyFor
69
- } from "./chunk-E5T75JWL.js";
69
+ } from "./chunk-KVLYD2EE.js";
70
70
  import {
71
71
  getMachineId
72
- } from "./chunk-BVLYIGHM.js";
72
+ } from "./chunk-32ZIGQNS.js";
73
73
  import {
74
74
  reportedInstallSource
75
- } from "./chunk-YEBUFSBO.js";
75
+ } from "./chunk-C4SPXQAE.js";
76
76
  import {
77
77
  IDLE_PROMPT_NOTIFICATION,
78
78
  NOTIFICATION_PUSH_TYPES,
79
79
  POSTTOOLUSE_MIRROR_ONLY_TOOLS,
80
80
  claudeConfigDir
81
- } from "./chunk-33HUKRXZ.js";
81
+ } from "./chunk-SHAZ6DT6.js";
82
82
  import {
83
83
  compareVersion,
84
84
  parseVersion
85
- } from "./chunk-E4HPZ6G5.js";
85
+ } from "./chunk-6ICPEJY5.js";
86
86
  import {
87
87
  getApiKey,
88
88
  getBaseUrl,
89
89
  isMalformedApiKeyError
90
- } from "./chunk-77UIFRGZ.js";
90
+ } from "./chunk-TJYY2ZNV.js";
91
91
  import {
92
92
  writeFileAtomic,
93
93
  writeJsonAtomicDurable
@@ -145,7 +145,7 @@ import {
145
145
  resolveAutoResolveOrigin,
146
146
  resolvePolicy,
147
147
  unansweredRefusalReason
148
- } from "./chunk-7LP4B5KW.js";
148
+ } from "./chunk-J2GQIBMK.js";
149
149
 
150
150
  // src/pending.ts
151
151
  import { join } from "path";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  guardBinary
3
- } from "./chunk-33HUKRXZ.js";
3
+ } from "./chunk-SHAZ6DT6.js";
4
4
 
5
5
  // src/bell/install.ts
6
6
  import { join } from "path";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  shouldDeferToNativeMode
3
- } from "./chunk-7LP4B5KW.js";
3
+ } from "./chunk-J2GQIBMK.js";
4
4
 
5
5
  // src/native-defer.ts
6
6
  var nativeDeferOptions = () => {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  isFinalCommandAckRefusal
3
- } from "./chunk-7LP4B5KW.js";
3
+ } from "./chunk-J2GQIBMK.js";
4
4
 
5
5
  // src/command-ack-outcome.ts
6
6
  var SETTLED_ACK = { outcome: "settled" };
@@ -3,10 +3,10 @@ import {
3
3
  } from "./chunk-TCE3J44Z.js";
4
4
  import {
5
5
  parseVersion
6
- } from "./chunk-E4HPZ6G5.js";
6
+ } from "./chunk-6ICPEJY5.js";
7
7
  import {
8
8
  isRecord
9
- } from "./chunk-7LP4B5KW.js";
9
+ } from "./chunk-J2GQIBMK.js";
10
10
 
11
11
  // src/setup/agent-probe.ts
12
12
  import { execSync } from "child_process";
@@ -4,10 +4,10 @@ import {
4
4
  } from "./chunk-P6DUWKAO.js";
5
5
  import {
6
6
  fetchAsCredential
7
- } from "./chunk-2ZLMVIB5.js";
7
+ } from "./chunk-A54UFNGF.js";
8
8
  import {
9
9
  getBaseUrl
10
- } from "./chunk-77UIFRGZ.js";
10
+ } from "./chunk-TJYY2ZNV.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-7LP4B5KW.js";
18
+ } from "./chunk-J2GQIBMK.js";
19
19
 
20
20
  // src/transcript-recipient-pin.ts
21
21
  import { createHash } from "crypto";
@@ -19,7 +19,7 @@ import {
19
19
  } from "./chunk-CXQWDQCJ.js";
20
20
  import {
21
21
  redactSecretsFromContent
22
- } from "./chunk-7LP4B5KW.js";
22
+ } from "./chunk-J2GQIBMK.js";
23
23
 
24
24
  // src/shell-quote.ts
25
25
  var shellDoubleQuoted = (text) => `"${text.replace(/(["\\$`])/g, "\\$1")}"`;
@@ -32,14 +32,13 @@ import { constants as osConstants } from "os";
32
32
  import { dirname, isAbsolute, join, relative, resolve, win32 } from "path";
33
33
  var latestReleaseUrl = (packageName) => `https://registry.npmjs.org/${packageName}/latest`;
34
34
  var REGISTRY_TIMEOUT_MS = 5e3;
35
- var cleanNpmEnv = () => {
36
- const env = {};
37
- for (const [key, value] of Object.entries(process.env)) {
38
- if (key.toLowerCase().startsWith("npm_config_workspace")) continue;
39
- env[key] = value;
40
- }
41
- return env;
42
- };
35
+ var NPM_WORKSPACE_VARIABLE_PREFIX = "npm_config_workspace";
36
+ var NPM_INSTALL_CONSENT_VARIABLE = "npm_config_yes";
37
+ var isNpmWorkspaceVariable = (name) => name.toLowerCase().startsWith(NPM_WORKSPACE_VARIABLE_PREFIX);
38
+ var isNpmInstallConsentVariable = (name) => spellingOf(name) === NPM_INSTALL_CONSENT_VARIABLE;
39
+ var environmentWithout = (environment, isDropped) => Object.fromEntries(Object.entries(environment).filter(([name]) => !isDropped(name)));
40
+ var cleanNpmEnv = () => environmentWithout(process.env, isNpmWorkspaceVariable);
41
+ var withoutNpmInstallConsent = (environment) => environmentWithout(environment, isNpmInstallConsentVariable);
43
42
  var NPM_ERROR_METADATA = /^(code|syscall|path|dest|errno)\s/i;
44
43
  var npmErrorMessage = (err) => {
45
44
  const text = errorTextOf(err, ["stderr", "stdout"]).join("\n");
@@ -600,9 +599,9 @@ var installGlobally = (options) => {
600
599
  }
601
600
  const started = (async () => {
602
601
  if (!npmIsOnPath()) throw new NpmMissingError();
603
- const { withUpgradeLock } = await import("./global-upgrade-YTCJ6ASA.js");
604
- const { installWithUpgradeLock, ownsUpgradeLock } = await import("./upgrade-lock-GKQRE565.js");
605
- const { autoUpdateLock } = await import("./paths-EHAWEAVV.js");
602
+ const { withUpgradeLock } = await import("./global-upgrade-C6HNF5OW.js");
603
+ const { installWithUpgradeLock, ownsUpgradeLock } = await import("./upgrade-lock-UWYE4CPX.js");
604
+ const { autoUpdateLock } = await import("./paths-ZALQKETP.js");
606
605
  let result = "skipped";
607
606
  const install = async () => {
608
607
  const planned = readPlannedSetupInstall(process.platform);
@@ -630,27 +629,10 @@ var installGlobally = (options) => {
630
629
  return started;
631
630
  };
632
631
 
633
- // src/agent-version.ts
634
- var parseVersion = (raw) => {
635
- const match = raw.match(/(\d+)\.(\d+)\.(\d+)/);
636
- return match ? [Number(match[1]), Number(match[2]), Number(match[3])] : null;
637
- };
638
- var compareVersion = (a, b) => {
639
- for (let index = 0; index < 3; index++) {
640
- if (a[index] !== b[index]) return a[index] < b[index] ? -1 : 1;
641
- }
642
- return 0;
643
- };
644
- var atLeast = (version, floor) => compareVersion(version, floor) >= 0;
645
- var formatVersion = (version) => version.join(".");
646
-
647
632
  export {
648
633
  shellDoubleQuoted,
649
- parseVersion,
650
- compareVersion,
651
- atLeast,
652
- formatVersion,
653
634
  cleanNpmEnv,
635
+ withoutNpmInstallConsent,
654
636
  npmErrorMessage,
655
637
  execNpm,
656
638
  readGlobalPrefix,
@@ -14,6 +14,9 @@ import {
14
14
  launcherWaitingOnThisProcess,
15
15
  tellTheLauncherTheEngineStarted
16
16
  } from "./chunk-U4P4NDVB.js";
17
+ import {
18
+ withoutNpmInstallConsent
19
+ } from "./chunk-FG2EF7PP.js";
17
20
 
18
21
  // src/codex-desktop-launch.ts
19
22
  import { spawn as spawn2, execFileSync as execFileSync2 } from "child_process";
@@ -536,8 +539,8 @@ var loadedOnce = (load) => {
536
539
  };
537
540
 
538
541
  // src/codex-desktop-proxy.ts
539
- var loadThePhone = () => import("./api-VFQNIMMQ.js");
540
- var loadTheCardRouting = () => import("./codex-card-routing-IU2IEJIJ.js");
542
+ var loadThePhone = () => import("./api-OGSNXX5I.js");
543
+ var loadTheCardRouting = () => import("./codex-card-routing-LAM2ADY2.js");
541
544
  var theFirstCardLoadsAgain = () => {
542
545
  };
543
546
  var ASKS_WITHOUT_ROUTING = {};
@@ -1088,6 +1091,7 @@ var desktopExecutable = (app) => {
1088
1091
  }
1089
1092
  throw new Error("Codex Desktop is already running. Finish active work and quit it yourself, then retry. Pushary will not restart it.");
1090
1093
  };
1094
+ var desktopLaunchEnvironment = (inherited, shim) => ({ ...withoutNpmInstallConsent(inherited), [CODEX_APP_LAUNCH_VARIABLE]: shim });
1091
1095
  var codexDesktopCommand = async (args, entry, readAccount) => {
1092
1096
  if (args[0] !== "--desktop" && args[0] !== "--desktop-proxy" && args[0] !== APP_CARDS_FLAG) return null;
1093
1097
  if (process.platform !== "darwin") throw new Error("Experimental Codex Desktop forwarding currently requires macOS");
@@ -1097,7 +1101,7 @@ var codexDesktopCommand = async (args, entry, readAccount) => {
1097
1101
  return runCodexDesktopProxy(engine2, args.slice(3), readAccount, { watchesForCards: layoutIsKnown });
1098
1102
  }
1099
1103
  if (args[0] === APP_CARDS_FLAG) {
1100
- const { codexAppCardsCommandOnThisMac } = await import("./codex-app-cards-switch-T7BFX3RY.js");
1104
+ const { codexAppCardsCommandOnThisMac } = await import("./codex-app-cards-switch-MBJFUQBT.js");
1101
1105
  return codexAppCardsCommandOnThisMac(args.slice(1), entry, readAccount);
1102
1106
  }
1103
1107
  if (args.length > 2) throw new Error("Usage: pushary codex --desktop [path/to/Codex.app]");
@@ -1109,7 +1113,7 @@ var codexDesktopCommand = async (args, entry, readAccount) => {
1109
1113
  try {
1110
1114
  const shim = await writeDesktopProxy(entry, app, engine, directory);
1111
1115
  process.stderr.write("[pushary] Experimental Codex app launch. When Codex asks to use an app on this Mac, or its browser asks to open a site, download or upload, the question also reaches Pushary; every other prompt stays as it is. Quit and open Codex normally to turn this off.\n");
1112
- const child = spawn2(executable, [], { stdio: "ignore", detached: true, env: { ...process.env, [CODEX_APP_LAUNCH_VARIABLE]: shim } });
1116
+ const child = spawn2(executable, [], { stdio: "ignore", detached: true, env: desktopLaunchEnvironment(process.env, shim) });
1113
1117
  return await new Promise((resolve2, reject) => {
1114
1118
  child.once("error", reject);
1115
1119
  child.once("close", (code) => resolve2(code ?? 1));
@@ -1132,5 +1136,6 @@ export {
1132
1136
  desktopEngine,
1133
1137
  codexAppOnThisMac,
1134
1138
  installedCodexApp,
1139
+ desktopLaunchEnvironment,
1135
1140
  codexDesktopCommand
1136
1141
  };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  realpath
3
- } from "./chunk-B7NX5VK4.js";
3
+ } from "./chunk-EVGZE3TK.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-E4HPZ6G5.js";
15
+ } from "./chunk-FG2EF7PP.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-7LP4B5KW.js";
28
+ } from "./chunk-J2GQIBMK.js";
29
29
 
30
30
  // src/live-capabilities.ts
31
31
  import { execFileSync } from "child_process";
@@ -5,13 +5,13 @@ import {
5
5
  OPENCLAW_ENVIRONMENT_KEYS,
6
6
  openClawEnvironmentOf,
7
7
  openClawPathsFrom
8
- } from "./chunk-33HUKRXZ.js";
8
+ } from "./chunk-SHAZ6DT6.js";
9
9
  import {
10
10
  resolvePathBinary
11
- } from "./chunk-E4HPZ6G5.js";
11
+ } from "./chunk-FG2EF7PP.js";
12
12
  import {
13
13
  isRecord
14
- } from "./chunk-7LP4B5KW.js";
14
+ } from "./chunk-J2GQIBMK.js";
15
15
 
16
16
  // src/openclaw/wiring-state.ts
17
17
  var OPENCLAW_PLUGIN_ID = "pushary";
@@ -1,17 +1,17 @@
1
1
  import {
2
2
  compatibleConfigFile,
3
3
  hasCompatibleHooks
4
- } from "./chunk-BHOENP7P.js";
4
+ } from "./chunk-TM5LRIUB.js";
5
5
  import {
6
6
  pusharyHookExecutable
7
- } from "./chunk-OUTUSZGR.js";
7
+ } from "./chunk-JZZ62IV5.js";
8
8
  import {
9
9
  isProtectedByScope,
10
10
  registerHookEntry
11
- } from "./chunk-33HUKRXZ.js";
11
+ } from "./chunk-SHAZ6DT6.js";
12
12
  import {
13
13
  isRecord
14
- } from "./chunk-7LP4B5KW.js";
14
+ } from "./chunk-J2GQIBMK.js";
15
15
 
16
16
  // src/cursor-config.ts
17
17
  var hookCommandOf = (entry) => {
@@ -2,31 +2,31 @@ import {
2
2
  SIGNED_OUT_ON_MAC_MESSAGE,
3
3
  describeSignedOutKey,
4
4
  readSignedOutDiagnosis
5
- } from "./chunk-XUT7PHS4.js";
5
+ } from "./chunk-KHL6NLZN.js";
6
6
  import {
7
7
  APPROVAL_RULES_PATH
8
- } from "./chunk-MJIMTNKY.js";
8
+ } from "./chunk-C4PGW3PU.js";
9
9
  import {
10
10
  createIo
11
- } from "./chunk-7W6GRR6B.js";
11
+ } from "./chunk-AX6S5V22.js";
12
12
  import {
13
13
  absoluteUrl,
14
14
  checkApiKey,
15
15
  describeKeyCheck,
16
16
  keyCheckFromResponse
17
- } from "./chunk-PL2EJ55K.js";
17
+ } from "./chunk-4UKOA6F5.js";
18
18
  import {
19
19
  readKeySource
20
- } from "./chunk-XFWZ3WAD.js";
20
+ } from "./chunk-HU5IFHHG.js";
21
21
  import {
22
22
  getBaseUrl
23
- } from "./chunk-77UIFRGZ.js";
23
+ } from "./chunk-TJYY2ZNV.js";
24
24
  import {
25
25
  EXIT
26
26
  } from "./chunk-BG4HHB7E.js";
27
27
  import {
28
28
  KEY_SCOPE
29
- } from "./chunk-7LP4B5KW.js";
29
+ } from "./chunk-J2GQIBMK.js";
30
30
 
31
31
  // src/cli/report-key.ts
32
32
  var { dim, yellow } = createIo();
@@ -6,7 +6,7 @@ import {
6
6
  OPENCODE_PLUGIN_PLACEHOLDER,
7
7
  OPENCODE_PLUGIN_SIBLING,
8
8
  OPENCODE_PLUGIN_SIBLING_CONTENTS
9
- } from "./chunk-E3YL3XXV.js";
9
+ } from "./chunk-RXXHQXMO.js";
10
10
 
11
11
  // src/opencode-runtime-bundle.ts
12
12
  var openCodeRuntimeSource = `import { spawn } from 'child_process';
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  resolveInstallSourceFor
3
- } from "./chunk-YEBUFSBO.js";
3
+ } from "./chunk-C4SPXQAE.js";
4
4
  import {
5
5
  apiKeyInForce,
6
6
  configFilePath,
7
7
  keyPrefixToShow
8
- } from "./chunk-77UIFRGZ.js";
8
+ } from "./chunk-TJYY2ZNV.js";
9
9
  import {
10
10
  backupFile,
11
11
  backupFileInto,
@@ -17,7 +17,7 @@ import {
17
17
  API_KEY_PREFIX_PATTERN,
18
18
  isRecord,
19
19
  isValidApiKey
20
- } from "./chunk-7LP4B5KW.js";
20
+ } from "./chunk-J2GQIBMK.js";
21
21
 
22
22
  // src/shell-alias.ts
23
23
  import { homedir } from "os";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  pusharyDir
3
- } from "./chunk-33HUKRXZ.js";
3
+ } from "./chunk-SHAZ6DT6.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-7LP4B5KW.js";
16
+ } from "./chunk-J2GQIBMK.js";
17
17
 
18
18
  // src/declined-agents-file.ts
19
19
  import { join } from "path";
@@ -336,8 +336,12 @@ var COWORK_STANDING_INSTRUCTIONS = `Pushary is connected as a connector. Use it
336
336
  - Cancel a question when it is no longer needed. Once this turn ends, reopen Cowork for follow-up work; this connector cannot restart it.
337
337
  - If Pushary tools are missing or disabled, report that once and continue within my authorization. Do not claim a notification or approval was delivered.`;
338
338
 
339
+ // ../contracts/src/pushary-cli.ts
340
+ var PUSHARY_CLI_LATEST = "npx -y pushary@latest";
341
+ var PUSHARY_CLI_LATEST_FOR_POWERSHELL = "npx.cmd -y pushary@latest";
342
+
339
343
  // ../contracts/src/agent-manifest.ts
340
- var PUSHARY_SETUP_COMMAND = "npx pushary@latest setup";
344
+ var PUSHARY_SETUP_COMMAND = `${PUSHARY_CLI_LATEST} setup`;
341
345
  var defaults = {
342
346
  hasStoredIdentity: true,
343
347
  hookSource: null,
@@ -4449,6 +4453,10 @@ var degradedPayload = (subsystem, report) => ({
4449
4453
  });
4450
4454
  var degradedLine = (subsystem, report) => `${DEGRADED_PREFIX} ${JSON.stringify(degradedPayload(subsystem, report))}`;
4451
4455
 
4456
+ // ../contracts/src/delivery-stall.ts
4457
+ var MINUTE_MS = 6e4;
4458
+ var OUTBOX_BACKLOG_STALL_MS = 20 * MINUTE_MS;
4459
+
4452
4460
  // ../contracts/src/pushary-hosts.ts
4453
4461
  var PUSHARY_HOSTS = ["pushary.com", "www.pushary.com"];
4454
4462
 
@@ -4718,9 +4726,11 @@ var withoutDeclinedAgent = (agents, agent) => agents.filter((candidate) => candi
4718
4726
  var FIRST_AUTO_UPDATING_RELEASE = [1, 5, 0];
4719
4727
  var MIN_SAFE_RELEASE = [1, 9, 26];
4720
4728
  var FIRST_RELEASE_DENYING_AUTO_APPROVED_MISSES = [1, 9, 223];
4729
+ var FIRST_RELEASE_GROK_ALWAYS_APPROVE_FOLLOWS_BYPASS_STOPS = [1, 9, 228];
4721
4730
  var FIRST_AUTO_UPDATING_CLI_VERSION = formatReleaseVersion(FIRST_AUTO_UPDATING_RELEASE);
4722
4731
  var MIN_SAFE_CLI_VERSION = formatReleaseVersion(MIN_SAFE_RELEASE);
4723
4732
  var FIRST_CLI_VERSION_DENYING_AUTO_APPROVED_MISSES = formatReleaseVersion(FIRST_RELEASE_DENYING_AUTO_APPROVED_MISSES);
4733
+ var FIRST_CLI_VERSION_GROK_ALWAYS_APPROVE_FOLLOWS_BYPASS_STOPS = formatReleaseVersion(FIRST_RELEASE_GROK_ALWAYS_APPROVE_FOLLOWS_BYPASS_STOPS);
4724
4734
 
4725
4735
  // ../contracts/src/auto-update-report.ts
4726
4736
  var AUTO_UPDATE_RESULTS = ["updated", "current", "needs_manual", "failed", "finish_pending", "finish_blocked"];
@@ -5481,7 +5491,7 @@ var questionsShownAsASet = (questions) => isLoneTypedAnswerQuestion(questions) ?
5481
5491
  var agentQuestionContext = (header, project) => header ? `${header}: your agent is asking in ${project}` : `Your agent is asking in ${project}`;
5482
5492
  var answersToQuestionsAsAsked = (questions, answer, typedAnswer = false) => typedAnswer && questions.length === 1 && questions[0] && answer.trim() ? { [questions[0].question]: answer } : questionsShownAsASet(questions) ? parseAgentQuestionAnswers(questions, answer) : typedTextAsAnswers(questions, answer, typedAnswer);
5483
5493
  var INSTALL_SOURCES = [
5484
- /** `npx pushary@latest ...`, the documented one-liner. */
5494
+ /** `npx -y pushary@latest ...`, the documented one-liner. */
5485
5495
  "npx",
5486
5496
  /** A global or project npm install, invoked as `pushary`. */
5487
5497
  "npm",
@@ -11296,6 +11306,8 @@ export {
11296
11306
  CLAUDE_CONNECTOR_STEPS,
11297
11307
  CLAUDE_CONNECTOR_TEST,
11298
11308
  COWORK_STANDING_INSTRUCTIONS,
11309
+ PUSHARY_CLI_LATEST,
11310
+ PUSHARY_CLI_LATEST_FOR_POWERSHELL,
11299
11311
  AGENTS,
11300
11312
  HOOK_SOURCES,
11301
11313
  AGENT_LABELS_BY_TYPE,